Skip to content

Commit

Permalink
WIP: disable rules covered by oxlint
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins committed Nov 5, 2024
1 parent f0b5b45 commit 1f11865
Show file tree
Hide file tree
Showing 5 changed files with 112 additions and 1 deletion.
9 changes: 9 additions & 0 deletions oxlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["import", "unicorn", "jsdoc"],
"categories": {
"correctness": "deny",
"perf": "deny",
"suspicious": "deny"
}
}
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": "^20.16.2",
"jsdom": "^25.0.1",
"nx": "^19.8.10",
"oxlint": "^0.11.0",
"prettier": "^3.3.3",
"publint": "^0.2.12",
"sherif": "^1.0.1",
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.4.0",
"eslint-plugin-n": "^17.12.0",
"eslint-plugin-oxlint": "^0.11.0",
"globals": "^15.11.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 1f11865

Please sign in to comment.