@xylabs/eslint-config-react-flat 7.2.4 → 7.2.5

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.
@@ -19,10 +19,7 @@ var reactConfig = {
19
19
  parserOptions: { ecmaFeatures: { jsx: true } },
20
20
  globals: { ...globals.browser }
21
21
  },
22
- rules: {
23
- ...eslintReactPlugin.configs.recommended.rules,
24
- "react-refresh/only-export-components": ["warn", { allowConstantExport: true }]
25
- }
22
+ rules: { "react-refresh/only-export-components": ["warn", { allowConstantExport: true }] }
26
23
  };
27
24
 
28
25
  // src/index.ts
@@ -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 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': eslintReactPlugin,\n 'react-refresh': eslintReactRefreshPlugin,\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 'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],\n },\n} as unknown as Linter.Config\n"],"mappings":";AAAA,SAAS,UAAU,gBAAgB;;;ACAnC,OAAO,uBAAuB;AAC9B,OAAO,cAAc;AAErB,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,EACnB;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,wCAAwC,CAAC,QAAQ,EAAE,qBAAqB,KAAK,CAAC;AAAA,EAChF;AACF;;;ADlBO,IAAM,SAA0B,CAAC,GAAG,UAAU,WAAW;","names":[]}
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 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': eslintReactPlugin,\n 'react-refresh': eslintReactRefreshPlugin,\n },\n settings: { react: { version: 'detect' } },\n languageOptions: {\n parser: tsParser,\n parserOptions: { ecmaFeatures: { jsx: true } },\n globals: { ...globals.browser },\n },\n rules: { 'react-refresh/only-export-components': ['warn', { allowConstantExport: true }] },\n} as unknown as Linter.Config\n"],"mappings":";AAAA,SAAS,UAAU,gBAAgB;;;ACAnC,OAAO,uBAAuB;AAC9B,OAAO,cAAc;AAErB,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,EACnB;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,EAAE,wCAAwC,CAAC,QAAQ,EAAE,qBAAqB,KAAK,CAAC,EAAE;AAC3F;;;ADfO,IAAM,SAA0B,CAAC,GAAG,UAAU,WAAW;","names":[]}
@@ -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;AAIpC,eAAO,MAAM,WAAW,EAiBR,MAAM,CAAC,MAAM,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;AAIpC,eAAO,MAAM,WAAW,EAcR,MAAM,CAAC,MAAM,CAAA"}
@@ -19,10 +19,7 @@ var reactConfig = {
19
19
  parserOptions: { ecmaFeatures: { jsx: true } },
20
20
  globals: { ...globals.browser }
21
21
  },
22
- rules: {
23
- ...eslintReactPlugin.configs.recommended.rules,
24
- "react-refresh/only-export-components": ["warn", { allowConstantExport: true }]
25
- }
22
+ rules: { "react-refresh/only-export-components": ["warn", { allowConstantExport: true }] }
26
23
  };
27
24
 
28
25
  // src/index.ts
@@ -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 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': eslintReactPlugin,\n 'react-refresh': eslintReactRefreshPlugin,\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 'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],\n },\n} as unknown as Linter.Config\n"],"mappings":";AAAA,SAAS,UAAU,gBAAgB;;;ACAnC,OAAO,uBAAuB;AAC9B,OAAO,cAAc;AAErB,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,EACnB;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,wCAAwC,CAAC,QAAQ,EAAE,qBAAqB,KAAK,CAAC;AAAA,EAChF;AACF;;;ADlBO,IAAM,SAA0B,CAAC,GAAG,UAAU,WAAW;","names":[]}
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 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': eslintReactPlugin,\n 'react-refresh': eslintReactRefreshPlugin,\n },\n settings: { react: { version: 'detect' } },\n languageOptions: {\n parser: tsParser,\n parserOptions: { ecmaFeatures: { jsx: true } },\n globals: { ...globals.browser },\n },\n rules: { 'react-refresh/only-export-components': ['warn', { allowConstantExport: true }] },\n} as unknown as Linter.Config\n"],"mappings":";AAAA,SAAS,UAAU,gBAAgB;;;ACAnC,OAAO,uBAAuB;AAC9B,OAAO,cAAc;AAErB,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,EACnB;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,EAAE,wCAAwC,CAAC,QAAQ,EAAE,qBAAqB,KAAK,CAAC,EAAE;AAC3F;;;ADfO,IAAM,SAA0B,CAAC,GAAG,UAAU,WAAW;","names":[]}
@@ -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;AAIpC,eAAO,MAAM,WAAW,EAiBR,MAAM,CAAC,MAAM,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;AAIpC,eAAO,MAAM,WAAW,EAcR,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": "7.2.4",
4
+ "version": "7.2.5",
5
5
  "description": "ESLint Config used throughout XY Labs TypeScript/JavaScript libraries and react projects",
6
6
  "keywords": [
7
7
  "xylabs",
@@ -40,13 +40,13 @@
40
40
  "dependencies": {
41
41
  "@eslint-react/eslint-plugin": "~2.3.1",
42
42
  "@typescript-eslint/parser": "~8.46.3",
43
- "@xylabs/eslint-config-flat": "^7.2.4",
43
+ "@xylabs/eslint-config-flat": "^7.2.5",
44
44
  "eslint-plugin-react-refresh": "~0.4.24",
45
45
  "globals": "~16.5.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@xylabs/ts-scripts-yarn3": "^7.2.4",
49
- "@xylabs/tsconfig": "^7.2.4",
48
+ "@xylabs/ts-scripts-yarn3": "^7.2.5",
49
+ "@xylabs/tsconfig": "^7.2.5",
50
50
  "eslint": "~9.39.1",
51
51
  "typescript": "~5.9.3"
52
52
  },