Skip to content

Commit

Permalink
chore: Remove eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Jan 10, 2025
1 parent 73918a6 commit e72580e
Show file tree
Hide file tree
Showing 81 changed files with 1,126 additions and 2,680 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

5 changes: 0 additions & 5 deletions .eslintrc.json

This file was deleted.

6 changes: 0 additions & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"editor.tabSize": 2,
"eslint.validate": [
{
"autoFix": true,
"language": "typescript"
},
]
}
73 changes: 73 additions & 0 deletions oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": [
"import",
"typescript",
"node",
"unicorn"
],
"env": {
"browser": true,
"node": true
},
"ignorePatterns": [
"**/node_modules/**",
"**/dist/**"
],
"globals": {
"foo": "readonly"
},
"settings": {},
"rules": {
"eqeqeq": "warn",
"import/no-cycle": "error",
"@typescript-eslint/no-unsafe-declaration-merging": "off",
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": {
"delimiter": "none"
}
}
],
"@typescript-eslint/ban-types": 0,
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-unused-expressions": 2,
"@typescript-eslint/no-unused-vars": 0,
"unicorn/no-new-array": 0,
"import/no-absolute-path": 0,
"space-before-function-paren": 0,
"no-useless-constructor": 0,
"no-unused-vars": 0,
"no-use-before-define": 0,
"node/no-callback-literal": 0
},
"overrides": [
{
"files": [
"*.test.ts",
"*.spec.ts"
],
"rules": {
"@typescript-eslint/no-explicit-any": "off"
}
},
{
"files": [
"**/asm/**"
],
"rules": {
"@typescript-eslint/no-duplicate-enum-values": "off",
"no-dupe-else-if": "off",
"eqeqeq": "off",
"no-this-alias": "off"
}
}
]
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@
"version": "7.6.0",
"scripts": {
"build:docs": "tsx scripts/docs.ts",
"lint": "eslint packages --ext .ts",
"lint:fix": "eslint packages --ext .ts --fix",
"lint": "oxlint -c ./oxlintrc.json packages/**",
"lint:fix": "oxlint -c ./oxlintrc.json packages/** --fix",
"test": "vitest",
"coverage": "vitest run --coverage"
},
"packageManager": "[email protected]",
"devDependencies": {
"tsx": "^4.19.2",
"typedoc": "^0.27.6",
"oxlint": "^0.15.5",
"typescript": "^5.3.3",
"@vitest/coverage-v8": "^2.1.8",
"vitest": "^2.1.8"
Expand Down
6 changes: 3 additions & 3 deletions packages/asm/libs/AnnotationWriter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@

import type { ClassWriter } from './ClassWriter'
import { AnnotationVisitor } from './AnnotationVisitor'
import { ByteVector } from './ByteVector'
import type { ByteVector } from './ByteVector'
import { Opcodes } from './Opcodes'
import { Item } from './Item'
import { TypePath } from './TypePath'
import type { Item } from './Item'
import type { TypePath } from './TypePath'
import { Type } from './Type'

export class AnnotationWriter extends AnnotationVisitor {
Expand Down
6 changes: 3 additions & 3 deletions packages/asm/libs/Attribute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
* @author Eric Bruneton
* @author Eugene Kuleshov
*/
import { Label } from './Label'
import { ClassReader } from './ClassReader'
import { ClassWriter } from './ClassWriter'
import type { Label } from './Label'
import type { ClassReader } from './ClassReader'
import type { ClassWriter } from './ClassWriter'
import { ByteVector } from './ByteVector'
import { assert } from './utils'

Expand Down
Loading

0 comments on commit e72580e

Please sign in to comment.