Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .eslintrc

This file was deleted.

45 changes: 45 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"env": {
"node": true,
"mocha": true
},
"extends": [
"./node_modules/@eggjs/oxlint-config/.oxlintrc.json"
],
"rules": {
"typescript/no-explicit-any": "allow",
"typescript/prefer-function-type": "allow",
"typescript/no-non-null-assertion": "allow",
"typescript/prefer-ts-expect-error": "allow",
"typescript/no-inferrable-types": "allow",
"typescript/prefer-for-of": "allow",
"promise/prefer-await-to-callbacks": "allow",
"promise/prefer-await-to-then": "allow",
"unicorn/no-array-for-each": "allow",
"unicorn/numeric-separators-style": "allow",
"unicorn/prefer-global-this": "allow",
"unicorn/prefer-date-now": "allow",
"unicorn/no-await-expression-member": "allow",
"unicorn/consistent-assert": "allow",
"unicorn/consistent-function-scoping": "allow",
"unicorn/prefer-event-target": "allow",
"unicorn/prefer-number-properties": "allow",
"unicorn/prefer-type-error": "allow",
"import/no-named-as-default": "allow",
"import/no-named-as-default-member": "allow",
"import/no-unassigned-import": "allow",
"jsdoc/check-tag-names": "allow",
"require-yield": "allow",
"import/no-namespace": "allow",
"func-names": "allow",
"max-params": "allow",
"max-nested-callbacks": "allow",
"no-empty-function": "allow",
"no-else-return": "allow",
"no-lonely-if": "allow",
"no-negated-condition": "allow",
"no-unused-expressions": "allow",
"no-useless-escape": "allow"
}
}
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.1",
"@eggjs/bin": "7",
"@eggjs/oxlint-config": "1",
"@eggjs/tsconfig": "1",
"@types/mocha": "10",
"@types/node": "22",
"eslint": "8",
"eslint-config-egg": "14",
"oxlint": "1",
"pedding": "^2.0.1",
"should": "^13.2.3",
"tshy": "3",
"tshy-after": "1",
"typescript": "5"
},
"scripts": {
"lint": "eslint --cache src test --ext .ts",
"pretest": "npm run lint -- --fix && npm run prepublishOnly",
"lint": "oxlint src test",
"pretest": "npm run lint && npm run prepublishOnly",
"test": "egg-bin test",
"preci": "npm run lint && npm run prepublishOnly && attw --pack",
"ci": "egg-bin cov",
Expand Down