Skip to content

Commit e816876

Browse files
WIP: disable rules covered by oxlint
Disable some rules
1 parent ec5d38a commit e816876

File tree

5 files changed

+117
-1
lines changed

5 files changed

+117
-1
lines changed

Diff for: oxlint.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+
"rules": {
10+
"eslint/no-await-in-loop": "allow",
11+
"jsdoc/check-tag-names": "allow",
12+
"oxc/no-accumulating-spread": "allow"
13+
}
14+
}

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"@types/node": "^22.10.1",
2727
"jsdom": "^25.0.1",
2828
"nx": "^20.2.0",
29+
"oxlint": "^0.14.1",
2930
"prettier": "^3.4.2",
3031
"publint": "^0.2.12",
3132
"sherif": "^1.0.2",

Diff for: packages/config/package.json

+2-1
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.5.0",
6969
"eslint-plugin-n": "^17.14.0",
70+
"eslint-plugin-oxlint": "^0.14.1",
7071
"globals": "^15.13.0",
7172
"interpret": "^3.1.1",
7273
"jsonfile": "^6.1.0",

Diff for: packages/config/src/eslint/index.js

+2
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
]

Diff for: pnpm-lock.yaml

+98
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)