@slashnephy/eslint-config 3.0.421 → 3.0.423
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.
|
|
3
|
+
"version": "3.0.423",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"eslint",
|
|
6
6
|
"eslintconfig"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"eslint-plugin-promise": "7.3.0",
|
|
39
39
|
"eslint-plugin-react-hooks": "7.1.1",
|
|
40
40
|
"eslint-plugin-react-refresh": "0.5.4",
|
|
41
|
-
"eslint-plugin-relay": "2.
|
|
41
|
+
"eslint-plugin-relay": "2.1.0",
|
|
42
42
|
"eslint-plugin-storybook": "10.5.10",
|
|
43
43
|
"eslint-plugin-tsdoc": "0.5.2",
|
|
44
44
|
"eslint-plugin-unused-imports": "4.4.1",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@eslint/config-inspector": "3.3.0",
|
|
57
57
|
"@types/node": "25.9.5",
|
|
58
|
-
"eslint": "10.
|
|
58
|
+
"eslint": "10.9.0"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"eslint": "^10"
|
package/src/frameworks/relay.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { defineConfig } from 'eslint/config';
|
|
2
|
-
// @ts-expect-error -- 型定義がない
|
|
3
2
|
import relayPlugin from 'eslint-plugin-relay';
|
|
4
3
|
export const relay = defineConfig({
|
|
5
4
|
name: 'eslint-plugin-relay',
|
|
6
5
|
files: ['**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx}'],
|
|
7
6
|
extends: [
|
|
8
|
-
|
|
7
|
+
// v2.1.0 で同梱された型定義は configs を Linter.LegacyConfig と宣言しているが、
|
|
8
|
+
// ts-recommended の実体は rules だけを持つオブジェクトで、eslintrc 形式の
|
|
9
|
+
// plugins: string[] や extends は含まない。flat config へ渡せるように rules だけを取り出す。
|
|
10
|
+
{ rules: relayPlugin.configs['ts-recommended'].rules ?? {} },
|
|
9
11
|
],
|
|
10
12
|
plugins: { relay: relayPlugin },
|
|
11
13
|
rules: {
|
package/src/frameworks/relay.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { defineConfig } from 'eslint/config'
|
|
2
|
-
// @ts-expect-error -- 型定義がない
|
|
3
2
|
import relayPlugin from 'eslint-plugin-relay'
|
|
4
3
|
|
|
5
4
|
export const relay = defineConfig({
|
|
6
5
|
name: 'eslint-plugin-relay',
|
|
7
6
|
files: ['**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx}'],
|
|
8
7
|
extends: [
|
|
9
|
-
|
|
8
|
+
// v2.1.0 で同梱された型定義は configs を Linter.LegacyConfig と宣言しているが、
|
|
9
|
+
// ts-recommended の実体は rules だけを持つオブジェクトで、eslintrc 形式の
|
|
10
|
+
// plugins: string[] や extends は含まない。flat config へ渡せるように rules だけを取り出す。
|
|
11
|
+
{ rules: relayPlugin.configs['ts-recommended'].rules ?? {} },
|
|
10
12
|
],
|
|
11
13
|
plugins: { relay: relayPlugin },
|
|
12
14
|
rules: {
|