Skip to content

Commit

Permalink
WIP: disable rules covered by oxlint
Browse files Browse the repository at this point in the history
Disable some rules
  • Loading branch information
lachlancollins committed Dec 6, 2024
1 parent ec5d38a commit e816876
Show file tree
Hide file tree
Showing 5 changed files with 117 additions and 1 deletion.
14 changes: 14 additions & 0 deletions oxlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["import", "unicorn", "jsdoc"],
"categories": {
"correctness": "deny",
"perf": "deny",
"suspicious": "deny"
},
"rules": {
"eslint/no-await-in-loop": "allow",
"jsdoc/check-tag-names": "allow",
"oxc/no-accumulating-spread": "allow"
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"@types/node": "^22.10.1",
"jsdom": "^25.0.1",
"nx": "^20.2.0",
"oxlint": "^0.14.1",
"prettier": "^3.4.2",
"publint": "^0.2.12",
"sherif": "^1.0.2",
Expand Down
3 changes: 2 additions & 1 deletion packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"scripts": {
"test:types": "tsc",
"test:eslint": "eslint ./bin ./src",
"test:eslint": "oxlint -c ../../oxlint.json && eslint ./bin ./src",
"test:build": "publint --strict"
},
"type": "module",
Expand Down Expand Up @@ -67,6 +67,7 @@
"esbuild-register": "^3.6.0",
"eslint-plugin-import-x": "^4.5.0",
"eslint-plugin-n": "^17.14.0",
"eslint-plugin-oxlint": "^0.14.1",
"globals": "^15.13.0",
"interpret": "^3.1.1",
"jsonfile": "^6.1.0",
Expand Down
2 changes: 2 additions & 0 deletions packages/config/src/eslint/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import tseslint from 'typescript-eslint'
import stylisticJs from '@stylistic/eslint-plugin-js'
import pluginImport from 'eslint-plugin-import-x'
import pluginNode from 'eslint-plugin-n'
import pluginOxlint from 'eslint-plugin-oxlint'
import globals from 'globals'
import { javascriptRules } from './javascript.js'
import { importRules } from './import.js'
Expand Down Expand Up @@ -59,6 +60,7 @@ export const tanstackConfig = [
...importRules,
...nodeRules,
...stylisticRules,
...pluginOxlint.configs['flat/recommended'].rules,
},
},
]
98 changes: 98 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e816876

Please sign in to comment.