@xylabs/eslint-config-react-flat 5.0.26 → 5.0.27
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.map +1 -1
- package/dist/node/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/index.ts +1 -1
- package/src/react/index.ts +1 -1
- package/xy.config.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.ts","index.ts"],"sourcesContent":["import { config as xyConfig } from '@xylabs/eslint-config-flat'\nimport
|
|
1
|
+
{"version":3,"sources":["index.ts","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.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 { Linter } from 'eslint'\n// This rule is disabled since we still need the in-scope react rule\n// eslint-disable-next-line depend/ban-dependencies\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,SAASA,UAAUC,gBAAgB;;;ACAnC,OAAOC,uBAAuB;AAC9B,OAAOC,cAAc;AAIrB,OAAOC,iBAAiB;AACxB,OAAOC,8BAA8B;AACrC,OAAOC,aAAa;AAEb,IAAMC,cAAc;EACzBC,OAAO;IAAC;;EACR,GAAGN,kBAAkBO,QAAQC;EAC7BC,SAAS;IACP,SAASP;IACT,iBAAiBC;IACjB,GAAGH,kBAAkBO,QAAQC,YAAYC;EAC3C;EACAC,UAAU;IAAEC,OAAO;MAAEC,SAAS;IAAS;EAAE;EACzCC,iBAAiB;IACfC,QAAQb;IACRc,eAAe;MAAEC,cAAc;QAAEC,KAAK;MAAK;IAAE;IAC7Cb,SAAS;MAAE,GAAGA,QAAQc;IAAQ;EAChC;EACAC,OAAO;IACL,GAAGnB,kBAAkBO,QAAQC,YAAYW;IACzC,GAAGjB,YAAYK,QAAQa,KAAKZ,YAAYW;IACxC,wCAAwC;MAAC;MAAQ;QAAEE,qBAAqB;MAAK;;IAC7E,oBAAoB;MAAC;;EACvB;AACF;;;ADxBO,IAAMC,SAA0B;KAAIC;EAAUC;;","names":["config","xyConfig","eslintReactPlugin","tsParser","reactPlugin","eslintReactRefreshPlugin","globals","reactConfig","files","configs","recommended","plugins","settings","react","version","languageOptions","parser","parserOptions","ecmaFeatures","jsx","browser","rules","flat","allowConstantExport","config","xyConfig","reactConfig"]}
|
package/dist/node/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.ts","index.ts"],"sourcesContent":["import { config as xyConfig } from '@xylabs/eslint-config-flat'\nimport
|
|
1
|
+
{"version":3,"sources":["index.ts","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.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 { Linter } from 'eslint'\n// This rule is disabled since we still need the in-scope react rule\n// eslint-disable-next-line depend/ban-dependencies\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,SAASA,UAAUC,gBAAgB;;;ACAnC,OAAOC,uBAAuB;AAC9B,OAAOC,cAAc;AAIrB,OAAOC,iBAAiB;AACxB,OAAOC,8BAA8B;AACrC,OAAOC,aAAa;AAEb,IAAMC,cAAc;EACzBC,OAAO;IAAC;;EACR,GAAGN,kBAAkBO,QAAQC;EAC7BC,SAAS;IACP,SAASP;IACT,iBAAiBC;IACjB,GAAGH,kBAAkBO,QAAQC,YAAYC;EAC3C;EACAC,UAAU;IAAEC,OAAO;MAAEC,SAAS;IAAS;EAAE;EACzCC,iBAAiB;IACfC,QAAQb;IACRc,eAAe;MAAEC,cAAc;QAAEC,KAAK;MAAK;IAAE;IAC7Cb,SAAS;MAAE,GAAGA,QAAQc;IAAQ;EAChC;EACAC,OAAO;IACL,GAAGnB,kBAAkBO,QAAQC,YAAYW;IACzC,GAAGjB,YAAYK,QAAQa,KAAKZ,YAAYW;IACxC,wCAAwC;MAAC;MAAQ;QAAEE,qBAAqB;MAAK;;IAC7E,oBAAoB;MAAC;;EACvB;AACF;;;ADxBO,IAAMC,SAA0B;KAAIC;EAAUC;;","names":["config","xyConfig","eslintReactPlugin","tsParser","reactPlugin","eslintReactRefreshPlugin","globals","reactConfig","files","configs","recommended","plugins","settings","react","version","languageOptions","parser","parserOptions","ecmaFeatures","jsx","browser","rules","flat","allowConstantExport","config","xyConfig","reactConfig"]}
|
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": "5.0.
|
|
4
|
+
"version": "5.0.27",
|
|
5
5
|
"description": "ESLint Config used throughout XY Labs TypeScript/JavaScript libraries and react projects",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"xylabs",
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@eslint-react/eslint-plugin": "^1.28.0",
|
|
37
37
|
"@typescript-eslint/parser": "^8.25.0",
|
|
38
|
-
"@xylabs/eslint-config-flat": "^5.0.
|
|
38
|
+
"@xylabs/eslint-config-flat": "^5.0.27",
|
|
39
39
|
"eslint": "^9.21.0",
|
|
40
40
|
"eslint-plugin-react": "^7.37.4",
|
|
41
41
|
"eslint-plugin-react-refresh": "^0.4.19",
|
|
42
42
|
"globals": "^16.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@xylabs/ts-scripts-yarn3": "^5.0.
|
|
46
|
-
"@xylabs/tsconfig": "^5.0.
|
|
45
|
+
"@xylabs/ts-scripts-yarn3": "^5.0.27",
|
|
46
|
+
"@xylabs/tsconfig": "^5.0.27",
|
|
47
47
|
"typescript": "^5.7.3"
|
|
48
48
|
},
|
|
49
49
|
"publishConfig": {
|
package/src/index.ts
CHANGED
package/src/react/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import eslintReactPlugin from '@eslint-react/eslint-plugin'
|
|
2
2
|
import tsParser from '@typescript-eslint/parser'
|
|
3
|
-
import
|
|
3
|
+
import { Linter } from 'eslint'
|
|
4
4
|
// This rule is disabled since we still need the in-scope react rule
|
|
5
5
|
// eslint-disable-next-line depend/ban-dependencies
|
|
6
6
|
import reactPlugin from 'eslint-plugin-react'
|
package/xy.config.ts
CHANGED