Skip to content

Commit 1f11865

Browse files
WIP: disable rules covered by oxlint
1 parent f0b5b45 commit 1f11865

File tree

5 files changed

+112
-1
lines changed

5 files changed

+112
-1
lines changed

oxlint.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"plugins": ["import", "unicorn", "jsdoc"],
4+
"categories": {
5+
"correctness": "deny",
6+
"perf": "deny",
7+
"suspicious": "deny"
8+
}
9+
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"@types/node": "^20.16.2",
2727
"jsdom": "^25.0.1",
2828
"nx": "^19.8.10",
29+
"oxlint": "^0.11.0",
2930
"prettier": "^3.3.3",
3031
"publint": "^0.2.12",
3132
"sherif": "^1.0.1",

packages/config/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
"scripts": {
1818
"test:types": "tsc",
19-
"test:eslint": "eslint ./bin ./src",
19+
"test:eslint": "oxlint -c ../../oxlint.json && eslint ./bin ./src",
2020
"test:build": "publint --strict"
2121
},
2222
"type": "module",
@@ -67,6 +67,7 @@
6767
"esbuild-register": "^3.6.0",
6868
"eslint-plugin-import-x": "^4.4.0",
6969
"eslint-plugin-n": "^17.12.0",
70+
"eslint-plugin-oxlint": "^0.11.0",
7071
"globals": "^15.11.0",
7172
"interpret": "^3.1.1",
7273
"jsonfile": "^6.1.0",

packages/config/src/eslint/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import tseslint from 'typescript-eslint'
22
import stylisticJs from '@stylistic/eslint-plugin-js'
33
import pluginImport from 'eslint-plugin-import-x'
44
import pluginNode from 'eslint-plugin-n'
5+
import pluginOxlint from 'eslint-plugin-oxlint'
56
import globals from 'globals'
67
import { javascriptRules } from './javascript.js'
78
import { importRules } from './import.js'
@@ -59,6 +60,7 @@ export const tanstackConfig = [
5960
...importRules,
6061
...nodeRules,
6162
...stylisticRules,
63+
...pluginOxlint.configs['flat/recommended'].rules,
6264
},
6365
},
6466
]

pnpm-lock.yaml

Lines changed: 98 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)