Skip to content

Commit 701c0f3

Browse files
WIP: disable rules covered by oxlint
1 parent b79ac96 commit 701c0f3

File tree

6 files changed

+125
-1
lines changed

6 files changed

+125
-1
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
@@ -26,6 +26,7 @@
2626
"@types/node": "catalog:",
2727
"jsdom": "catalog:",
2828
"nx": "catalog:",
29+
"oxlint": "catalog:",
2930
"prettier": "catalog:",
3031
"publint": "catalog:",
3132
"sherif": "catalog:",

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",
@@ -66,6 +66,7 @@
6666
"esbuild-register": "catalog:",
6767
"eslint-plugin-import-x": "catalog:",
6868
"eslint-plugin-n": "catalog:",
69+
"eslint-plugin-oxlint": "catalog:",
6970
"globals": "catalog:",
7071
"interpret": "catalog:",
7172
"jsonfile": "catalog:",

packages/config/src/eslint/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import vueparser from 'vue-eslint-parser'
33
import stylisticJs from '@stylistic/eslint-plugin-js'
44
import pluginImport from 'eslint-plugin-import-x'
55
import pluginNode from 'eslint-plugin-n'
6+
import pluginOxlint from 'eslint-plugin-oxlint'
67
import globals from 'globals'
78
import { javascriptRules } from './javascript.js'
89
import { importRules } from './import.js'
@@ -29,6 +30,7 @@ const jsRules = {
2930
...importRules,
3031
...nodeRules,
3132
...stylisticRules,
33+
...pluginOxlint.configs['flat/recommended'].rules,
3234
}
3335

3436
const jsPlugins = {

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
@@ -24,13 +24,15 @@ catalog:
2424
eslint: ^9.20.0
2525
eslint-plugin-import-x: ^4.6.1
2626
eslint-plugin-n: ^17.15.1
27+
eslint-plugin-oxlint: ^0.15.10
2728
globals: ^15.14.0
2829
interpret: ^3.1.1
2930
jsdom: ^26.0.0
3031
jsonfile: ^6.1.0
3132
liftoff: ^5.0.0
3233
minimist: ^1.2.8
3334
nx: ^20.4.2
35+
oxlint: ^0.15.10
3436
prettier: ^3.5.0
3537
publint: ^0.3.4
3638
react: ^19.0.0

0 commit comments

Comments
 (0)