Skip to content

Commit 5dfb0b5

Browse files
authored
build: migrate to oxlint (#73)
1 parent 4580319 commit 5dfb0b5

8 files changed

Lines changed: 1506 additions & 5468 deletions

File tree

.eslintignore

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

.github/linters/.eslintrc.yml

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

.github/linters/tsconfig.json

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

.github/workflows/linter.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,11 @@ jobs:
4848
VALIDATE_ALL_CODEBASE: true
4949
VALIDATE_BIOME_FORMAT: false
5050
VALIDATE_BIOME_LINT: false
51+
VALIDATE_JAVASCRIPT_ES: false
5152
VALIDATE_JAVASCRIPT_STANDARD: false
5253
VALIDATE_JSCPD: false
5354
VALIDATE_MARKDOWN_PRETTIER: false
55+
VALIDATE_TYPESCRIPT_ES: false
5456
VALIDATE_TYPESCRIPT_PRETTIER: false
5557
VALIDATE_TYPESCRIPT_STANDARD: false
5658
VALIDATE_YAML_PRETTIER: false

.oxlintrc.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"plugins": ["typescript", "vitest", "import", "unicorn"],
4+
"categories": {
5+
"correctness": "error"
6+
},
7+
"rules": {
8+
"no-console": "off",
9+
"no-unused-vars": "off",
10+
"typescript/array-type": "error",
11+
"typescript/ban-ts-comment": "error",
12+
"typescript/consistent-type-assertions": "error",
13+
"typescript/explicit-function-return-type": [
14+
"error",
15+
{ "allowExpressions": true }
16+
],
17+
"typescript/no-array-constructor": "error",
18+
"typescript/no-empty-interface": "error",
19+
"typescript/no-explicit-any": "error",
20+
"typescript/no-extraneous-class": "error",
21+
"typescript/no-inferrable-types": "error",
22+
"typescript/no-namespace": "error",
23+
"typescript/no-non-null-assertion": "warn",
24+
"typescript/no-require-imports": "error",
25+
"typescript/no-unnecessary-qualifier": "error",
26+
"typescript/no-unnecessary-type-assertion": "error",
27+
"typescript/no-unused-vars": "error",
28+
"typescript/no-useless-constructor": "error",
29+
"typescript/no-var-requires": "error",
30+
"typescript/prefer-for-of": "warn",
31+
"typescript/prefer-function-type": "warn",
32+
"typescript/prefer-includes": "error",
33+
"typescript/prefer-string-starts-ends-with": "error",
34+
"typescript/promise-function-async": "error",
35+
"typescript/require-array-sort-compare": "error",
36+
"typescript/restrict-plus-operands": "error",
37+
"typescript/unbound-method": "error"
38+
},
39+
"ignorePatterns": ["lib/", "dist/", "node_modules/", "coverage/", "*.json"]
40+
}

0 commit comments

Comments
 (0)