Skip to content

Commit 89b7dcb

Browse files
committed
chore(lint): move to biome instead of eslint (#538)
1 parent c5aa622 commit 89b7dcb

File tree

6 files changed

+166
-1979
lines changed

6 files changed

+166
-1979
lines changed

.eslintrc.cjs

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

biome.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3+
"vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false },
4+
"files": {
5+
"ignoreUnknown": true,
6+
"ignore": [
7+
"node_modules/**",
8+
"**/node_modules/**",
9+
"**/pnpm-lock.yaml",
10+
"**/dist/**",
11+
"**/out/**",
12+
"packages/open-next/assets/sharp-node-modules",
13+
"packages/open-next/src/minimize-js.ts"
14+
]
15+
},
16+
"formatter": { "enabled": false },
17+
"organizeImports": { "enabled": false },
18+
"linter": {
19+
"enabled": true,
20+
"rules": {
21+
"recommended": false,
22+
"complexity": {
23+
"noExcessiveCognitiveComplexity": {
24+
"level": "warn",
25+
"options": {
26+
"maxAllowedComplexity": 35
27+
}
28+
},
29+
"noVoid": "off",
30+
"useArrowFunction": "off"
31+
},
32+
"correctness": {
33+
"noInvalidUseBeforeDeclaration": "off",
34+
"noUndeclaredVariables": "off",
35+
"noUnusedImports": { "level": "error" },
36+
"noUnusedVariables": "warn"
37+
},
38+
"nursery": { "noRestrictedImports": "error", "useExplicitType": "off" },
39+
"style": {
40+
"noNonNullAssertion": "off",
41+
"useBlockStatements": "off",
42+
"useImportType": "error"
43+
},
44+
"suspicious": { "noExplicitAny": "off" }
45+
}
46+
},
47+
"javascript": {
48+
"formatter": { "quoteStyle": "double" },
49+
"jsxRuntime": "reactClassic"
50+
},
51+
"overrides": [
52+
{
53+
"include": ["example/**/*", "examples/**/*"],
54+
"linter": { "rules": { "correctness": { "noUnusedVariables": "off" } } }
55+
}
56+
]
57+
}

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,18 @@
88
"dev": "turbo run dev",
99
"build": "turbo run build",
1010
"clean": "turbo run clean && rm -rf node_modules pnpm-lock.yaml",
11-
"lint": "eslint --ext .js,.ts,.tsx .",
12-
"lint:fix": "eslint --fix --ext .js,.ts,.tsx .",
11+
"lint": "biome lint",
12+
"lint:fix": "biome lint --fix",
1313
"test": "turbo run test",
1414
"e2e:test": "turbo run e2e:test",
1515
"version": "./.changeset/version",
1616
"release": "./.changeset/release",
1717
"release-snapshot": "./.changeset/snapshot"
1818
},
1919
"devDependencies": {
20+
"@biomejs/biome": "1.9.4",
2021
"@changesets/changelog-github": "^0.4.4",
2122
"@changesets/cli": "^2.22.0",
22-
"@sladg/eslint-config-base": "1.4.1",
23-
"eslint": "^8.47.0",
2423
"pkg-pr-new": "^0.0.29",
2524
"turbo": "1.10.12"
2625
},

packages/utils/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"scripts": {
1717
"build": "tsup ./src/*.ts --format cjs --dts",
1818
"dev": "tsup ./src/*.ts --format cjs --dts --watch",
19-
"lint": "TIMING=1 eslint \"**/*.ts*\"",
2019
"clean": "rm -rf .turbo && rm -rf node_modules"
2120
},
2221
"dependencies": {},

0 commit comments

Comments
 (0)