@xylabs/eslint-config-react-flat 7.2.3 → 7.2.5
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
|
@@ -4,14 +4,13 @@ import { config as xyConfig } from "@xylabs/eslint-config-flat";
|
|
|
4
4
|
// src/react/index.ts
|
|
5
5
|
import eslintReactPlugin from "@eslint-react/eslint-plugin";
|
|
6
6
|
import tsParser from "@typescript-eslint/parser";
|
|
7
|
-
import reactPlugin from "eslint-plugin-react";
|
|
8
7
|
import eslintReactRefreshPlugin from "eslint-plugin-react-refresh";
|
|
9
8
|
import globals from "globals";
|
|
10
9
|
var reactConfig = {
|
|
11
10
|
files: ["**/*.{ts,tsx}"],
|
|
12
11
|
...eslintReactPlugin.configs.recommended,
|
|
13
12
|
plugins: {
|
|
14
|
-
"react":
|
|
13
|
+
"react": eslintReactPlugin,
|
|
15
14
|
"react-refresh": eslintReactRefreshPlugin
|
|
16
15
|
},
|
|
17
16
|
settings: { react: { version: "detect" } },
|
|
@@ -20,12 +19,7 @@ var reactConfig = {
|
|
|
20
19
|
parserOptions: { ecmaFeatures: { jsx: true } },
|
|
21
20
|
globals: { ...globals.browser }
|
|
22
21
|
},
|
|
23
|
-
rules: {
|
|
24
|
-
...eslintReactPlugin.configs.recommended.rules,
|
|
25
|
-
...reactPlugin.configs.flat.recommended.rules,
|
|
26
|
-
"react-refresh/only-export-components": ["warn", { allowConstantExport: true }],
|
|
27
|
-
"react/prop-types": ["off"]
|
|
28
|
-
}
|
|
22
|
+
rules: { "react-refresh/only-export-components": ["warn", { allowConstantExport: true }] }
|
|
29
23
|
};
|
|
30
24
|
|
|
31
25
|
// 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 eslintReactPlugin from '@eslint-react/eslint-plugin'\nimport tsParser from '@typescript-eslint/parser'\nimport type { Linter } from 'eslint'\nimport
|
|
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 eslintReactPlugin from '@eslint-react/eslint-plugin'\nimport tsParser from '@typescript-eslint/parser'\nimport type { Linter } from 'eslint'\nimport eslintReactRefreshPlugin from 'eslint-plugin-react-refresh'\nimport globals from 'globals'\n\nexport const reactConfig = {\n files: ['**/*.{ts,tsx}'],\n ...eslintReactPlugin.configs.recommended,\n plugins: {\n 'react': eslintReactPlugin,\n 'react-refresh': eslintReactRefreshPlugin,\n },\n settings: { react: { version: 'detect' } },\n languageOptions: {\n parser: tsParser,\n parserOptions: { ecmaFeatures: { jsx: true } },\n globals: { ...globals.browser },\n },\n rules: { 'react-refresh/only-export-components': ['warn', { allowConstantExport: true }] },\n} as unknown as Linter.Config\n"],"mappings":";AAAA,SAAS,UAAU,gBAAgB;;;ACAnC,OAAO,uBAAuB;AAC9B,OAAO,cAAc;AAErB,OAAO,8BAA8B;AACrC,OAAO,aAAa;AAEb,IAAM,cAAc;AAAA,EACzB,OAAO,CAAC,eAAe;AAAA,EACvB,GAAG,kBAAkB,QAAQ;AAAA,EAC7B,SAAS;AAAA,IACP,SAAS;AAAA,IACT,iBAAiB;AAAA,EACnB;AAAA,EACA,UAAU,EAAE,OAAO,EAAE,SAAS,SAAS,EAAE;AAAA,EACzC,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,EAAE,wCAAwC,CAAC,QAAQ,EAAE,qBAAqB,KAAK,CAAC,EAAE;AAC3F;;;ADfO,IAAM,SAA0B,CAAC,GAAG,UAAU,WAAW;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAIpC,eAAO,MAAM,WAAW,EAcR,MAAM,CAAC,MAAM,CAAA"}
|
package/dist/node/index.mjs
CHANGED
|
@@ -4,14 +4,13 @@ import { config as xyConfig } from "@xylabs/eslint-config-flat";
|
|
|
4
4
|
// src/react/index.ts
|
|
5
5
|
import eslintReactPlugin from "@eslint-react/eslint-plugin";
|
|
6
6
|
import tsParser from "@typescript-eslint/parser";
|
|
7
|
-
import reactPlugin from "eslint-plugin-react";
|
|
8
7
|
import eslintReactRefreshPlugin from "eslint-plugin-react-refresh";
|
|
9
8
|
import globals from "globals";
|
|
10
9
|
var reactConfig = {
|
|
11
10
|
files: ["**/*.{ts,tsx}"],
|
|
12
11
|
...eslintReactPlugin.configs.recommended,
|
|
13
12
|
plugins: {
|
|
14
|
-
"react":
|
|
13
|
+
"react": eslintReactPlugin,
|
|
15
14
|
"react-refresh": eslintReactRefreshPlugin
|
|
16
15
|
},
|
|
17
16
|
settings: { react: { version: "detect" } },
|
|
@@ -20,12 +19,7 @@ var reactConfig = {
|
|
|
20
19
|
parserOptions: { ecmaFeatures: { jsx: true } },
|
|
21
20
|
globals: { ...globals.browser }
|
|
22
21
|
},
|
|
23
|
-
rules: {
|
|
24
|
-
...eslintReactPlugin.configs.recommended.rules,
|
|
25
|
-
...reactPlugin.configs.flat.recommended.rules,
|
|
26
|
-
"react-refresh/only-export-components": ["warn", { allowConstantExport: true }],
|
|
27
|
-
"react/prop-types": ["off"]
|
|
28
|
-
}
|
|
22
|
+
rules: { "react-refresh/only-export-components": ["warn", { allowConstantExport: true }] }
|
|
29
23
|
};
|
|
30
24
|
|
|
31
25
|
// 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 eslintReactPlugin from '@eslint-react/eslint-plugin'\nimport tsParser from '@typescript-eslint/parser'\nimport type { Linter } from 'eslint'\nimport
|
|
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 eslintReactPlugin from '@eslint-react/eslint-plugin'\nimport tsParser from '@typescript-eslint/parser'\nimport type { Linter } from 'eslint'\nimport eslintReactRefreshPlugin from 'eslint-plugin-react-refresh'\nimport globals from 'globals'\n\nexport const reactConfig = {\n files: ['**/*.{ts,tsx}'],\n ...eslintReactPlugin.configs.recommended,\n plugins: {\n 'react': eslintReactPlugin,\n 'react-refresh': eslintReactRefreshPlugin,\n },\n settings: { react: { version: 'detect' } },\n languageOptions: {\n parser: tsParser,\n parserOptions: { ecmaFeatures: { jsx: true } },\n globals: { ...globals.browser },\n },\n rules: { 'react-refresh/only-export-components': ['warn', { allowConstantExport: true }] },\n} as unknown as Linter.Config\n"],"mappings":";AAAA,SAAS,UAAU,gBAAgB;;;ACAnC,OAAO,uBAAuB;AAC9B,OAAO,cAAc;AAErB,OAAO,8BAA8B;AACrC,OAAO,aAAa;AAEb,IAAM,cAAc;AAAA,EACzB,OAAO,CAAC,eAAe;AAAA,EACvB,GAAG,kBAAkB,QAAQ;AAAA,EAC7B,SAAS;AAAA,IACP,SAAS;AAAA,IACT,iBAAiB;AAAA,EACnB;AAAA,EACA,UAAU,EAAE,OAAO,EAAE,SAAS,SAAS,EAAE;AAAA,EACzC,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,EAAE,wCAAwC,CAAC,QAAQ,EAAE,qBAAqB,KAAK,CAAC,EAAE;AAC3F;;;ADfO,IAAM,SAA0B,CAAC,GAAG,UAAU,WAAW;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAIpC,eAAO,MAAM,WAAW,EAcR,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.5",
|
|
5
5
|
"description": "ESLint Config used throughout XY Labs TypeScript/JavaScript libraries and react projects",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"xylabs",
|
|
@@ -40,14 +40,13 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@eslint-react/eslint-plugin": "~2.3.1",
|
|
42
42
|
"@typescript-eslint/parser": "~8.46.3",
|
|
43
|
-
"@xylabs/eslint-config-flat": "^7.2.
|
|
44
|
-
"eslint-plugin-react": "~7.37.5",
|
|
43
|
+
"@xylabs/eslint-config-flat": "^7.2.5",
|
|
45
44
|
"eslint-plugin-react-refresh": "~0.4.24",
|
|
46
45
|
"globals": "~16.5.0"
|
|
47
46
|
},
|
|
48
47
|
"devDependencies": {
|
|
49
|
-
"@xylabs/ts-scripts-yarn3": "^7.2.
|
|
50
|
-
"@xylabs/tsconfig": "^7.2.
|
|
48
|
+
"@xylabs/ts-scripts-yarn3": "^7.2.5",
|
|
49
|
+
"@xylabs/tsconfig": "^7.2.5",
|
|
51
50
|
"eslint": "~9.39.1",
|
|
52
51
|
"typescript": "~5.9.3"
|
|
53
52
|
},
|