Skip to content

Commit 3cc7c8c

Browse files
WIP: disable rules covered by oxlint
Update to 0.10.0
1 parent 2992b81 commit 3cc7c8c

File tree

5 files changed

+105
-1
lines changed

5 files changed

+105
-1
lines changed

oxlint.json

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

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.6",
29+
"oxlint": "^0.10.3",
2930
"prettier": "^3.3.3",
3031
"publint": "^0.2.11",
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.3.1",
6969
"eslint-plugin-n": "^17.11.1",
70+
"eslint-plugin-oxlint": "^0.10.1",
7071
"globals": "^15.11.0",
7172
"interpret": "^3.1.1",
7273
"jsonfile": "^6.1.0",

packages/config/src/eslint/index.js

Lines changed: 3 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'
@@ -53,12 +54,14 @@ export const tanstackConfig = [
5354
import: pluginImport,
5455
node: pluginNode,
5556
},
57+
// @ts-expect-error
5658
rules: {
5759
...javascriptRules,
5860
...typescriptRules,
5961
...importRules,
6062
...nodeRules,
6163
...stylisticRules,
64+
...pluginOxlint.configs['flat/recommended'].rules,
6265
},
6366
},
6467
]

pnpm-lock.yaml

Lines changed: 91 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)