@xylabs/eslint-config-react-flat 6.0.8 → 6.1.0
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/dist/types/react/index.d.ts.map +1 -1
- package/package.json +11 -6
- package/src/index.ts +0 -8
- package/src/react/index.ts +0 -30
- package/src/types.d.ts +0 -7
- package/tsconfig.json +0 -9
- package/tsconfig.test.json +0 -4
- package/xy.config.ts +0 -4
|
@@ -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'\
|
|
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,SAASA,UAAUC,gBAAgB;;;ACAnC,OAAOC,uBAAuB;AAC9B,OAAOC,cAAc;AAErB,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;;;ADtBO,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":["../../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'\
|
|
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,SAASA,UAAUC,gBAAgB;;;ACAnC,OAAOC,uBAAuB;AAC9B,OAAOC,cAAc;AAErB,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;;;ADtBO,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"]}
|
|
@@ -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;AAKpC,eAAO,MAAM,WAAW,EAoBR,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": "6.0
|
|
4
|
+
"version": "6.1.0",
|
|
5
5
|
"description": "ESLint Config used throughout XY Labs TypeScript/JavaScript libraries and react projects",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"xylabs",
|
|
@@ -32,18 +32,23 @@
|
|
|
32
32
|
},
|
|
33
33
|
"module": "./dist/node/index.mjs",
|
|
34
34
|
"types": "./dist/types/index.d.ts",
|
|
35
|
+
"files": [
|
|
36
|
+
"dist",
|
|
37
|
+
"README.md",
|
|
38
|
+
"LICENSE"
|
|
39
|
+
],
|
|
35
40
|
"dependencies": {
|
|
36
|
-
"@eslint-react/eslint-plugin": "^1.
|
|
37
|
-
"@typescript-eslint/parser": "^8.26.
|
|
38
|
-
"@xylabs/eslint-config-flat": "^6.0
|
|
41
|
+
"@eslint-react/eslint-plugin": "^1.33.0",
|
|
42
|
+
"@typescript-eslint/parser": "^8.26.1",
|
|
43
|
+
"@xylabs/eslint-config-flat": "^6.1.0",
|
|
39
44
|
"eslint": "^9.22.0",
|
|
40
45
|
"eslint-plugin-react": "^7.37.4",
|
|
41
46
|
"eslint-plugin-react-refresh": "^0.4.19",
|
|
42
47
|
"globals": "^16.0.0"
|
|
43
48
|
},
|
|
44
49
|
"devDependencies": {
|
|
45
|
-
"@xylabs/ts-scripts-yarn3": "^6.0
|
|
46
|
-
"@xylabs/tsconfig": "^6.0
|
|
50
|
+
"@xylabs/ts-scripts-yarn3": "^6.1.0",
|
|
51
|
+
"@xylabs/tsconfig": "^6.1.0",
|
|
47
52
|
"typescript": "^5.8.2"
|
|
48
53
|
},
|
|
49
54
|
"publishConfig": {
|
package/src/index.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { config as xyConfig } from '@xylabs/eslint-config-flat'
|
|
2
|
-
import type { Linter } from 'eslint'
|
|
3
|
-
|
|
4
|
-
import { reactConfig } from './react/index.ts'
|
|
5
|
-
|
|
6
|
-
export const config: Linter.Config[] = [...xyConfig, reactConfig]
|
|
7
|
-
|
|
8
|
-
export { reactConfig } from './react/index.ts'
|
package/src/react/index.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import eslintReactPlugin from '@eslint-react/eslint-plugin'
|
|
2
|
-
import tsParser from '@typescript-eslint/parser'
|
|
3
|
-
import type { Linter } from 'eslint'
|
|
4
|
-
// This rule is disabled since we still need the in-scope react rule
|
|
5
|
-
// eslint-disable-next-line depend/ban-dependencies
|
|
6
|
-
import reactPlugin from 'eslint-plugin-react'
|
|
7
|
-
import eslintReactRefreshPlugin from 'eslint-plugin-react-refresh'
|
|
8
|
-
import globals from 'globals'
|
|
9
|
-
|
|
10
|
-
export const reactConfig = {
|
|
11
|
-
files: ['**/*.{ts,tsx}'],
|
|
12
|
-
...eslintReactPlugin.configs.recommended,
|
|
13
|
-
plugins: {
|
|
14
|
-
'react': reactPlugin,
|
|
15
|
-
'react-refresh': eslintReactRefreshPlugin,
|
|
16
|
-
...eslintReactPlugin.configs.recommended.plugins,
|
|
17
|
-
},
|
|
18
|
-
settings: { react: { version: 'detect' } },
|
|
19
|
-
languageOptions: {
|
|
20
|
-
parser: tsParser,
|
|
21
|
-
parserOptions: { ecmaFeatures: { jsx: true } },
|
|
22
|
-
globals: { ...globals.browser },
|
|
23
|
-
},
|
|
24
|
-
rules: {
|
|
25
|
-
...eslintReactPlugin.configs.recommended.rules,
|
|
26
|
-
...reactPlugin.configs.flat.recommended.rules,
|
|
27
|
-
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
|
|
28
|
-
'react/prop-types': ['off'],
|
|
29
|
-
},
|
|
30
|
-
} as unknown as Linter.Config
|
package/src/types.d.ts
DELETED
package/tsconfig.json
DELETED
package/tsconfig.test.json
DELETED
package/xy.config.ts
DELETED