@slashnephy/eslint-config 3.0.358 → 3.0.360

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slashnephy/eslint-config",
3
- "version": "3.0.358",
3
+ "version": "3.0.360",
4
4
  "keywords": [
5
5
  "eslint",
6
6
  "eslintconfig"
@@ -18,7 +18,7 @@
18
18
  "./src/**/*.ts"
19
19
  ],
20
20
  "dependencies": {
21
- "@eslint-community/eslint-plugin-eslint-comments": "4.7.1",
21
+ "@eslint-community/eslint-plugin-eslint-comments": "4.7.2",
22
22
  "@eslint-react/eslint-plugin": "2.13.0",
23
23
  "@eslint/js": "9.39.4",
24
24
  "@graphql-eslint/eslint-plugin": "4.4.0",
@@ -32,7 +32,7 @@
32
32
  "eslint-import-resolver-typescript": "4.4.4",
33
33
  "eslint-plugin-import-x": "4.16.2",
34
34
  "eslint-plugin-jest": "29.15.2",
35
- "eslint-plugin-jsx-a11y": "6.10.2",
35
+ "eslint-plugin-jsx-a11y-x": "0.2.0",
36
36
  "eslint-plugin-n": "18.0.1",
37
37
  "eslint-plugin-package-json": "0.91.2",
38
38
  "eslint-plugin-promise": "7.3.0",
@@ -1,7 +1,6 @@
1
1
  import eslintReact from '@eslint-react/eslint-plugin';
2
2
  import { defineConfig } from 'eslint/config';
3
- // @ts-expect-error 型定義ファイルがない
4
- import jsxA11y from 'eslint-plugin-jsx-a11y';
3
+ import jsxA11yX from 'eslint-plugin-jsx-a11y-x';
5
4
  import reactPlugin from 'eslint-plugin-react';
6
5
  import reactHooksPlugin from 'eslint-plugin-react-hooks';
7
6
  import globals from 'globals';
@@ -121,12 +120,19 @@ export const react = defineConfig(
121
120
  },
122
121
  ],
123
122
  },
124
- }, {
125
- name: 'eslint-plugin-jsx-a11y',
123
+ },
124
+ // eslint-plugin-jsx-a11y-x(本家 eslint-plugin-jsx-a11y のフォーク)
125
+ // 本家は 2024-10 の 6.10.2 を最後にリリースが止まっており、ESLint v10 で削除された
126
+ // context.getFilename() を内部で使っているため v10 ではロード時にクラッシュする。
127
+ // https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/1075
128
+ // フォーク側は当該 API を排除済みで recommended のルール構成は本家と一致する。
129
+ // 本家が v10 対応をリリースしたら戻せるよう、ルール名の変更以外は同じ設定を保つ。
130
+ {
131
+ name: 'eslint-plugin-jsx-a11y-x',
126
132
  files: ['**/*.{jsx,tsx}'],
127
- extends: [jsxA11y.flatConfigs.recommended],
133
+ extends: [jsxA11yX.configs.recommended],
128
134
  rules: {
129
- 'jsx-a11y/alt-text': [
135
+ 'jsx-a11y-x/alt-text': [
130
136
  'warn',
131
137
  {
132
138
  elements: ['img', 'object', 'area'],
@@ -1,7 +1,6 @@
1
1
  import eslintReact from '@eslint-react/eslint-plugin'
2
2
  import { defineConfig } from 'eslint/config'
3
- // @ts-expect-error 型定義ファイルがない
4
- import jsxA11y from 'eslint-plugin-jsx-a11y'
3
+ import jsxA11yX from 'eslint-plugin-jsx-a11y-x'
5
4
  import reactPlugin from 'eslint-plugin-react'
6
5
  import reactHooksPlugin from 'eslint-plugin-react-hooks'
7
6
  import globals from 'globals'
@@ -124,12 +123,18 @@ export const react = defineConfig(
124
123
  ],
125
124
  },
126
125
  },
126
+ // eslint-plugin-jsx-a11y-x(本家 eslint-plugin-jsx-a11y のフォーク)
127
+ // 本家は 2024-10 の 6.10.2 を最後にリリースが止まっており、ESLint v10 で削除された
128
+ // context.getFilename() を内部で使っているため v10 ではロード時にクラッシュする。
129
+ // https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/1075
130
+ // フォーク側は当該 API を排除済みで recommended のルール構成は本家と一致する。
131
+ // 本家が v10 対応をリリースしたら戻せるよう、ルール名の変更以外は同じ設定を保つ。
127
132
  {
128
- name: 'eslint-plugin-jsx-a11y',
133
+ name: 'eslint-plugin-jsx-a11y-x',
129
134
  files: ['**/*.{jsx,tsx}'],
130
- extends: [jsxA11y.flatConfigs.recommended],
135
+ extends: [jsxA11yX.configs.recommended],
131
136
  rules: {
132
- 'jsx-a11y/alt-text': [
137
+ 'jsx-a11y-x/alt-text': [
133
138
  'warn',
134
139
  {
135
140
  elements: ['img', 'object', 'area'],