@slashnephy/eslint-config 3.0.118 → 3.0.120

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/README.md CHANGED
@@ -6,20 +6,24 @@
6
6
  ## Install
7
7
 
8
8
  ```console
9
- pnpm add @slashnephy/eslint-config
9
+ pnpm add -D @slashnephy/eslint-config
10
10
  ```
11
11
 
12
12
  ## Usage (for Flat Configs)
13
13
 
14
- `eslint.config.js` or `eslint.config.mjs`
14
+ `eslint.config.ts` or `eslint.config.mts`
15
15
 
16
- ```javascript
17
- import { defineConfig } from 'eslint/config'
18
- import config from '@slashnephy/eslint-config'
16
+ ```typescript
17
+ import { config } from '@slashnephy/eslint-config'
19
18
 
20
- export default defineConfig([
21
- ...config,
19
+ export default config(
22
20
  {
21
+ ignores: [
22
+ '__generated__/**',
23
+ ],
24
+ },
25
+ {
26
+ // If tsconfig.json is not recognized, try this:
23
27
  languageOptions: {
24
28
  parserOptions: {
25
29
  tsconfigRootDir: import.meta.dirname,
@@ -27,8 +31,7 @@ export default defineConfig([
27
31
  },
28
32
  },
29
33
  {
30
- // your custom config
34
+ // Your custom config...
31
35
  },
32
- ])
33
-
36
+ )
34
37
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slashnephy/eslint-config",
3
- "version": "3.0.118",
3
+ "version": "3.0.120",
4
4
  "keywords": [
5
5
  "eslint",
6
6
  "eslintconfig"
@@ -21,6 +21,7 @@
21
21
  "@eslint-community/eslint-plugin-eslint-comments": "4.5.0",
22
22
  "@eslint/js": "9.39.2",
23
23
  "@graphql-eslint/eslint-plugin": "4.4.0",
24
+ "@microsoft/eslint-formatter-sarif": "3.1.0",
24
25
  "@next/eslint-plugin-next": "16.0.10",
25
26
  "@stylistic/eslint-plugin": "5.6.1",
26
27
  "@susisu/eslint-plugin-safe-typescript": "0.10.1",
@@ -30,21 +31,21 @@
30
31
  "eslint-import-resolver-node": "0.3.9",
31
32
  "eslint-import-resolver-typescript": "4.4.4",
32
33
  "eslint-plugin-import-x": "4.16.1",
33
- "eslint-plugin-jest": "29.2.2",
34
+ "eslint-plugin-jest": "29.5.0",
34
35
  "eslint-plugin-jsx-a11y": "6.10.2",
35
36
  "eslint-plugin-n": "17.23.1",
36
37
  "eslint-plugin-package-json": "0.85.0",
37
38
  "eslint-plugin-promise": "7.2.1",
38
39
  "eslint-plugin-react": "7.37.5",
39
40
  "eslint-plugin-react-hooks": "7.0.1",
40
- "eslint-plugin-react-refresh": "0.4.24",
41
+ "eslint-plugin-react-refresh": "0.4.25",
41
42
  "eslint-plugin-relay": "2.0.0",
42
- "eslint-plugin-storybook": "10.1.8",
43
+ "eslint-plugin-storybook": "10.1.9",
43
44
  "eslint-plugin-tsdoc": "0.5.0",
44
45
  "eslint-plugin-unused-imports": "4.3.0",
45
46
  "eslint-plugin-userscripts": "0.5.6",
46
47
  "eslint-plugin-xss": "0.1.12",
47
- "eslint-plugin-yml": "1.19.0",
48
+ "eslint-plugin-yml": "1.19.1",
48
49
  "globals": "16.5.0",
49
50
  "graphql": "16.12.0",
50
51
  "jsonc-eslint-parser": "2.4.2",
@@ -55,7 +56,7 @@
55
56
  "devDependencies": {
56
57
  "@eslint/config-inspector": "1.4.2",
57
58
  "@types/eslint": "9.6.1",
58
- "@types/node": "25.0.1",
59
+ "@types/node": "25.0.2",
59
60
  "concurrently": "9.2.1",
60
61
  "eslint": "9.39.2",
61
62
  "jiti": "2.6.1",
@@ -65,7 +66,7 @@
65
66
  "eslint": "^9"
66
67
  },
67
68
  "engines": {
68
- "node": ">= 22"
69
+ "node": ">= 24"
69
70
  },
70
71
  "publishConfig": {
71
72
  "access": "public"
@@ -1,9 +1,9 @@
1
1
  import { defineConfig } from 'eslint/config';
2
- import packageJsonPlugin from 'eslint-plugin-package-json';
2
+ import { configs as packageJsonConfigs } from 'eslint-plugin-package-json';
3
3
  export const packageJson = defineConfig({
4
4
  name: 'eslint-plugin-package-json',
5
5
  files: ['**/package.json'],
6
- extends: [packageJsonPlugin.configs.recommended],
6
+ extends: [packageJsonConfigs.recommended],
7
7
  rules: {
8
8
  'package-json/require-description': 'off',
9
9
  'package-json/order-properties': [
@@ -1,10 +1,10 @@
1
1
  import { defineConfig } from 'eslint/config'
2
- import packageJsonPlugin from 'eslint-plugin-package-json'
2
+ import { configs as packageJsonConfigs } from 'eslint-plugin-package-json'
3
3
 
4
4
  export const packageJson = defineConfig({
5
5
  name: 'eslint-plugin-package-json',
6
6
  files: ['**/package.json'],
7
- extends: [packageJsonPlugin.configs.recommended],
7
+ extends: [packageJsonConfigs.recommended],
8
8
  rules: {
9
9
  'package-json/require-description': 'off',
10
10
  'package-json/order-properties': [
@@ -1,6 +1,5 @@
1
1
  import { defineConfig } from 'eslint/config';
2
- import storybookPlugin from 'eslint-plugin-storybook';
2
+ import { configs as storybookConfigs } from 'eslint-plugin-storybook';
3
3
  export const storybook = defineConfig(
4
- // eslint-plugin-storybook
5
4
  // @ts-expect-error -- 型定義が不一致
6
- storybookPlugin.configs['flat/recommended']);
5
+ storybookConfigs['flat/recommended']);
@@ -1,8 +1,7 @@
1
1
  import { defineConfig } from 'eslint/config'
2
- import storybookPlugin from 'eslint-plugin-storybook'
2
+ import { configs as storybookConfigs } from 'eslint-plugin-storybook'
3
3
 
4
4
  export const storybook = defineConfig(
5
- // eslint-plugin-storybook
6
5
  // @ts-expect-error -- 型定義が不一致
7
- storybookPlugin.configs['flat/recommended'],
6
+ storybookConfigs['flat/recommended'],
8
7
  )