@xylabs/eslint-config-react-flat 7.0.3 → 7.1.1
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 +7 -29
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/node/index.mjs +7 -29
- package/dist/node/index.mjs.map +1 -1
- package/package.json +12 -12
package/dist/neutral/index.mjs
CHANGED
|
@@ -8,51 +8,29 @@ import reactPlugin from "eslint-plugin-react";
|
|
|
8
8
|
import eslintReactRefreshPlugin from "eslint-plugin-react-refresh";
|
|
9
9
|
import globals from "globals";
|
|
10
10
|
var reactConfig = {
|
|
11
|
-
files: [
|
|
12
|
-
"**/*.{ts,tsx}"
|
|
13
|
-
],
|
|
11
|
+
files: ["**/*.{ts,tsx}"],
|
|
14
12
|
...eslintReactPlugin.configs.recommended,
|
|
15
13
|
plugins: {
|
|
16
14
|
"react": reactPlugin,
|
|
17
15
|
"react-refresh": eslintReactRefreshPlugin,
|
|
18
16
|
...eslintReactPlugin.configs.recommended.plugins
|
|
19
17
|
},
|
|
20
|
-
settings: {
|
|
21
|
-
react: {
|
|
22
|
-
version: "detect"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
18
|
+
settings: { react: { version: "detect" } },
|
|
25
19
|
languageOptions: {
|
|
26
20
|
parser: tsParser,
|
|
27
|
-
parserOptions: {
|
|
28
|
-
|
|
29
|
-
jsx: true
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
globals: {
|
|
33
|
-
...globals.browser
|
|
34
|
-
}
|
|
21
|
+
parserOptions: { ecmaFeatures: { jsx: true } },
|
|
22
|
+
globals: { ...globals.browser }
|
|
35
23
|
},
|
|
36
24
|
rules: {
|
|
37
25
|
...eslintReactPlugin.configs.recommended.rules,
|
|
38
26
|
...reactPlugin.configs.flat.recommended.rules,
|
|
39
|
-
"react-refresh/only-export-components": [
|
|
40
|
-
|
|
41
|
-
{
|
|
42
|
-
allowConstantExport: true
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
"react/prop-types": [
|
|
46
|
-
"off"
|
|
47
|
-
]
|
|
27
|
+
"react-refresh/only-export-components": ["warn", { allowConstantExport: true }],
|
|
28
|
+
"react/prop-types": ["off"]
|
|
48
29
|
}
|
|
49
30
|
};
|
|
50
31
|
|
|
51
32
|
// src/index.ts
|
|
52
|
-
var config = [
|
|
53
|
-
...xyConfig,
|
|
54
|
-
reactConfig
|
|
55
|
-
];
|
|
33
|
+
var config = [...xyConfig, reactConfig];
|
|
56
34
|
export {
|
|
57
35
|
config,
|
|
58
36
|
reactConfig
|
|
@@ -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 reactPlugin from 'eslint-plugin-react'\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': reactPlugin,\n 'react-refresh': eslintReactRefreshPlugin,\n ...eslintReactPlugin.configs.recommended.plugins,\n },\n settings: { react: { version: 'detect' } },\n languageOptions: {\n parser: tsParser,\n parserOptions: { ecmaFeatures: { jsx: true } },\n globals: { ...globals.browser },\n },\n rules: {\n ...eslintReactPlugin.configs.recommended.rules,\n ...reactPlugin.configs.flat.recommended.rules,\n 'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],\n 'react/prop-types': ['off'],\n },\n} as unknown as Linter.Config\n"],"mappings":";AAAA,
|
|
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 reactPlugin from 'eslint-plugin-react'\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': reactPlugin,\n 'react-refresh': eslintReactRefreshPlugin,\n ...eslintReactPlugin.configs.recommended.plugins,\n },\n settings: { react: { version: 'detect' } },\n languageOptions: {\n parser: tsParser,\n parserOptions: { ecmaFeatures: { jsx: true } },\n globals: { ...globals.browser },\n },\n rules: {\n ...eslintReactPlugin.configs.recommended.rules,\n ...reactPlugin.configs.flat.recommended.rules,\n 'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],\n 'react/prop-types': ['off'],\n },\n} as unknown as Linter.Config\n"],"mappings":";AAAA,SAAS,UAAU,gBAAgB;;;ACAnC,OAAO,uBAAuB;AAC9B,OAAO,cAAc;AAErB,OAAO,iBAAiB;AACxB,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,IACjB,GAAG,kBAAkB,QAAQ,YAAY;AAAA,EAC3C;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;AAAA,IACL,GAAG,kBAAkB,QAAQ,YAAY;AAAA,IACzC,GAAG,YAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,wCAAwC,CAAC,QAAQ,EAAE,qBAAqB,KAAK,CAAC;AAAA,IAC9E,oBAAoB,CAAC,KAAK;AAAA,EAC5B;AACF;;;ADtBO,IAAM,SAA0B,CAAC,GAAG,UAAU,WAAW;","names":[]}
|
package/dist/node/index.mjs
CHANGED
|
@@ -8,51 +8,29 @@ import reactPlugin from "eslint-plugin-react";
|
|
|
8
8
|
import eslintReactRefreshPlugin from "eslint-plugin-react-refresh";
|
|
9
9
|
import globals from "globals";
|
|
10
10
|
var reactConfig = {
|
|
11
|
-
files: [
|
|
12
|
-
"**/*.{ts,tsx}"
|
|
13
|
-
],
|
|
11
|
+
files: ["**/*.{ts,tsx}"],
|
|
14
12
|
...eslintReactPlugin.configs.recommended,
|
|
15
13
|
plugins: {
|
|
16
14
|
"react": reactPlugin,
|
|
17
15
|
"react-refresh": eslintReactRefreshPlugin,
|
|
18
16
|
...eslintReactPlugin.configs.recommended.plugins
|
|
19
17
|
},
|
|
20
|
-
settings: {
|
|
21
|
-
react: {
|
|
22
|
-
version: "detect"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
18
|
+
settings: { react: { version: "detect" } },
|
|
25
19
|
languageOptions: {
|
|
26
20
|
parser: tsParser,
|
|
27
|
-
parserOptions: {
|
|
28
|
-
|
|
29
|
-
jsx: true
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
globals: {
|
|
33
|
-
...globals.browser
|
|
34
|
-
}
|
|
21
|
+
parserOptions: { ecmaFeatures: { jsx: true } },
|
|
22
|
+
globals: { ...globals.browser }
|
|
35
23
|
},
|
|
36
24
|
rules: {
|
|
37
25
|
...eslintReactPlugin.configs.recommended.rules,
|
|
38
26
|
...reactPlugin.configs.flat.recommended.rules,
|
|
39
|
-
"react-refresh/only-export-components": [
|
|
40
|
-
|
|
41
|
-
{
|
|
42
|
-
allowConstantExport: true
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
"react/prop-types": [
|
|
46
|
-
"off"
|
|
47
|
-
]
|
|
27
|
+
"react-refresh/only-export-components": ["warn", { allowConstantExport: true }],
|
|
28
|
+
"react/prop-types": ["off"]
|
|
48
29
|
}
|
|
49
30
|
};
|
|
50
31
|
|
|
51
32
|
// src/index.ts
|
|
52
|
-
var config = [
|
|
53
|
-
...xyConfig,
|
|
54
|
-
reactConfig
|
|
55
|
-
];
|
|
33
|
+
var config = [...xyConfig, reactConfig];
|
|
56
34
|
export {
|
|
57
35
|
config,
|
|
58
36
|
reactConfig
|
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 reactPlugin from 'eslint-plugin-react'\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': reactPlugin,\n 'react-refresh': eslintReactRefreshPlugin,\n ...eslintReactPlugin.configs.recommended.plugins,\n },\n settings: { react: { version: 'detect' } },\n languageOptions: {\n parser: tsParser,\n parserOptions: { ecmaFeatures: { jsx: true } },\n globals: { ...globals.browser },\n },\n rules: {\n ...eslintReactPlugin.configs.recommended.rules,\n ...reactPlugin.configs.flat.recommended.rules,\n 'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],\n 'react/prop-types': ['off'],\n },\n} as unknown as Linter.Config\n"],"mappings":";AAAA,
|
|
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 reactPlugin from 'eslint-plugin-react'\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': reactPlugin,\n 'react-refresh': eslintReactRefreshPlugin,\n ...eslintReactPlugin.configs.recommended.plugins,\n },\n settings: { react: { version: 'detect' } },\n languageOptions: {\n parser: tsParser,\n parserOptions: { ecmaFeatures: { jsx: true } },\n globals: { ...globals.browser },\n },\n rules: {\n ...eslintReactPlugin.configs.recommended.rules,\n ...reactPlugin.configs.flat.recommended.rules,\n 'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],\n 'react/prop-types': ['off'],\n },\n} as unknown as Linter.Config\n"],"mappings":";AAAA,SAAS,UAAU,gBAAgB;;;ACAnC,OAAO,uBAAuB;AAC9B,OAAO,cAAc;AAErB,OAAO,iBAAiB;AACxB,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,IACjB,GAAG,kBAAkB,QAAQ,YAAY;AAAA,EAC3C;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;AAAA,IACL,GAAG,kBAAkB,QAAQ,YAAY;AAAA,IACzC,GAAG,YAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,wCAAwC,CAAC,QAAQ,EAAE,qBAAqB,KAAK,CAAC;AAAA,IAC9E,oBAAoB,CAAC,KAAK;AAAA,EAC5B;AACF;;;ADtBO,IAAM,SAA0B,CAAC,GAAG,UAAU,WAAW;","names":[]}
|
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.
|
|
4
|
+
"version": "7.1.1",
|
|
5
5
|
"description": "ESLint Config used throughout XY Labs TypeScript/JavaScript libraries and react projects",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"xylabs",
|
|
@@ -38,21 +38,21 @@
|
|
|
38
38
|
"LICENSE"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@eslint-react/eslint-plugin": "
|
|
42
|
-
"@typescript-eslint/parser": "
|
|
43
|
-
"@xylabs/eslint-config-flat": "^7.
|
|
44
|
-
"eslint-plugin-react": "
|
|
45
|
-
"eslint-plugin-react-refresh": "
|
|
46
|
-
"globals": "
|
|
41
|
+
"@eslint-react/eslint-plugin": "~1.52.4",
|
|
42
|
+
"@typescript-eslint/parser": "~8.39.1",
|
|
43
|
+
"@xylabs/eslint-config-flat": "^7.1.1",
|
|
44
|
+
"eslint-plugin-react": "~7.37.5",
|
|
45
|
+
"eslint-plugin-react-refresh": "~0.4.20",
|
|
46
|
+
"globals": "~16.3.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@xylabs/ts-scripts-yarn3": "^7.
|
|
50
|
-
"@xylabs/tsconfig": "^7.
|
|
51
|
-
"eslint": "
|
|
52
|
-
"typescript": "
|
|
49
|
+
"@xylabs/ts-scripts-yarn3": "^7.1.1",
|
|
50
|
+
"@xylabs/tsconfig": "^7.1.1",
|
|
51
|
+
"eslint": "~9.33.0",
|
|
52
|
+
"typescript": "~5.9.2"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"eslint": "
|
|
55
|
+
"eslint": "~9"
|
|
56
56
|
},
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|