@xylabs/eslint-config-react-flat 3.15.0 → 3.15.2
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.
|
@@ -0,0 +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.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"]}
|
package/package.json
CHANGED
|
@@ -10,15 +10,15 @@
|
|
|
10
10
|
"url": "https://github.com/xylabs/eslint-config/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xylabs/eslint-config-flat": "^3.15.
|
|
13
|
+
"@xylabs/eslint-config-flat": "^3.15.2",
|
|
14
14
|
"eslint-plugin-react": "^7.35.0",
|
|
15
15
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
16
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.15.
|
|
21
|
-
"@xylabs/tsconfig": "^3.15.
|
|
20
|
+
"@xylabs/ts-scripts-yarn3": "^3.15.2",
|
|
21
|
+
"@xylabs/tsconfig": "^3.15.2",
|
|
22
22
|
"eslint": "^9.8.0",
|
|
23
23
|
"typescript": "^5.5.4"
|
|
24
24
|
},
|
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
},
|
|
47
47
|
"import": {
|
|
48
48
|
"types": "./dist/node/index.d.ts",
|
|
49
|
-
"default": "./dist/node/index.
|
|
49
|
+
"default": "./dist/node/index.mjs"
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
"main": "./dist/node/index.cjs",
|
|
54
|
-
"module": "./dist/node/index.
|
|
54
|
+
"module": "./dist/node/index.mjs",
|
|
55
55
|
"types": "./dist/node/index.d.ts",
|
|
56
56
|
"name": "@xylabs/eslint-config-react-flat",
|
|
57
57
|
"publishConfig": {
|
|
@@ -62,6 +62,6 @@
|
|
|
62
62
|
"url": "https://github.com/xylabs/config.git"
|
|
63
63
|
},
|
|
64
64
|
"sideEffects": false,
|
|
65
|
-
"version": "3.15.
|
|
65
|
+
"version": "3.15.2",
|
|
66
66
|
"type": "module"
|
|
67
67
|
}
|
|
File without changes
|