@xylabs/eslint-config-react-flat 3.14.2 → 3.15.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.cjs.map +1 -1
- package/dist/neutral/index.d.cts +1 -1
- package/dist/neutral/index.d.mts +1 -1
- package/dist/neutral/index.d.ts +1 -1
- package/dist/neutral/{index.js → index.mjs} +1 -1
- package/dist/neutral/{index.js.map → index.mjs.map} +1 -1
- package/dist/neutral/react/index.d.cts +3 -0
- package/dist/neutral/react/index.d.cts.map +1 -0
- package/dist/neutral/react/index.d.mts +3 -0
- package/dist/neutral/react/index.d.mts.map +1 -0
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +1 -1
- package/dist/node/index.d.mts +1 -1
- package/dist/node/index.d.ts +1 -1
- package/dist/node/index.js.map +1 -1
- package/dist/node/react/index.d.cts +3 -0
- package/dist/node/react/index.d.cts.map +1 -0
- package/dist/node/react/index.d.mts +3 -0
- package/dist/node/react/index.d.mts.map +1 -0
- package/package.json +8 -8
- package/src/index.ts +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/react/index.ts"],"sourcesContent":["import { config as xyConfig } from '@xylabs/eslint-config-flat'\nimport { Linter } from 'eslint'\n\nimport { reactConfig } from './react/index.
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/react/index.ts"],"sourcesContent":["import { config as xyConfig } from '@xylabs/eslint-config-flat'\nimport { Linter } from 'eslint'\n\nimport { reactConfig } from './react/index.ts'\n\nexport const config: Linter.FlatConfig[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.ts'\n","import { Linter } from 'eslint'\nimport reactPlugin from 'eslint-plugin-react'\n//import reactHooksPlugin from 'eslint-plugin-react-hooks'\nimport globals from 'globals'\n\nexport const reactConfig: Linter.FlatConfig = {\n plugins: {\n react: reactPlugin,\n //'react-hooks': reactHooksPlugin,\n },\n files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],\n languageOptions: {\n ...reactPlugin.configs.flat.recommended.languageOptions,\n globals: {\n ...globals.serviceworker,\n ...globals.browser,\n },\n },\n rules: {\n ...reactPlugin.configs.flat.recommended.rules,\n /*'react-hooks/rules-of-hooks': 'error',\n 'react-hooks/exhaustive-deps': [\n 'warn',\n {\n additionalHooks: '(useAsyncEffect|usePromise)',\n },\n ],*/\n 'react/prop-types': ['off'],\n 'react/react-in-jsx-scope': ['warn'],\n },\n settings: {\n ...reactPlugin.configs.flat.recommended.settings,\n react: {\n version: 'detect',\n },\n },\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;gCAAmC;;;ACCnC,iCAAwB;AAExB,qBAAoB;AAEb,IAAMA,cAAiC;EAC5CC,SAAS;IACPC,OAAOC,2BAAAA;EAET;EACAC,OAAO;IAAC;;EACRC,iBAAiB;IACf,GAAGF,2BAAAA,QAAYG,QAAQC,KAAKC,YAAYH;IACxCI,SAAS;MACP,GAAGA,eAAAA,QAAQC;MACX,GAAGD,eAAAA,QAAQE;IACb;EACF;EACAC,OAAO;IACL,GAAGT,2BAAAA,QAAYG,QAAQC,KAAKC,YAAYI;;;;;;;;IAQxC,oBAAoB;MAAC;;IACrB,4BAA4B;MAAC;;EAC/B;EACAC,UAAU;IACR,GAAGV,2BAAAA,QAAYG,QAAQC,KAAKC,YAAYK;IACxCX,OAAO;MACLY,SAAS;IACX;EACF;AACF;;;AD/BO,IAAMC,SAA8B;KAAIC,0BAAAA;EAAUC;;","names":["reactConfig","plugins","react","reactPlugin","files","languageOptions","configs","flat","recommended","globals","serviceworker","browser","rules","settings","version","config","xyConfig","reactConfig"]}
|
package/dist/neutral/index.d.cts
CHANGED
package/dist/neutral/index.d.mts
CHANGED
package/dist/neutral/index.d.ts
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 { Linter } from 'eslint'\n\nimport { reactConfig } from './react/index.
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/react/index.ts"],"sourcesContent":["import { config as xyConfig } from '@xylabs/eslint-config-flat'\nimport { Linter } from 'eslint'\n\nimport { reactConfig } from './react/index.ts'\n\nexport const config: Linter.FlatConfig[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.ts'\n","import { Linter } from 'eslint'\nimport reactPlugin from 'eslint-plugin-react'\n//import reactHooksPlugin from 'eslint-plugin-react-hooks'\nimport globals from 'globals'\n\nexport const reactConfig: Linter.FlatConfig = {\n plugins: {\n react: reactPlugin,\n //'react-hooks': reactHooksPlugin,\n },\n files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],\n languageOptions: {\n ...reactPlugin.configs.flat.recommended.languageOptions,\n globals: {\n ...globals.serviceworker,\n ...globals.browser,\n },\n },\n rules: {\n ...reactPlugin.configs.flat.recommended.rules,\n /*'react-hooks/rules-of-hooks': 'error',\n 'react-hooks/exhaustive-deps': [\n 'warn',\n {\n additionalHooks: '(useAsyncEffect|usePromise)',\n },\n ],*/\n 'react/prop-types': ['off'],\n 'react/react-in-jsx-scope': ['warn'],\n },\n settings: {\n ...reactPlugin.configs.flat.recommended.settings,\n react: {\n version: 'detect',\n },\n },\n}\n"],"mappings":";AAAA,SAASA,UAAUC,gBAAgB;;;ACCnC,OAAOC,iBAAiB;AAExB,OAAOC,aAAa;AAEb,IAAMC,cAAiC;EAC5CC,SAAS;IACPC,OAAOJ;EAET;EACAK,OAAO;IAAC;;EACRC,iBAAiB;IACf,GAAGN,YAAYO,QAAQC,KAAKC,YAAYH;IACxCL,SAAS;MACP,GAAGA,QAAQS;MACX,GAAGT,QAAQU;IACb;EACF;EACAC,OAAO;IACL,GAAGZ,YAAYO,QAAQC,KAAKC,YAAYG;;;;;;;;IAQxC,oBAAoB;MAAC;;IACrB,4BAA4B;MAAC;;EAC/B;EACAC,UAAU;IACR,GAAGb,YAAYO,QAAQC,KAAKC,YAAYI;IACxCT,OAAO;MACLU,SAAS;IACX;EACF;AACF;;;AD/BO,IAAMC,SAA8B;KAAIC;EAAUC;;","names":["config","xyConfig","reactPlugin","globals","reactConfig","plugins","react","files","languageOptions","configs","flat","recommended","serviceworker","browser","rules","settings","version","config","xyConfig","reactConfig"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAK/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UA+BhC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAK/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UA+BhC,CAAA"}
|
package/dist/node/index.cjs.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 { Linter } from 'eslint'\n\nimport { reactConfig } from './react/index.
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/react/index.ts"],"sourcesContent":["import { config as xyConfig } from '@xylabs/eslint-config-flat'\nimport { Linter } from 'eslint'\n\nimport { reactConfig } from './react/index.ts'\n\nexport const config: Linter.FlatConfig[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.ts'\n","import { Linter } from 'eslint'\nimport reactPlugin from 'eslint-plugin-react'\n//import reactHooksPlugin from 'eslint-plugin-react-hooks'\nimport globals from 'globals'\n\nexport const reactConfig: Linter.FlatConfig = {\n plugins: {\n react: reactPlugin,\n //'react-hooks': reactHooksPlugin,\n },\n files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],\n languageOptions: {\n ...reactPlugin.configs.flat.recommended.languageOptions,\n globals: {\n ...globals.serviceworker,\n ...globals.browser,\n },\n },\n rules: {\n ...reactPlugin.configs.flat.recommended.rules,\n /*'react-hooks/rules-of-hooks': 'error',\n 'react-hooks/exhaustive-deps': [\n 'warn',\n {\n additionalHooks: '(useAsyncEffect|usePromise)',\n },\n ],*/\n 'react/prop-types': ['off'],\n 'react/react-in-jsx-scope': ['warn'],\n },\n settings: {\n ...reactPlugin.configs.flat.recommended.settings,\n react: {\n version: 'detect',\n },\n },\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;gCAAmC;;;ACCnC,iCAAwB;AAExB,qBAAoB;AAEb,IAAMA,cAAiC;EAC5CC,SAAS;IACPC,OAAOC,2BAAAA;EAET;EACAC,OAAO;IAAC;;EACRC,iBAAiB;IACf,GAAGF,2BAAAA,QAAYG,QAAQC,KAAKC,YAAYH;IACxCI,SAAS;MACP,GAAGA,eAAAA,QAAQC;MACX,GAAGD,eAAAA,QAAQE;IACb;EACF;EACAC,OAAO;IACL,GAAGT,2BAAAA,QAAYG,QAAQC,KAAKC,YAAYI;;;;;;;;IAQxC,oBAAoB;MAAC;;IACrB,4BAA4B;MAAC;;EAC/B;EACAC,UAAU;IACR,GAAGV,2BAAAA,QAAYG,QAAQC,KAAKC,YAAYK;IACxCX,OAAO;MACLY,SAAS;IACX;EACF;AACF;;;AD/BO,IAAMC,SAA8B;KAAIC,0BAAAA;EAAUC;;","names":["reactConfig","plugins","react","reactPlugin","files","languageOptions","configs","flat","recommended","globals","serviceworker","browser","rules","settings","version","config","xyConfig","reactConfig"]}
|
package/dist/node/index.d.cts
CHANGED
package/dist/node/index.d.mts
CHANGED
package/dist/node/index.d.ts
CHANGED
package/dist/node/index.js.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 { Linter } from 'eslint'\n\nimport { reactConfig } from './react/index.
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/react/index.ts"],"sourcesContent":["import { config as xyConfig } from '@xylabs/eslint-config-flat'\nimport { Linter } from 'eslint'\n\nimport { reactConfig } from './react/index.ts'\n\nexport const config: Linter.FlatConfig[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.ts'\n","import { Linter } from 'eslint'\nimport reactPlugin from 'eslint-plugin-react'\n//import reactHooksPlugin from 'eslint-plugin-react-hooks'\nimport globals from 'globals'\n\nexport const reactConfig: Linter.FlatConfig = {\n plugins: {\n react: reactPlugin,\n //'react-hooks': reactHooksPlugin,\n },\n files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],\n languageOptions: {\n ...reactPlugin.configs.flat.recommended.languageOptions,\n globals: {\n ...globals.serviceworker,\n ...globals.browser,\n },\n },\n rules: {\n ...reactPlugin.configs.flat.recommended.rules,\n /*'react-hooks/rules-of-hooks': 'error',\n 'react-hooks/exhaustive-deps': [\n 'warn',\n {\n additionalHooks: '(useAsyncEffect|usePromise)',\n },\n ],*/\n 'react/prop-types': ['off'],\n 'react/react-in-jsx-scope': ['warn'],\n },\n settings: {\n ...reactPlugin.configs.flat.recommended.settings,\n react: {\n version: 'detect',\n },\n },\n}\n"],"mappings":";AAAA,SAASA,UAAUC,gBAAgB;;;ACCnC,OAAOC,iBAAiB;AAExB,OAAOC,aAAa;AAEb,IAAMC,cAAiC;EAC5CC,SAAS;IACPC,OAAOJ;EAET;EACAK,OAAO;IAAC;;EACRC,iBAAiB;IACf,GAAGN,YAAYO,QAAQC,KAAKC,YAAYH;IACxCL,SAAS;MACP,GAAGA,QAAQS;MACX,GAAGT,QAAQU;IACb;EACF;EACAC,OAAO;IACL,GAAGZ,YAAYO,QAAQC,KAAKC,YAAYG;;;;;;;;IAQxC,oBAAoB;MAAC;;IACrB,4BAA4B;MAAC;;EAC/B;EACAC,UAAU;IACR,GAAGb,YAAYO,QAAQC,KAAKC,YAAYI;IACxCT,OAAO;MACLU,SAAS;IACX;EACF;AACF;;;AD/BO,IAAMC,SAA8B;KAAIC;EAAUC;;","names":["config","xyConfig","reactPlugin","globals","reactConfig","plugins","react","files","languageOptions","configs","flat","recommended","serviceworker","browser","rules","settings","version","config","xyConfig","reactConfig"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAK/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UA+BhC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAK/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UA+BhC,CAAA"}
|
package/package.json
CHANGED
|
@@ -10,17 +10,17 @@
|
|
|
10
10
|
"url": "https://github.com/xylabs/eslint-config/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xylabs/eslint-config-flat": "^3.
|
|
14
|
-
"eslint-plugin-react": "^7.
|
|
13
|
+
"@xylabs/eslint-config-flat": "^3.15.1",
|
|
14
|
+
"eslint-plugin-react": "^7.35.0",
|
|
15
15
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
16
|
-
"globals": "^15.
|
|
16
|
+
"globals": "^15.9.0"
|
|
17
17
|
},
|
|
18
18
|
"description": "ESLint Config used throughout XY Labs TypeScript/JavaScript libraries and react projects",
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@xylabs/ts-scripts-yarn3": "^3.
|
|
21
|
-
"@xylabs/tsconfig": "^3.
|
|
22
|
-
"eslint": "^9.
|
|
23
|
-
"typescript": "^5.5.
|
|
20
|
+
"@xylabs/ts-scripts-yarn3": "^3.15.1",
|
|
21
|
+
"@xylabs/tsconfig": "^3.15.1",
|
|
22
|
+
"eslint": "^9.8.0",
|
|
23
|
+
"typescript": "^5.5.4"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"eslint": "*"
|
|
@@ -62,6 +62,6 @@
|
|
|
62
62
|
"url": "https://github.com/xylabs/config.git"
|
|
63
63
|
},
|
|
64
64
|
"sideEffects": false,
|
|
65
|
-
"version": "3.
|
|
65
|
+
"version": "3.15.1",
|
|
66
66
|
"type": "module"
|
|
67
67
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { config as xyConfig } from '@xylabs/eslint-config-flat'
|
|
2
2
|
import { Linter } from 'eslint'
|
|
3
3
|
|
|
4
|
-
import { reactConfig } from './react/index.
|
|
4
|
+
import { reactConfig } from './react/index.ts'
|
|
5
5
|
|
|
6
6
|
export const config: Linter.FlatConfig[] = [...xyConfig, reactConfig]
|
|
7
7
|
|
|
8
|
-
export { reactConfig } from './react/index.
|
|
8
|
+
export { reactConfig } from './react/index.ts'
|