Skip to content

Commit

Permalink
build: Drop ESLint, use Biome for linting (#1170)
Browse files Browse the repository at this point in the history
* build: Migrated from ESLint to Biomejs for linting
* build: Added VScode settings/plugin recommendations
  • Loading branch information
rkaraivanov authored Apr 24, 2024
1 parent 129c974 commit 5173b77
Show file tree
Hide file tree
Showing 252 changed files with 1,438 additions and 3,798 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

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

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
## editors
/.idea
/.vscode

## system files
.DS_Store
Expand Down
14 changes: 14 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
// List of extensions which should be recommended for users of this workspace.
"recommendations": [
"biomejs.biome",
"editorconfig.editorconfig",
"esbenp.prettier-vscode",
"runem.lit-plugin",
"streetsidesoftware.code-spell-checker"
],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": []
}
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"lit-plugin.strict": true,
"typescript.tsdk": "node_modules/typescript/lib"
}
41 changes: 41 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"$schema": "https://biomejs.dev/schemas/1.7.0/schema.json",
"files": {
"include": [
"src/**/*.ts",
"src/**/*.js",
"scripts/*.js",
"scripts/*.mjs",
"stories/*.ts"
],
"ignore": ["dist/**/*"]
},
"vcs": {
"clientKind": "git",
"useIgnoreFile": true
},
"organizeImports": {
"enabled": true
},
"formatter": {
"enabled": false
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"complexity": {
"noForEach": "off",
"noStaticOnlyClass": "off"
},
"style": {
"noNamespace": "error",
"useCollapsedElseIf": "error",
"noNonNullAssertion": "off"
},
"suspicious": {
"noExplicitAny": "off"
}
}
}
}
Loading

0 comments on commit 5173b77

Please sign in to comment.