Skip to content

Commit c72afd1

Browse files
authored
chore: ESLint & PrettierをBiomeに置き換える (#DTB-2503) (#36)
1 parent d75bc23 commit c72afd1

File tree

5 files changed

+667
-810
lines changed

5 files changed

+667
-810
lines changed

.vscode/settings.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
"editor.formatOnSave": true,
33
"editor.formatOnPaste": false,
44
"editor.formatOnType": false,
5-
"eslint.format.enable": true,
65
"[javascript]": {
7-
"editor.defaultFormatter": "esbenp.prettier-vscode"
6+
"editor.defaultFormatter": "biomejs.biome"
87
},
98
"[typescript]": {
10-
"editor.defaultFormatter": "esbenp.prettier-vscode"
9+
"editor.defaultFormatter": "biomejs.biome"
10+
},
11+
"editor.codeActionsOnSave": {
12+
"quickfix.biome": "explicit"
1113
}
1214
}

biome.jsonc

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3+
"organizeImports": {
4+
"enabled": true
5+
},
6+
"formatter": {
7+
"enabled": true,
8+
"indentStyle": "space",
9+
"indentWidth": 2,
10+
"lineWidth": 120
11+
},
12+
"linter": {
13+
"enabled": true,
14+
"rules": {
15+
"recommended": true,
16+
"style": {
17+
"useNamingConvention": "off"
18+
},
19+
"suspicious": {
20+
"noShadowRestrictedNames": "off"
21+
},
22+
"complexity": {
23+
"noForEach": "off"
24+
}
25+
}
26+
},
27+
"files": {
28+
"ignore": ["build", "node_modules"]
29+
}
30+
}

eslint.config.js

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

package.json

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
"private": true,
77
"type": "module",
88
"scripts": {
9-
"lint": "eslint src/**/*.ts",
10-
"lint-fix": "pnpm lint --fix",
11-
"format": "prettier --write src/**/*.ts",
9+
"lint": "biome check",
10+
"lint-fix": "biome check --write",
1211
"type-check": "tsc --noEmit",
1312
"build": "rollup -c",
1413
"open:dev": "clasp_config_project=.clasp.dev.json clasp open",
@@ -22,23 +21,17 @@
2221
"@babel/plugin-transform-runtime": "^7.25.9",
2322
"@babel/preset-env": "^7.26.0",
2423
"@babel/preset-typescript": "^7.26.0",
25-
"@eslint/js": "^9.15.0",
2624
"@google/clasp": "^2.4.2",
2725
"@rollup/plugin-babel": "^6.0.4",
2826
"@rollup/plugin-node-resolve": "^15.3.0",
2927
"@rollup/plugin-typescript": "^12.1.1",
3028
"@types/eslint__js": "^8.42.3",
3129
"@types/google-apps-script": "^1.0.85",
3230
"@types/node": "^22.10.0",
33-
"eslint": "^9.15.0",
34-
"eslint-config-prettier": "^9.1.0",
35-
"eslint-plugin-prettier": "^5.2.1",
36-
"eslint-plugin-simple-import-sort": "^12.1.1",
37-
"prettier": "^3.4.1",
31+
"biome": "^0.3.3",
3832
"rollup": "^4.27.4",
3933
"rollup-plugin-google-apps-script": "^2.0.1",
40-
"typescript": "^5.7.2",
41-
"typescript-eslint": "^8.16.0"
34+
"typescript": "^5.7.2"
4235
},
4336
"packageManager": "pnpm@9.14.2+sha512.6e2baf77d06b9362294152c851c4f278ede37ab1eba3a55fda317a4a17b209f4dbb973fb250a77abc463a341fcb1f17f17cfa24091c4eb319cda0d9b84278387"
4437
}

0 commit comments

Comments
 (0)