Skip to content

Commit adf0a18

Browse files
WIP: disable rules covered by oxlint
1 parent 6d91c9c commit adf0a18

File tree

10 files changed

+132
-5
lines changed

10 files changed

+132
-5
lines changed

oxlint.json

Lines changed: 14 additions & 0 deletions
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+
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"eslint": "catalog:",
3535
"jsdom": "catalog:",
3636
"nx": "catalog:",
37+
"oxlint": "catalog:",
3738
"prettier": "catalog:",
3839
"publint": "catalog:",
3940
"sherif": "catalog:",

packages/config/package.json

Lines changed: 1 addition & 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 ./src",
19+
"test:eslint": "oxlint -c ../../oxlint.json && eslint ./src",
2020
"test:build": "publint --strict",
2121
"build": "vite build"
2222
},

packages/eslint-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 ./src",
19+
"test:eslint": "oxlint -c ../../oxlint.json && eslint ./src",
2020
"test:build": "publint --strict"
2121
},
2222
"type": "module",
@@ -41,6 +41,7 @@
4141
"@stylistic/eslint-plugin-js": "catalog:",
4242
"eslint-plugin-import-x": "catalog:",
4343
"eslint-plugin-n": "catalog:",
44+
"eslint-plugin-oxlint": "catalog:",
4445
"globals": "catalog:",
4546
"typescript-eslint": "catalog:",
4647
"vue-eslint-parser": "catalog:"

packages/eslint-config/src/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
// @ts-check
2+
13
import tseslint from 'typescript-eslint'
24
import vueparser from 'vue-eslint-parser'
35
import stylisticJs from '@stylistic/eslint-plugin-js'
46
import pluginImport from 'eslint-plugin-import-x'
57
import pluginNode from 'eslint-plugin-n'
8+
import pluginOxlint from 'eslint-plugin-oxlint'
69
import globals from 'globals'
710
import { javascriptRules } from './javascript.js'
811
import { importRules } from './import.js'
@@ -29,6 +32,8 @@ const jsRules = {
2932
...importRules,
3033
...nodeRules,
3134
...stylisticRules,
35+
// @ts-ignore Invalid type
36+
...pluginOxlint.configs['flat/recommended'].rules,
3237
}
3338

3439
const jsPlugins = {

packages/publish-config/package.json

Lines changed: 1 addition & 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 ./src",
19+
"test:eslint": "oxlint -c ../../oxlint.json && eslint ./src",
2020
"test:build": "publint --strict"
2121
},
2222
"type": "module",

packages/typedoc-config/package.json

Lines changed: 1 addition & 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 ./src",
19+
"test:eslint": "oxlint -c ../../oxlint.json && eslint ./src",
2020
"test:build": "publint --strict"
2121
},
2222
"type": "module",

packages/vite-config/package.json

Lines changed: 1 addition & 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 ./src",
19+
"test:eslint": "oxlint -c ../../oxlint.json && eslint ./src",
2020
"test:build": "publint --strict"
2121
},
2222
"type": "module",

pnpm-lock.yaml

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

pnpm-workspace.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,15 @@ catalog:
2626
eslint: ^9.27.0
2727
eslint-plugin-import-x: ^4.12.2
2828
eslint-plugin-n: ^17.18.0
29+
eslint-plugin-oxlint: ^0.16.11
2930
globals: ^16.1.0
3031
interpret: ^3.1.1
3132
jsdom: ^26.1.0
3233
jsonfile: ^6.1.0
3334
liftoff: ^5.0.0
3435
minimist: ^1.2.8
3536
nx: ^20.8.2
37+
oxlint: ^0.16.11
3638
prettier: ^3.5.3
3739
publint: ^0.3.12
3840
react: ^19.1.0

0 commit comments

Comments
 (0)