Skip to content

Commit 5173b77

Browse files
authored
build: Drop ESLint, use Biome for linting (#1170)
* build: Migrated from ESLint to Biomejs for linting * build: Added VScode settings/plugin recommendations
1 parent 129c974 commit 5173b77

File tree

252 files changed

+1438
-3798
lines changed

Some content is hidden

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

252 files changed

+1438
-3798
lines changed

.eslintignore

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

.eslintrc.json

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

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
## editors
22
/.idea
3-
/.vscode
43

54
## system files
65
.DS_Store

.vscode/extensions.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3+
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4+
// List of extensions which should be recommended for users of this workspace.
5+
"recommendations": [
6+
"biomejs.biome",
7+
"editorconfig.editorconfig",
8+
"esbenp.prettier-vscode",
9+
"runem.lit-plugin",
10+
"streetsidesoftware.code-spell-checker"
11+
],
12+
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
13+
"unwantedRecommendations": []
14+
}

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"lit-plugin.strict": true,
3+
"typescript.tsdk": "node_modules/typescript/lib"
4+
}

biome.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.7.0/schema.json",
3+
"files": {
4+
"include": [
5+
"src/**/*.ts",
6+
"src/**/*.js",
7+
"scripts/*.js",
8+
"scripts/*.mjs",
9+
"stories/*.ts"
10+
],
11+
"ignore": ["dist/**/*"]
12+
},
13+
"vcs": {
14+
"clientKind": "git",
15+
"useIgnoreFile": true
16+
},
17+
"organizeImports": {
18+
"enabled": true
19+
},
20+
"formatter": {
21+
"enabled": false
22+
},
23+
"linter": {
24+
"enabled": true,
25+
"rules": {
26+
"recommended": true,
27+
"complexity": {
28+
"noForEach": "off",
29+
"noStaticOnlyClass": "off"
30+
},
31+
"style": {
32+
"noNamespace": "error",
33+
"useCollapsedElseIf": "error",
34+
"noNonNullAssertion": "off"
35+
},
36+
"suspicious": {
37+
"noExplicitAny": "off"
38+
}
39+
}
40+
}
41+
}

0 commit comments

Comments
 (0)