@xylabs/eslint-config-react-flat 7.1.8 → 7.2.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.
@@ -12,8 +12,7 @@ var reactConfig = {
12
12
  ...eslintReactPlugin.configs.recommended,
13
13
  plugins: {
14
14
  "react": reactPlugin,
15
- "react-refresh": eslintReactRefreshPlugin,
16
- ...eslintReactPlugin.configs.recommended.plugins
15
+ "react-refresh": eslintReactRefreshPlugin
17
16
  },
18
17
  settings: { react: { version: "detect" } },
19
18
  languageOptions: {
@@ -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 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,SAAS,UAAU,gBAAgB;;;ACAnC,OAAO,uBAAuB;AAC9B,OAAO,cAAc;AAErB,OAAO,iBAAiB;AACxB,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,IACjB,GAAG,kBAAkB,QAAQ,YAAY;AAAA,EAC3C;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,GAAG,YAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,wCAAwC,CAAC,QAAQ,EAAE,qBAAqB,KAAK,CAAC;AAAA,IAC9E,oBAAoB,CAAC,KAAK;AAAA,EAC5B;AACF;;;ADtBO,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 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 },\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,SAAS,UAAU,gBAAgB;;;ACAnC,OAAO,uBAAuB;AAC9B,OAAO,cAAc;AAErB,OAAO,iBAAiB;AACxB,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,GAAG,YAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,wCAAwC,CAAC,QAAQ,EAAE,qBAAqB,KAAK,CAAC;AAAA,IAC9E,oBAAoB,CAAC,KAAK;AAAA,EAC5B;AACF;;;ADrBO,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;AAKpC,eAAO,MAAM,WAAW,EAoBR,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;AAKpC,eAAO,MAAM,WAAW,EAmBR,MAAM,CAAC,MAAM,CAAA"}
@@ -12,8 +12,7 @@ var reactConfig = {
12
12
  ...eslintReactPlugin.configs.recommended,
13
13
  plugins: {
14
14
  "react": reactPlugin,
15
- "react-refresh": eslintReactRefreshPlugin,
16
- ...eslintReactPlugin.configs.recommended.plugins
15
+ "react-refresh": eslintReactRefreshPlugin
17
16
  },
18
17
  settings: { react: { version: "detect" } },
19
18
  languageOptions: {
@@ -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 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,SAAS,UAAU,gBAAgB;;;ACAnC,OAAO,uBAAuB;AAC9B,OAAO,cAAc;AAErB,OAAO,iBAAiB;AACxB,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,IACjB,GAAG,kBAAkB,QAAQ,YAAY;AAAA,EAC3C;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,GAAG,YAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,wCAAwC,CAAC,QAAQ,EAAE,qBAAqB,KAAK,CAAC;AAAA,IAC9E,oBAAoB,CAAC,KAAK;AAAA,EAC5B;AACF;;;ADtBO,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 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 },\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,SAAS,UAAU,gBAAgB;;;ACAnC,OAAO,uBAAuB;AAC9B,OAAO,cAAc;AAErB,OAAO,iBAAiB;AACxB,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,GAAG,YAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,wCAAwC,CAAC,QAAQ,EAAE,qBAAqB,KAAK,CAAC;AAAA,IAC9E,oBAAoB,CAAC,KAAK;AAAA,EAC5B;AACF;;;ADrBO,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;AAKpC,eAAO,MAAM,WAAW,EAoBR,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;AAKpC,eAAO,MAAM,WAAW,EAmBR,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.1.8",
4
+ "version": "7.2.2",
5
5
  "description": "ESLint Config used throughout XY Labs TypeScript/JavaScript libraries and react projects",
6
6
  "keywords": [
7
7
  "xylabs",
@@ -38,18 +38,18 @@
38
38
  "LICENSE"
39
39
  ],
40
40
  "dependencies": {
41
- "@eslint-react/eslint-plugin": "~2.0.2",
42
- "@typescript-eslint/parser": "~8.45.0",
43
- "@xylabs/eslint-config-flat": "^7.1.8",
41
+ "@eslint-react/eslint-plugin": "~2.3.1",
42
+ "@typescript-eslint/parser": "~8.46.3",
43
+ "@xylabs/eslint-config-flat": "^7.2.2",
44
44
  "eslint-plugin-react": "~7.37.5",
45
- "eslint-plugin-react-refresh": "~0.4.22",
46
- "globals": "~16.4.0"
45
+ "eslint-plugin-react-refresh": "~0.4.24",
46
+ "globals": "~16.5.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@xylabs/ts-scripts-yarn3": "^7.1.8",
50
- "@xylabs/tsconfig": "^7.1.8",
51
- "eslint": "~9.36.0",
52
- "typescript": "~5.9.2"
49
+ "@xylabs/ts-scripts-yarn3": "^7.2.2",
50
+ "@xylabs/tsconfig": "^7.2.2",
51
+ "eslint": "~9.39.1",
52
+ "typescript": "~5.9.3"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "eslint": "~9"