Skip to content

Commit 23b6b52

Browse files
committed
chore: Remove eslint
1 parent 73918a6 commit 23b6b52

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+1125
-2679
lines changed

.eslintignore

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

.eslintrc.json

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

.vscode/settings.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
{
22
"typescript.tsdk": "node_modules/typescript/lib",
33
"editor.tabSize": 2,
4-
"eslint.validate": [
5-
{
6-
"autoFix": true,
7-
"language": "typescript"
8-
},
9-
]
104
}

oxlintrc.json

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"plugins": [
4+
"import",
5+
"typescript",
6+
"node",
7+
"unicorn"
8+
],
9+
"env": {
10+
"browser": true,
11+
"node": true
12+
},
13+
"ignorePatterns": [
14+
"**/node_modules/**",
15+
"**/dist/**"
16+
],
17+
"globals": {
18+
"foo": "readonly"
19+
},
20+
"settings": {},
21+
"rules": {
22+
"eqeqeq": "warn",
23+
"import/no-cycle": "error",
24+
"@typescript-eslint/no-unsafe-declaration-merging": "off",
25+
"@typescript-eslint/member-delimiter-style": [
26+
"error",
27+
{
28+
"multiline": {
29+
"delimiter": "none"
30+
}
31+
}
32+
],
33+
"@typescript-eslint/ban-types": 0,
34+
"@typescript-eslint/ban-ts-comment": 0,
35+
"@typescript-eslint/explicit-function-return-type": 0,
36+
"@typescript-eslint/explicit-module-boundary-types": 0,
37+
"@typescript-eslint/no-empty-function": 0,
38+
"@typescript-eslint/no-empty-interface": 0,
39+
"@typescript-eslint/no-explicit-any": 0,
40+
"@typescript-eslint/no-non-null-assertion": 0,
41+
"@typescript-eslint/no-unused-expressions": 2,
42+
"@typescript-eslint/no-unused-vars": 0,
43+
"unicorn/no-new-array": 0,
44+
"import/no-absolute-path": 0,
45+
"space-before-function-paren": 0,
46+
"no-useless-constructor": 0,
47+
"no-unused-vars": 0,
48+
"no-use-before-define": 0,
49+
"node/no-callback-literal": 0
50+
},
51+
"overrides": [
52+
{
53+
"files": [
54+
"*.test.ts",
55+
"*.spec.ts"
56+
],
57+
"rules": {
58+
"@typescript-eslint/no-explicit-any": "off"
59+
}
60+
},
61+
{
62+
"files": [
63+
"**/asm/**"
64+
],
65+
"rules": {
66+
"@typescript-eslint/no-duplicate-enum-values": "off",
67+
"no-dupe-else-if": "off",
68+
"eqeqeq": "off",
69+
"no-this-alias": "off"
70+
}
71+
}
72+
]
73+
}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@
33
"version": "7.6.0",
44
"scripts": {
55
"build:docs": "tsx scripts/docs.ts",
6-
"lint": "eslint packages --ext .ts",
7-
"lint:fix": "eslint packages --ext .ts --fix",
6+
"lint": "oxlint -c ./oxlintrc.json packages/**",
7+
"lint:fix": "oxlint -c ./oxlintrc.json packages/** --fix",
88
"test": "vitest",
99
"coverage": "vitest run --coverage"
1010
},
1111
"packageManager": "[email protected]",
1212
"devDependencies": {
1313
"tsx": "^4.19.2",
1414
"typedoc": "^0.27.6",
15+
"oxlint": "^0.15.5",
1516
"typescript": "^5.3.3",
1617
"@vitest/coverage-v8": "^2.1.8",
1718
"vitest": "^2.1.8"

packages/asm/libs/AnnotationWriter.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838

3939
import type { ClassWriter } from './ClassWriter'
4040
import { AnnotationVisitor } from './AnnotationVisitor'
41-
import { ByteVector } from './ByteVector'
41+
import type { ByteVector } from './ByteVector'
4242
import { Opcodes } from './Opcodes'
43-
import { Item } from './Item'
44-
import { TypePath } from './TypePath'
43+
import type { Item } from './Item'
44+
import type { TypePath } from './TypePath'
4545
import { Type } from './Type'
4646

4747
export class AnnotationWriter extends AnnotationVisitor {

packages/asm/libs/Attribute.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
* @author Eric Bruneton
3535
* @author Eugene Kuleshov
3636
*/
37-
import { Label } from './Label'
38-
import { ClassReader } from './ClassReader'
39-
import { ClassWriter } from './ClassWriter'
37+
import type { Label } from './Label'
38+
import type { ClassReader } from './ClassReader'
39+
import type { ClassWriter } from './ClassWriter'
4040
import { ByteVector } from './ByteVector'
4141
import { assert } from './utils'
4242

0 commit comments

Comments
 (0)