Skip to content

Commit 6440bc5

Browse files
chore: switch to oxlint (#1851)
* chore: switch to oxlint * docs: add todo note * chore: remove script * chore: update lint rules * chore: rename scripts
1 parent 6426bcf commit 6440bc5

36 files changed

Lines changed: 2062 additions & 4128 deletions

‎.eslintrc.js‎

Lines changed: 0 additions & 37 deletions
This file was deleted.

‎.oxfmtrc.json‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
"singleQuote": true,
4+
"trailingComma": "es5",
5+
"arrowParens": "avoid"
6+
}

‎.oxlintrc.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": ["typescript"],
4+
"categories": {
5+
"correctness": "error"
6+
},
7+
"rules": {
8+
"no-var": "error",
9+
"prefer-const": "error",
10+
"no-new-wrappers": "error",
11+
"no-unused-vars": ["error", { "caughtErrors": "none", "argsIgnorePattern": "^_" }]
12+
},
13+
"ignorePatterns": ["**/*.js", "**/node_modules/**"]
14+
}

0 commit comments

Comments
 (0)