@mkobayashime/shared-config 2.0.0 → 3.1.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.
@@ -7,7 +7,7 @@ jobs:
7
7
  name: CI
8
8
  runs-on: ubuntu-latest
9
9
  steps:
10
- - uses: actions/checkout@v4
10
+ - uses: actions/checkout@v6
11
11
  - uses: oven-sh/setup-bun@v2
12
12
  with:
13
13
  bun-version: latest
@@ -14,11 +14,9 @@ jobs:
14
14
  contents: read
15
15
  id-token: write
16
16
  steps:
17
- - uses: actions/checkout@v4
18
- - uses: actions/setup-node@v4
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
@@ -1,7 +1,11 @@
1
1
  biome = bunx biome
2
2
 
3
3
  deps: PHONY
4
+ ifeq ($(CI), true)
5
+ bun install --frozen-lockfile
6
+ else
4
7
  bun install
8
+ endif
5
9
 
6
10
  lint: deps PHONY
7
11
  $(biome) check .
package/README.md CHANGED
@@ -13,6 +13,7 @@ in `biome.json`
13
13
 
14
14
  ```json
15
15
  {
16
+ "$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
16
17
  "extends": [
17
18
  "@mkobayashime/shared-config/biome"
18
19
  ]
@@ -22,17 +23,18 @@ in `biome.json`
22
23
  ## ESLint
23
24
 
24
25
  ```bash
25
- bun add -d @mkobayashime/shared-config eslint typescript-eslint
26
- pnpm add -D @mkobayashime/shared-config eslint typescript-eslint
26
+ bun add -d @mkobayashime/shared-config eslint typescript-eslint eslint-config-flat-gitignore
27
+ pnpm add -D @mkobayashime/shared-config eslint typescript-eslint eslint-config-flat-gitignore
27
28
  ```
28
29
 
29
30
  ### [`typescript-with-biome`](./src/eslint/typescriptWithBiome.js)
30
31
 
31
32
  ```javascript
32
33
  import { typescriptWithBiome } from "@mkobayashime/shared-config/eslint";
34
+ import { defineConfig } from "eslint/config";
33
35
 
34
- export default [
35
- ...typescriptWithBiome,
36
+ export default defineConfig(
37
+ typescriptWithBiome,
36
38
  {
37
39
  languageOptions: {
38
40
  parserOptions: {
@@ -40,5 +42,5 @@ export default [
40
42
  },
41
43
  },
42
44
  },
43
- ];
45
+ );
44
46
  ```
package/biome.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/2.0.4/schema.json",
2
+ "$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3
3
  "extends": ["./src/biome/index.json"]
4
4
  }
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",
@@ -9,9 +10,10 @@
9
10
  },
10
11
  "peerDependencies": {
11
12
  "@biomejs/biome": "^2.0.4",
12
- "eslint": "^9.29.0",
13
+ "eslint": "^9.31.0",
14
+ "eslint-config-flat-gitignore": "^2.1.0",
13
15
  "typescript": "^5.8.3",
14
- "typescript-eslint": "^8.34.1",
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": "2.0.0",
3
+ "version": "3.1.0",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,8 +16,9 @@
16
16
  },
17
17
  "peerDependencies": {
18
18
  "@biomejs/biome": "^2.0.4",
19
- "eslint": "^9.29.0",
19
+ "eslint": "^9.31.0",
20
+ "eslint-config-flat-gitignore": "^2.1.0",
20
21
  "typescript": "^5.8.3",
21
- "typescript-eslint": "^8.34.1"
22
+ "typescript-eslint": "^8.39.0"
22
23
  }
23
24
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/2.0.4/schema.json",
2
+ "$schema": "../../node_modules/@biomejs/biome/configuration_schema.json",
3
3
  "vcs": {
4
4
  "enabled": true,
5
5
  "clientKind": "git",
@@ -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",