@mkobayashime/shared-config 1.2.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/ci.yaml +1 -1
- package/.github/workflows/release.yaml +2 -4
- package/Makefile +4 -0
- package/README.md +6 -5
- package/biome.json +1 -1
- package/bun.lock +11 -3
- package/package.json +5 -4
- package/src/biome/index.json +8 -1
- package/src/eslint/typescriptWithBiome.js +2 -1
|
@@ -14,11 +14,9 @@ jobs:
|
|
|
14
14
|
contents: read
|
|
15
15
|
id-token: write
|
|
16
16
|
steps:
|
|
17
|
-
- uses: actions/checkout@
|
|
18
|
-
- uses: actions/setup-node@
|
|
17
|
+
- uses: actions/checkout@v6
|
|
18
|
+
- uses: actions/setup-node@v6
|
|
19
19
|
with:
|
|
20
20
|
node-version: "lts/*"
|
|
21
21
|
registry-url: "https://registry.npmjs.org"
|
|
22
22
|
- run: npm publish --provenance --access public
|
|
23
|
-
env:
|
|
24
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/Makefile
CHANGED
package/README.md
CHANGED
|
@@ -22,17 +22,18 @@ in `biome.json`
|
|
|
22
22
|
## ESLint
|
|
23
23
|
|
|
24
24
|
```bash
|
|
25
|
-
bun add -d @mkobayashime/shared-config eslint typescript-eslint
|
|
26
|
-
pnpm add -D @mkobayashime/shared-config eslint typescript-eslint
|
|
25
|
+
bun add -d @mkobayashime/shared-config eslint typescript-eslint eslint-config-flat-gitignore
|
|
26
|
+
pnpm add -D @mkobayashime/shared-config eslint typescript-eslint eslint-config-flat-gitignore
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
### [`typescript-with-biome`](./src/eslint/typescriptWithBiome.js)
|
|
30
30
|
|
|
31
31
|
```javascript
|
|
32
32
|
import { typescriptWithBiome } from "@mkobayashime/shared-config/eslint";
|
|
33
|
+
import { defineConfig } from "eslint/config";
|
|
33
34
|
|
|
34
|
-
export default
|
|
35
|
-
|
|
35
|
+
export default defineConfig(
|
|
36
|
+
typescriptWithBiome,
|
|
36
37
|
{
|
|
37
38
|
languageOptions: {
|
|
38
39
|
parserOptions: {
|
|
@@ -40,5 +41,5 @@ export default [
|
|
|
40
41
|
},
|
|
41
42
|
},
|
|
42
43
|
},
|
|
43
|
-
|
|
44
|
+
);
|
|
44
45
|
```
|
package/biome.json
CHANGED
package/bun.lock
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"lockfileVersion": 1,
|
|
3
|
+
"configVersion": 0,
|
|
3
4
|
"workspaces": {
|
|
4
5
|
"": {
|
|
5
6
|
"name": "biome-config",
|
|
@@ -8,10 +9,11 @@
|
|
|
8
9
|
"tsup": "8.5.0",
|
|
9
10
|
},
|
|
10
11
|
"peerDependencies": {
|
|
11
|
-
"@biomejs/biome": "^
|
|
12
|
-
"eslint": "^9.
|
|
12
|
+
"@biomejs/biome": "^2.0.4",
|
|
13
|
+
"eslint": "^9.31.0",
|
|
14
|
+
"eslint-config-flat-gitignore": "^2.1.0",
|
|
13
15
|
"typescript": "^5.8.3",
|
|
14
|
-
"typescript-eslint": "^8.
|
|
16
|
+
"typescript-eslint": "^8.39.0",
|
|
15
17
|
},
|
|
16
18
|
},
|
|
17
19
|
},
|
|
@@ -88,6 +90,8 @@
|
|
|
88
90
|
|
|
89
91
|
"@eslint-community/regexpp": ["@eslint-community/regexpp@4.12.1", "", {}, "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ=="],
|
|
90
92
|
|
|
93
|
+
"@eslint/compat": ["@eslint/compat@1.4.1", "", { "dependencies": { "@eslint/core": "^0.17.0" }, "peerDependencies": { "eslint": "^8.40 || 9" }, "optionalPeers": ["eslint"] }, "sha512-cfO82V9zxxGBxcQDr1lfaYB7wykTa0b00mGa36FrJl7iTFd0Z2cHfEYuxcBRP/iNijCsWsEkA+jzT8hGYmv33w=="],
|
|
94
|
+
|
|
91
95
|
"@eslint/config-array": ["@eslint/config-array@0.19.1", "", { "dependencies": { "@eslint/object-schema": "^2.1.5", "debug": "^4.3.1", "minimatch": "^3.1.2" } }, "sha512-fo6Mtm5mWyKjA/Chy1BYTdn5mGJoDNjC7C64ug20ADsRDGrA85bN3uK3MaKbeRkRuuIEAR5N33Jr1pbm411/PA=="],
|
|
92
96
|
|
|
93
97
|
"@eslint/core": ["@eslint/core@0.10.0", "", { "dependencies": { "@types/json-schema": "^7.0.15" } }, "sha512-gFHJ+xBOo4G3WRlR1e/3G8A6/KZAH6zcE/hkLRCZTi/B9avAG365QhFA8uOGzTMqgTghpn7/fSnscW++dpMSAw=="],
|
|
@@ -254,6 +258,8 @@
|
|
|
254
258
|
|
|
255
259
|
"eslint": ["eslint@9.18.0", "", { "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.12.1", "@eslint/config-array": "^0.19.0", "@eslint/core": "^0.10.0", "@eslint/eslintrc": "^3.2.0", "@eslint/js": "9.18.0", "@eslint/plugin-kit": "^0.2.5", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", "@humanwhocodes/retry": "^0.4.1", "@types/estree": "^1.0.6", "@types/json-schema": "^7.0.15", "ajv": "^6.12.4", "chalk": "^4.0.0", "cross-spawn": "^7.0.6", "debug": "^4.3.2", "escape-string-regexp": "^4.0.0", "eslint-scope": "^8.2.0", "eslint-visitor-keys": "^4.2.0", "espree": "^10.3.0", "esquery": "^1.5.0", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", "file-entry-cache": "^8.0.0", "find-up": "^5.0.0", "glob-parent": "^6.0.2", "ignore": "^5.2.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", "json-stable-stringify-without-jsonify": "^1.0.1", "lodash.merge": "^4.6.2", "minimatch": "^3.1.2", "natural-compare": "^1.4.0", "optionator": "^0.9.3" }, "peerDependencies": { "jiti": "*" }, "optionalPeers": ["jiti"], "bin": { "eslint": "bin/eslint.js" } }, "sha512-+waTfRWQlSbpt3KWE+CjrPPYnbq9kfZIYUqapc0uBXyjTp8aYXZDsUH16m39Ryq3NjAVP4tjuF7KaukeqoCoaA=="],
|
|
256
260
|
|
|
261
|
+
"eslint-config-flat-gitignore": ["eslint-config-flat-gitignore@2.1.0", "", { "dependencies": { "@eslint/compat": "^1.2.5" }, "peerDependencies": { "eslint": "^9.5.0" } }, "sha512-cJzNJ7L+psWp5mXM7jBX+fjHtBvvh06RBlcweMhKD8jWqQw0G78hOW5tpVALGHGFPsBV+ot2H+pdDGJy6CV8pA=="],
|
|
262
|
+
|
|
257
263
|
"eslint-scope": ["eslint-scope@8.2.0", "", { "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^5.2.0" } }, "sha512-PHlWUfG6lvPc3yvP5A4PNyBL1W8fkDUccmI21JUu/+GKZBoH/W5u6usENXUrWFRsyoW5ACUjFGgAFQp5gUlb/A=="],
|
|
258
264
|
|
|
259
265
|
"eslint-visitor-keys": ["eslint-visitor-keys@4.2.0", "", {}, "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw=="],
|
|
@@ -488,6 +494,8 @@
|
|
|
488
494
|
|
|
489
495
|
"@eslint-community/eslint-utils/eslint-visitor-keys": ["eslint-visitor-keys@3.4.3", "", {}, "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag=="],
|
|
490
496
|
|
|
497
|
+
"@eslint/compat/@eslint/core": ["@eslint/core@0.17.0", "", { "dependencies": { "@types/json-schema": "^7.0.15" } }, "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ=="],
|
|
498
|
+
|
|
491
499
|
"@humanfs/node/@humanwhocodes/retry": ["@humanwhocodes/retry@0.3.1", "", {}, "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA=="],
|
|
492
500
|
|
|
493
501
|
"@typescript-eslint/typescript-estree/minimatch": ["minimatch@9.0.5", "", { "dependencies": { "brace-expansion": "^2.0.1" } }, "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow=="],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mkobayashime/shared-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,9 +15,10 @@
|
|
|
15
15
|
"tsup": "8.5.0"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"@biomejs/biome": "^
|
|
19
|
-
"eslint": "^9.
|
|
18
|
+
"@biomejs/biome": "^2.0.4",
|
|
19
|
+
"eslint": "^9.31.0",
|
|
20
|
+
"eslint-config-flat-gitignore": "^2.1.0",
|
|
20
21
|
"typescript": "^5.8.3",
|
|
21
|
-
"typescript-eslint": "^8.
|
|
22
|
+
"typescript-eslint": "^8.39.0"
|
|
22
23
|
}
|
|
23
24
|
}
|
package/src/biome/index.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.0.4/schema.json",
|
|
3
3
|
"vcs": {
|
|
4
4
|
"enabled": true,
|
|
5
5
|
"clientKind": "git",
|
|
@@ -21,6 +21,13 @@
|
|
|
21
21
|
"noUnusedImports": "error",
|
|
22
22
|
"noUnusedVariables": "error",
|
|
23
23
|
"useHookAtTopLevel": "error"
|
|
24
|
+
},
|
|
25
|
+
"style": {
|
|
26
|
+
"noParameterAssign": "error",
|
|
27
|
+
"useSelfClosingElements": "error",
|
|
28
|
+
"noUnusedTemplateLiteral": "error",
|
|
29
|
+
"useNumberNamespace": "error",
|
|
30
|
+
"noUselessElse": "error"
|
|
24
31
|
}
|
|
25
32
|
}
|
|
26
33
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import gitignore from "eslint-config-flat-gitignore";
|
|
1
2
|
import tsESLint from "typescript-eslint";
|
|
2
3
|
|
|
3
4
|
export const typescriptWithBiome = tsESLint.config({
|
|
4
|
-
extends: [tsESLint.configs.base],
|
|
5
|
+
extends: [tsESLint.configs.base, gitignore()],
|
|
5
6
|
files: ["**/*.ts", "**/*.tsx"],
|
|
6
7
|
rules: {
|
|
7
8
|
"@typescript-eslint/await-thenable": "error",
|