@xylabs/eslint-config-react-flat 7.2.5 → 7.2.6
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/dist/neutral/index.mjs
CHANGED
|
@@ -2,24 +2,39 @@
|
|
|
2
2
|
import { config as xyConfig } from "@xylabs/eslint-config-flat";
|
|
3
3
|
|
|
4
4
|
// src/react/index.ts
|
|
5
|
-
import eslintReactPlugin from "@eslint-react/eslint-plugin";
|
|
6
5
|
import tsParser from "@typescript-eslint/parser";
|
|
6
|
+
import reactDomPlugin from "eslint-plugin-react-dom";
|
|
7
|
+
import reactHooksExtraPlugin from "eslint-plugin-react-hooks-extra";
|
|
8
|
+
import reactNamingConventionPlugin from "eslint-plugin-react-naming-convention";
|
|
7
9
|
import eslintReactRefreshPlugin from "eslint-plugin-react-refresh";
|
|
10
|
+
import reactWebApiPlugin from "eslint-plugin-react-web-api";
|
|
11
|
+
import reactPlugin from "eslint-plugin-react-x";
|
|
8
12
|
import globals from "globals";
|
|
9
13
|
var reactConfig = {
|
|
10
14
|
files: ["**/*.{ts,tsx}"],
|
|
11
|
-
...
|
|
15
|
+
...reactDomPlugin.configs.recommended,
|
|
12
16
|
plugins: {
|
|
13
|
-
"react":
|
|
14
|
-
"react-
|
|
17
|
+
"react-x": reactPlugin,
|
|
18
|
+
"react-dom": reactDomPlugin,
|
|
19
|
+
"react-web-api": reactWebApiPlugin,
|
|
20
|
+
"react-refresh": eslintReactRefreshPlugin,
|
|
21
|
+
"react-hooks-extra": reactHooksExtraPlugin,
|
|
22
|
+
"react-naming-convention": reactNamingConventionPlugin
|
|
15
23
|
},
|
|
16
|
-
settings: { react: { version:
|
|
24
|
+
// settings: { react: { version: 'detect' } },
|
|
17
25
|
languageOptions: {
|
|
18
26
|
parser: tsParser,
|
|
19
27
|
parserOptions: { ecmaFeatures: { jsx: true } },
|
|
20
28
|
globals: { ...globals.browser }
|
|
21
29
|
},
|
|
22
|
-
rules: {
|
|
30
|
+
rules: {
|
|
31
|
+
...reactDomPlugin.configs.recommended.rules,
|
|
32
|
+
...reactPlugin.configs.recommended.rules,
|
|
33
|
+
...reactWebApiPlugin.configs.recommended.rules,
|
|
34
|
+
...reactHooksExtraPlugin.configs.recommended.rules,
|
|
35
|
+
...reactNamingConventionPlugin.configs.recommended.rules,
|
|
36
|
+
"react-refresh/only-export-components": ["warn", { allowConstantExport: true }]
|
|
37
|
+
}
|
|
23
38
|
};
|
|
24
39
|
|
|
25
40
|
// src/index.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/react/index.ts"],"sourcesContent":["import { config as xyConfig } from '@xylabs/eslint-config-flat'\nimport type { Linter } from 'eslint'\n\nimport { reactConfig } from './react/index.ts'\n\nexport const config: Linter.Config[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.ts'\n","import
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/react/index.ts"],"sourcesContent":["import { config as xyConfig } from '@xylabs/eslint-config-flat'\nimport type { Linter } from 'eslint'\n\nimport { reactConfig } from './react/index.ts'\n\nexport const config: Linter.Config[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.ts'\n","import tsParser from '@typescript-eslint/parser'\nimport type { Linter } from 'eslint'\nimport reactDomPlugin from 'eslint-plugin-react-dom'\nimport reactHooksExtraPlugin from 'eslint-plugin-react-hooks-extra'\nimport reactNamingConventionPlugin from 'eslint-plugin-react-naming-convention'\nimport eslintReactRefreshPlugin from 'eslint-plugin-react-refresh'\nimport reactWebApiPlugin from 'eslint-plugin-react-web-api'\nimport reactPlugin from 'eslint-plugin-react-x'\nimport globals from 'globals'\n\nexport const reactConfig = {\n files: ['**/*.{ts,tsx}'],\n ...reactDomPlugin.configs.recommended,\n plugins: {\n 'react-x': reactPlugin,\n 'react-dom': reactDomPlugin,\n 'react-web-api': reactWebApiPlugin,\n 'react-refresh': eslintReactRefreshPlugin,\n 'react-hooks-extra': reactHooksExtraPlugin,\n 'react-naming-convention': reactNamingConventionPlugin,\n },\n // settings: { react: { version: 'detect' } },\n languageOptions: {\n parser: tsParser,\n parserOptions: { ecmaFeatures: { jsx: true } },\n globals: { ...globals.browser },\n },\n rules: {\n ...reactDomPlugin.configs.recommended.rules,\n ...reactPlugin.configs.recommended.rules,\n ...reactWebApiPlugin.configs.recommended.rules,\n ...reactHooksExtraPlugin.configs.recommended.rules,\n ...reactNamingConventionPlugin.configs.recommended.rules,\n 'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],\n },\n} as unknown as Linter.Config\n"],"mappings":";AAAA,SAAS,UAAU,gBAAgB;;;ACAnC,OAAO,cAAc;AAErB,OAAO,oBAAoB;AAC3B,OAAO,2BAA2B;AAClC,OAAO,iCAAiC;AACxC,OAAO,8BAA8B;AACrC,OAAO,uBAAuB;AAC9B,OAAO,iBAAiB;AACxB,OAAO,aAAa;AAEb,IAAM,cAAc;AAAA,EACzB,OAAO,CAAC,eAAe;AAAA,EACvB,GAAG,eAAe,QAAQ;AAAA,EAC1B,SAAS;AAAA,IACP,WAAW;AAAA,IACX,aAAa;AAAA,IACb,iBAAiB;AAAA,IACjB,iBAAiB;AAAA,IACjB,qBAAqB;AAAA,IACrB,2BAA2B;AAAA,EAC7B;AAAA;AAAA,EAEA,iBAAiB;AAAA,IACf,QAAQ;AAAA,IACR,eAAe,EAAE,cAAc,EAAE,KAAK,KAAK,EAAE;AAAA,IAC7C,SAAS,EAAE,GAAG,QAAQ,QAAQ;AAAA,EAChC;AAAA,EACA,OAAO;AAAA,IACL,GAAG,eAAe,QAAQ,YAAY;AAAA,IACtC,GAAG,YAAY,QAAQ,YAAY;AAAA,IACnC,GAAG,kBAAkB,QAAQ,YAAY;AAAA,IACzC,GAAG,sBAAsB,QAAQ,YAAY;AAAA,IAC7C,GAAG,4BAA4B,QAAQ,YAAY;AAAA,IACnD,wCAAwC,CAAC,QAAQ,EAAE,qBAAqB,KAAK,CAAC;AAAA,EAChF;AACF;;;AD9BO,IAAM,SAA0B,CAAC,GAAG,UAAU,WAAW;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AASpC,eAAO,MAAM,WAAW,EAyBR,MAAM,CAAC,MAAM,CAAA"}
|
package/dist/node/index.mjs
CHANGED
|
@@ -2,24 +2,39 @@
|
|
|
2
2
|
import { config as xyConfig } from "@xylabs/eslint-config-flat";
|
|
3
3
|
|
|
4
4
|
// src/react/index.ts
|
|
5
|
-
import eslintReactPlugin from "@eslint-react/eslint-plugin";
|
|
6
5
|
import tsParser from "@typescript-eslint/parser";
|
|
6
|
+
import reactDomPlugin from "eslint-plugin-react-dom";
|
|
7
|
+
import reactHooksExtraPlugin from "eslint-plugin-react-hooks-extra";
|
|
8
|
+
import reactNamingConventionPlugin from "eslint-plugin-react-naming-convention";
|
|
7
9
|
import eslintReactRefreshPlugin from "eslint-plugin-react-refresh";
|
|
10
|
+
import reactWebApiPlugin from "eslint-plugin-react-web-api";
|
|
11
|
+
import reactPlugin from "eslint-plugin-react-x";
|
|
8
12
|
import globals from "globals";
|
|
9
13
|
var reactConfig = {
|
|
10
14
|
files: ["**/*.{ts,tsx}"],
|
|
11
|
-
...
|
|
15
|
+
...reactDomPlugin.configs.recommended,
|
|
12
16
|
plugins: {
|
|
13
|
-
"react":
|
|
14
|
-
"react-
|
|
17
|
+
"react-x": reactPlugin,
|
|
18
|
+
"react-dom": reactDomPlugin,
|
|
19
|
+
"react-web-api": reactWebApiPlugin,
|
|
20
|
+
"react-refresh": eslintReactRefreshPlugin,
|
|
21
|
+
"react-hooks-extra": reactHooksExtraPlugin,
|
|
22
|
+
"react-naming-convention": reactNamingConventionPlugin
|
|
15
23
|
},
|
|
16
|
-
settings: { react: { version:
|
|
24
|
+
// settings: { react: { version: 'detect' } },
|
|
17
25
|
languageOptions: {
|
|
18
26
|
parser: tsParser,
|
|
19
27
|
parserOptions: { ecmaFeatures: { jsx: true } },
|
|
20
28
|
globals: { ...globals.browser }
|
|
21
29
|
},
|
|
22
|
-
rules: {
|
|
30
|
+
rules: {
|
|
31
|
+
...reactDomPlugin.configs.recommended.rules,
|
|
32
|
+
...reactPlugin.configs.recommended.rules,
|
|
33
|
+
...reactWebApiPlugin.configs.recommended.rules,
|
|
34
|
+
...reactHooksExtraPlugin.configs.recommended.rules,
|
|
35
|
+
...reactNamingConventionPlugin.configs.recommended.rules,
|
|
36
|
+
"react-refresh/only-export-components": ["warn", { allowConstantExport: true }]
|
|
37
|
+
}
|
|
23
38
|
};
|
|
24
39
|
|
|
25
40
|
// src/index.ts
|
package/dist/node/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/react/index.ts"],"sourcesContent":["import { config as xyConfig } from '@xylabs/eslint-config-flat'\nimport type { Linter } from 'eslint'\n\nimport { reactConfig } from './react/index.ts'\n\nexport const config: Linter.Config[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.ts'\n","import
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/react/index.ts"],"sourcesContent":["import { config as xyConfig } from '@xylabs/eslint-config-flat'\nimport type { Linter } from 'eslint'\n\nimport { reactConfig } from './react/index.ts'\n\nexport const config: Linter.Config[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.ts'\n","import tsParser from '@typescript-eslint/parser'\nimport type { Linter } from 'eslint'\nimport reactDomPlugin from 'eslint-plugin-react-dom'\nimport reactHooksExtraPlugin from 'eslint-plugin-react-hooks-extra'\nimport reactNamingConventionPlugin from 'eslint-plugin-react-naming-convention'\nimport eslintReactRefreshPlugin from 'eslint-plugin-react-refresh'\nimport reactWebApiPlugin from 'eslint-plugin-react-web-api'\nimport reactPlugin from 'eslint-plugin-react-x'\nimport globals from 'globals'\n\nexport const reactConfig = {\n files: ['**/*.{ts,tsx}'],\n ...reactDomPlugin.configs.recommended,\n plugins: {\n 'react-x': reactPlugin,\n 'react-dom': reactDomPlugin,\n 'react-web-api': reactWebApiPlugin,\n 'react-refresh': eslintReactRefreshPlugin,\n 'react-hooks-extra': reactHooksExtraPlugin,\n 'react-naming-convention': reactNamingConventionPlugin,\n },\n // settings: { react: { version: 'detect' } },\n languageOptions: {\n parser: tsParser,\n parserOptions: { ecmaFeatures: { jsx: true } },\n globals: { ...globals.browser },\n },\n rules: {\n ...reactDomPlugin.configs.recommended.rules,\n ...reactPlugin.configs.recommended.rules,\n ...reactWebApiPlugin.configs.recommended.rules,\n ...reactHooksExtraPlugin.configs.recommended.rules,\n ...reactNamingConventionPlugin.configs.recommended.rules,\n 'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],\n },\n} as unknown as Linter.Config\n"],"mappings":";AAAA,SAAS,UAAU,gBAAgB;;;ACAnC,OAAO,cAAc;AAErB,OAAO,oBAAoB;AAC3B,OAAO,2BAA2B;AAClC,OAAO,iCAAiC;AACxC,OAAO,8BAA8B;AACrC,OAAO,uBAAuB;AAC9B,OAAO,iBAAiB;AACxB,OAAO,aAAa;AAEb,IAAM,cAAc;AAAA,EACzB,OAAO,CAAC,eAAe;AAAA,EACvB,GAAG,eAAe,QAAQ;AAAA,EAC1B,SAAS;AAAA,IACP,WAAW;AAAA,IACX,aAAa;AAAA,IACb,iBAAiB;AAAA,IACjB,iBAAiB;AAAA,IACjB,qBAAqB;AAAA,IACrB,2BAA2B;AAAA,EAC7B;AAAA;AAAA,EAEA,iBAAiB;AAAA,IACf,QAAQ;AAAA,IACR,eAAe,EAAE,cAAc,EAAE,KAAK,KAAK,EAAE;AAAA,IAC7C,SAAS,EAAE,GAAG,QAAQ,QAAQ;AAAA,EAChC;AAAA,EACA,OAAO;AAAA,IACL,GAAG,eAAe,QAAQ,YAAY;AAAA,IACtC,GAAG,YAAY,QAAQ,YAAY;AAAA,IACnC,GAAG,kBAAkB,QAAQ,YAAY;AAAA,IACzC,GAAG,sBAAsB,QAAQ,YAAY;AAAA,IAC7C,GAAG,4BAA4B,QAAQ,YAAY;AAAA,IACnD,wCAAwC,CAAC,QAAQ,EAAE,qBAAqB,KAAK,CAAC;AAAA,EAChF;AACF;;;AD9BO,IAAM,SAA0B,CAAC,GAAG,UAAU,WAAW;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AASpC,eAAO,MAAM,WAAW,EAyBR,MAAM,CAAC,MAAM,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@xylabs/eslint-config-react-flat",
|
|
4
|
-
"version": "7.2.
|
|
4
|
+
"version": "7.2.6",
|
|
5
5
|
"description": "ESLint Config used throughout XY Labs TypeScript/JavaScript libraries and react projects",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"xylabs",
|
|
@@ -38,15 +38,19 @@
|
|
|
38
38
|
"LICENSE"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@eslint-react/eslint-plugin": "~2.3.1",
|
|
42
41
|
"@typescript-eslint/parser": "~8.46.3",
|
|
43
|
-
"@xylabs/eslint-config-flat": "^7.2.
|
|
44
|
-
"eslint-plugin-react-
|
|
42
|
+
"@xylabs/eslint-config-flat": "^7.2.6",
|
|
43
|
+
"eslint-plugin-react-dom": "^2.3.1",
|
|
44
|
+
"eslint-plugin-react-hooks-extra": "^2.3.1",
|
|
45
|
+
"eslint-plugin-react-naming-convention": "^2.3.1",
|
|
46
|
+
"eslint-plugin-react-refresh": "^0.4.24",
|
|
47
|
+
"eslint-plugin-react-web-api": "^2.3.1",
|
|
48
|
+
"eslint-plugin-react-x": "^2.3.1",
|
|
45
49
|
"globals": "~16.5.0"
|
|
46
50
|
},
|
|
47
51
|
"devDependencies": {
|
|
48
|
-
"@xylabs/ts-scripts-yarn3": "^7.2.
|
|
49
|
-
"@xylabs/tsconfig": "^7.2.
|
|
52
|
+
"@xylabs/ts-scripts-yarn3": "^7.2.6",
|
|
53
|
+
"@xylabs/tsconfig": "^7.2.6",
|
|
50
54
|
"eslint": "~9.39.1",
|
|
51
55
|
"typescript": "~5.9.3"
|
|
52
56
|
},
|