@xylabs/eslint-config-react-flat 3.13.5 → 3.13.7

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.
@@ -41,13 +41,13 @@ var import_eslint_plugin_react = __toESM(require("eslint-plugin-react"), 1);
41
41
  var import_eslint_plugin_react_hooks = __toESM(require("eslint-plugin-react-hooks"), 1);
42
42
  var reactConfig = {
43
43
  plugins: {
44
- react: import_eslint_plugin_react.default,
44
+ ...import_eslint_plugin_react.default.configs.flat.recommended.plugins,
45
45
  "react-hooks": import_eslint_plugin_react_hooks.default
46
46
  },
47
47
  files: ["*.tsx"],
48
48
  rules: {
49
- ...import_eslint_plugin_react.default.configs.recommended.rules,
50
- ...import_eslint_plugin_react_hooks.default.configs.recommended.rules,
49
+ ...import_eslint_plugin_react.default.configs.flat.recommended.rules,
50
+ "react-hooks/rules-of-hooks": "error",
51
51
  "import/no-nodejs-modules": ["error"],
52
52
  "react-hooks/exhaustive-deps": [
53
53
  "warn",
@@ -59,9 +59,7 @@ var reactConfig = {
59
59
  "react/react-in-jsx-scope": ["warn"]
60
60
  },
61
61
  settings: {
62
- react: {
63
- version: "detect"
64
- }
62
+ ...import_eslint_plugin_react.default.configs.flat.recommended.settings
65
63
  }
66
64
  };
67
65
 
@@ -1 +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.js'\n\nexport const config: Linter.FlatConfig[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.js'\n","import { Linter } from 'eslint'\nimport reactPlugin from 'eslint-plugin-react'\nimport reactHooksPlugin from 'eslint-plugin-react-hooks'\n\nexport const reactConfig: Linter.FlatConfig = {\n plugins: {\n react: reactPlugin,\n 'react-hooks': reactHooksPlugin,\n },\n files: ['*.tsx'],\n rules: {\n ...reactPlugin.configs.recommended.rules,\n ...reactHooksPlugin.configs.recommended.rules,\n 'import/no-nodejs-modules': ['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 react: {\n version: 'detect',\n },\n },\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gCAAmC;;;ACCnC,iCAAwB;AACxB,uCAA6B;AAEtB,IAAM,cAAiC;AAAA,EAC5C,SAAS;AAAA,IACP,OAAO,2BAAAA;AAAA,IACP,eAAe,iCAAAC;AAAA,EACjB;AAAA,EACA,OAAO,CAAC,OAAO;AAAA,EACf,OAAO;AAAA,IACL,GAAG,2BAAAD,QAAY,QAAQ,YAAY;AAAA,IACnC,GAAG,iCAAAC,QAAiB,QAAQ,YAAY;AAAA,IACxC,4BAA4B,CAAC,OAAO;AAAA,IACpC,+BAA+B;AAAA,MAC7B;AAAA,MACA;AAAA,QACE,iBAAiB;AAAA,MACnB;AAAA,IACF;AAAA,IACA,oBAAoB,CAAC,KAAK;AAAA,IAC1B,4BAA4B,CAAC,MAAM;AAAA,EACrC;AAAA,EACA,UAAU;AAAA,IACR,OAAO;AAAA,MACL,SAAS;AAAA,IACX;AAAA,EACF;AACF;;;ADvBO,IAAM,SAA8B,CAAC,GAAG,0BAAAC,QAAU,WAAW;","names":["reactPlugin","reactHooksPlugin","xyConfig"]}
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.js'\n\nexport const config: Linter.FlatConfig[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.js'\n","import { Linter } from 'eslint'\nimport reactPlugin from 'eslint-plugin-react'\nimport reactHooksPlugin from 'eslint-plugin-react-hooks'\n\nexport const reactConfig: Linter.FlatConfig = {\n plugins: {\n ...reactPlugin.configs.flat.recommended.plugins,\n 'react-hooks': reactHooksPlugin,\n },\n files: ['*.tsx'],\n rules: {\n ...reactPlugin.configs.flat.recommended.rules,\n 'react-hooks/rules-of-hooks': 'error',\n 'import/no-nodejs-modules': ['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 },\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gCAAmC;;;ACCnC,iCAAwB;AACxB,uCAA6B;AAEtB,IAAM,cAAiC;AAAA,EAC5C,SAAS;AAAA,IACP,GAAG,2BAAAA,QAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,eAAe,iCAAAC;AAAA,EACjB;AAAA,EACA,OAAO,CAAC,OAAO;AAAA,EACf,OAAO;AAAA,IACL,GAAG,2BAAAD,QAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,8BAA8B;AAAA,IAC9B,4BAA4B,CAAC,OAAO;AAAA,IACpC,+BAA+B;AAAA,MAC7B;AAAA,MACA;AAAA,QACE,iBAAiB;AAAA,MACnB;AAAA,IACF;AAAA,IACA,oBAAoB,CAAC,KAAK;AAAA,IAC1B,4BAA4B,CAAC,MAAM;AAAA,EACrC;AAAA,EACA,UAAU;AAAA,IACR,GAAG,2BAAAA,QAAY,QAAQ,KAAK,YAAY;AAAA,EAC1C;AACF;;;ADrBO,IAAM,SAA8B,CAAC,GAAG,0BAAAE,QAAU,WAAW;","names":["reactPlugin","reactHooksPlugin","xyConfig"]}
@@ -6,13 +6,13 @@ import reactPlugin from "eslint-plugin-react";
6
6
  import reactHooksPlugin from "eslint-plugin-react-hooks";
7
7
  var reactConfig = {
8
8
  plugins: {
9
- react: reactPlugin,
9
+ ...reactPlugin.configs.flat.recommended.plugins,
10
10
  "react-hooks": reactHooksPlugin
11
11
  },
12
12
  files: ["*.tsx"],
13
13
  rules: {
14
- ...reactPlugin.configs.recommended.rules,
15
- ...reactHooksPlugin.configs.recommended.rules,
14
+ ...reactPlugin.configs.flat.recommended.rules,
15
+ "react-hooks/rules-of-hooks": "error",
16
16
  "import/no-nodejs-modules": ["error"],
17
17
  "react-hooks/exhaustive-deps": [
18
18
  "warn",
@@ -24,9 +24,7 @@ var reactConfig = {
24
24
  "react/react-in-jsx-scope": ["warn"]
25
25
  },
26
26
  settings: {
27
- react: {
28
- version: "detect"
29
- }
27
+ ...reactPlugin.configs.flat.recommended.settings
30
28
  }
31
29
  };
32
30
 
@@ -1 +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.js'\n\nexport const config: Linter.FlatConfig[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.js'\n","import { Linter } from 'eslint'\nimport reactPlugin from 'eslint-plugin-react'\nimport reactHooksPlugin from 'eslint-plugin-react-hooks'\n\nexport const reactConfig: Linter.FlatConfig = {\n plugins: {\n react: reactPlugin,\n 'react-hooks': reactHooksPlugin,\n },\n files: ['*.tsx'],\n rules: {\n ...reactPlugin.configs.recommended.rules,\n ...reactHooksPlugin.configs.recommended.rules,\n 'import/no-nodejs-modules': ['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 react: {\n version: 'detect',\n },\n },\n}\n"],"mappings":";AAAA,SAAS,UAAU,gBAAgB;;;ACCnC,OAAO,iBAAiB;AACxB,OAAO,sBAAsB;AAEtB,IAAM,cAAiC;AAAA,EAC5C,SAAS;AAAA,IACP,OAAO;AAAA,IACP,eAAe;AAAA,EACjB;AAAA,EACA,OAAO,CAAC,OAAO;AAAA,EACf,OAAO;AAAA,IACL,GAAG,YAAY,QAAQ,YAAY;AAAA,IACnC,GAAG,iBAAiB,QAAQ,YAAY;AAAA,IACxC,4BAA4B,CAAC,OAAO;AAAA,IACpC,+BAA+B;AAAA,MAC7B;AAAA,MACA;AAAA,QACE,iBAAiB;AAAA,MACnB;AAAA,IACF;AAAA,IACA,oBAAoB,CAAC,KAAK;AAAA,IAC1B,4BAA4B,CAAC,MAAM;AAAA,EACrC;AAAA,EACA,UAAU;AAAA,IACR,OAAO;AAAA,MACL,SAAS;AAAA,IACX;AAAA,EACF;AACF;;;ADvBO,IAAM,SAA8B,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 { Linter } from 'eslint'\n\nimport { reactConfig } from './react/index.js'\n\nexport const config: Linter.FlatConfig[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.js'\n","import { Linter } from 'eslint'\nimport reactPlugin from 'eslint-plugin-react'\nimport reactHooksPlugin from 'eslint-plugin-react-hooks'\n\nexport const reactConfig: Linter.FlatConfig = {\n plugins: {\n ...reactPlugin.configs.flat.recommended.plugins,\n 'react-hooks': reactHooksPlugin,\n },\n files: ['*.tsx'],\n rules: {\n ...reactPlugin.configs.flat.recommended.rules,\n 'react-hooks/rules-of-hooks': 'error',\n 'import/no-nodejs-modules': ['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 },\n}\n"],"mappings":";AAAA,SAAS,UAAU,gBAAgB;;;ACCnC,OAAO,iBAAiB;AACxB,OAAO,sBAAsB;AAEtB,IAAM,cAAiC;AAAA,EAC5C,SAAS;AAAA,IACP,GAAG,YAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,eAAe;AAAA,EACjB;AAAA,EACA,OAAO,CAAC,OAAO;AAAA,EACf,OAAO;AAAA,IACL,GAAG,YAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,8BAA8B;AAAA,IAC9B,4BAA4B,CAAC,OAAO;AAAA,IACpC,+BAA+B;AAAA,MAC7B;AAAA,MACA;AAAA,QACE,iBAAiB;AAAA,MACnB;AAAA,IACF;AAAA,IACA,oBAAoB,CAAC,KAAK;AAAA,IAC1B,4BAA4B,CAAC,MAAM;AAAA,EACrC;AAAA,EACA,UAAU;AAAA,IACR,GAAG,YAAY,QAAQ,KAAK,YAAY;AAAA,EAC1C;AACF;;;ADrBO,IAAM,SAA8B,CAAC,GAAG,UAAU,WAAW;","names":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UAwBhC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UAsBhC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UAwBhC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UAsBhC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UAwBhC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UAsBhC,CAAA"}
@@ -41,13 +41,13 @@ var import_eslint_plugin_react = __toESM(require("eslint-plugin-react"), 1);
41
41
  var import_eslint_plugin_react_hooks = __toESM(require("eslint-plugin-react-hooks"), 1);
42
42
  var reactConfig = {
43
43
  plugins: {
44
- react: import_eslint_plugin_react.default,
44
+ ...import_eslint_plugin_react.default.configs.flat.recommended.plugins,
45
45
  "react-hooks": import_eslint_plugin_react_hooks.default
46
46
  },
47
47
  files: ["*.tsx"],
48
48
  rules: {
49
- ...import_eslint_plugin_react.default.configs.recommended.rules,
50
- ...import_eslint_plugin_react_hooks.default.configs.recommended.rules,
49
+ ...import_eslint_plugin_react.default.configs.flat.recommended.rules,
50
+ "react-hooks/rules-of-hooks": "error",
51
51
  "import/no-nodejs-modules": ["error"],
52
52
  "react-hooks/exhaustive-deps": [
53
53
  "warn",
@@ -59,9 +59,7 @@ var reactConfig = {
59
59
  "react/react-in-jsx-scope": ["warn"]
60
60
  },
61
61
  settings: {
62
- react: {
63
- version: "detect"
64
- }
62
+ ...import_eslint_plugin_react.default.configs.flat.recommended.settings
65
63
  }
66
64
  };
67
65
 
@@ -1 +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.js'\n\nexport const config: Linter.FlatConfig[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.js'\n","import { Linter } from 'eslint'\nimport reactPlugin from 'eslint-plugin-react'\nimport reactHooksPlugin from 'eslint-plugin-react-hooks'\n\nexport const reactConfig: Linter.FlatConfig = {\n plugins: {\n react: reactPlugin,\n 'react-hooks': reactHooksPlugin,\n },\n files: ['*.tsx'],\n rules: {\n ...reactPlugin.configs.recommended.rules,\n ...reactHooksPlugin.configs.recommended.rules,\n 'import/no-nodejs-modules': ['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 react: {\n version: 'detect',\n },\n },\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gCAAmC;;;ACCnC,iCAAwB;AACxB,uCAA6B;AAEtB,IAAM,cAAiC;AAAA,EAC5C,SAAS;AAAA,IACP,OAAO,2BAAAA;AAAA,IACP,eAAe,iCAAAC;AAAA,EACjB;AAAA,EACA,OAAO,CAAC,OAAO;AAAA,EACf,OAAO;AAAA,IACL,GAAG,2BAAAD,QAAY,QAAQ,YAAY;AAAA,IACnC,GAAG,iCAAAC,QAAiB,QAAQ,YAAY;AAAA,IACxC,4BAA4B,CAAC,OAAO;AAAA,IACpC,+BAA+B;AAAA,MAC7B;AAAA,MACA;AAAA,QACE,iBAAiB;AAAA,MACnB;AAAA,IACF;AAAA,IACA,oBAAoB,CAAC,KAAK;AAAA,IAC1B,4BAA4B,CAAC,MAAM;AAAA,EACrC;AAAA,EACA,UAAU;AAAA,IACR,OAAO;AAAA,MACL,SAAS;AAAA,IACX;AAAA,EACF;AACF;;;ADvBO,IAAM,SAA8B,CAAC,GAAG,0BAAAC,QAAU,WAAW;","names":["reactPlugin","reactHooksPlugin","xyConfig"]}
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.js'\n\nexport const config: Linter.FlatConfig[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.js'\n","import { Linter } from 'eslint'\nimport reactPlugin from 'eslint-plugin-react'\nimport reactHooksPlugin from 'eslint-plugin-react-hooks'\n\nexport const reactConfig: Linter.FlatConfig = {\n plugins: {\n ...reactPlugin.configs.flat.recommended.plugins,\n 'react-hooks': reactHooksPlugin,\n },\n files: ['*.tsx'],\n rules: {\n ...reactPlugin.configs.flat.recommended.rules,\n 'react-hooks/rules-of-hooks': 'error',\n 'import/no-nodejs-modules': ['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 },\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gCAAmC;;;ACCnC,iCAAwB;AACxB,uCAA6B;AAEtB,IAAM,cAAiC;AAAA,EAC5C,SAAS;AAAA,IACP,GAAG,2BAAAA,QAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,eAAe,iCAAAC;AAAA,EACjB;AAAA,EACA,OAAO,CAAC,OAAO;AAAA,EACf,OAAO;AAAA,IACL,GAAG,2BAAAD,QAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,8BAA8B;AAAA,IAC9B,4BAA4B,CAAC,OAAO;AAAA,IACpC,+BAA+B;AAAA,MAC7B;AAAA,MACA;AAAA,QACE,iBAAiB;AAAA,MACnB;AAAA,IACF;AAAA,IACA,oBAAoB,CAAC,KAAK;AAAA,IAC1B,4BAA4B,CAAC,MAAM;AAAA,EACrC;AAAA,EACA,UAAU;AAAA,IACR,GAAG,2BAAAA,QAAY,QAAQ,KAAK,YAAY;AAAA,EAC1C;AACF;;;ADrBO,IAAM,SAA8B,CAAC,GAAG,0BAAAE,QAAU,WAAW;","names":["reactPlugin","reactHooksPlugin","xyConfig"]}
@@ -6,13 +6,13 @@ import reactPlugin from "eslint-plugin-react";
6
6
  import reactHooksPlugin from "eslint-plugin-react-hooks";
7
7
  var reactConfig = {
8
8
  plugins: {
9
- react: reactPlugin,
9
+ ...reactPlugin.configs.flat.recommended.plugins,
10
10
  "react-hooks": reactHooksPlugin
11
11
  },
12
12
  files: ["*.tsx"],
13
13
  rules: {
14
- ...reactPlugin.configs.recommended.rules,
15
- ...reactHooksPlugin.configs.recommended.rules,
14
+ ...reactPlugin.configs.flat.recommended.rules,
15
+ "react-hooks/rules-of-hooks": "error",
16
16
  "import/no-nodejs-modules": ["error"],
17
17
  "react-hooks/exhaustive-deps": [
18
18
  "warn",
@@ -24,9 +24,7 @@ var reactConfig = {
24
24
  "react/react-in-jsx-scope": ["warn"]
25
25
  },
26
26
  settings: {
27
- react: {
28
- version: "detect"
29
- }
27
+ ...reactPlugin.configs.flat.recommended.settings
30
28
  }
31
29
  };
32
30
 
@@ -1 +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.js'\n\nexport const config: Linter.FlatConfig[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.js'\n","import { Linter } from 'eslint'\nimport reactPlugin from 'eslint-plugin-react'\nimport reactHooksPlugin from 'eslint-plugin-react-hooks'\n\nexport const reactConfig: Linter.FlatConfig = {\n plugins: {\n react: reactPlugin,\n 'react-hooks': reactHooksPlugin,\n },\n files: ['*.tsx'],\n rules: {\n ...reactPlugin.configs.recommended.rules,\n ...reactHooksPlugin.configs.recommended.rules,\n 'import/no-nodejs-modules': ['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 react: {\n version: 'detect',\n },\n },\n}\n"],"mappings":";AAAA,SAAS,UAAU,gBAAgB;;;ACCnC,OAAO,iBAAiB;AACxB,OAAO,sBAAsB;AAEtB,IAAM,cAAiC;AAAA,EAC5C,SAAS;AAAA,IACP,OAAO;AAAA,IACP,eAAe;AAAA,EACjB;AAAA,EACA,OAAO,CAAC,OAAO;AAAA,EACf,OAAO;AAAA,IACL,GAAG,YAAY,QAAQ,YAAY;AAAA,IACnC,GAAG,iBAAiB,QAAQ,YAAY;AAAA,IACxC,4BAA4B,CAAC,OAAO;AAAA,IACpC,+BAA+B;AAAA,MAC7B;AAAA,MACA;AAAA,QACE,iBAAiB;AAAA,MACnB;AAAA,IACF;AAAA,IACA,oBAAoB,CAAC,KAAK;AAAA,IAC1B,4BAA4B,CAAC,MAAM;AAAA,EACrC;AAAA,EACA,UAAU;AAAA,IACR,OAAO;AAAA,MACL,SAAS;AAAA,IACX;AAAA,EACF;AACF;;;ADvBO,IAAM,SAA8B,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 { Linter } from 'eslint'\n\nimport { reactConfig } from './react/index.js'\n\nexport const config: Linter.FlatConfig[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.js'\n","import { Linter } from 'eslint'\nimport reactPlugin from 'eslint-plugin-react'\nimport reactHooksPlugin from 'eslint-plugin-react-hooks'\n\nexport const reactConfig: Linter.FlatConfig = {\n plugins: {\n ...reactPlugin.configs.flat.recommended.plugins,\n 'react-hooks': reactHooksPlugin,\n },\n files: ['*.tsx'],\n rules: {\n ...reactPlugin.configs.flat.recommended.rules,\n 'react-hooks/rules-of-hooks': 'error',\n 'import/no-nodejs-modules': ['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 },\n}\n"],"mappings":";AAAA,SAAS,UAAU,gBAAgB;;;ACCnC,OAAO,iBAAiB;AACxB,OAAO,sBAAsB;AAEtB,IAAM,cAAiC;AAAA,EAC5C,SAAS;AAAA,IACP,GAAG,YAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,eAAe;AAAA,EACjB;AAAA,EACA,OAAO,CAAC,OAAO;AAAA,EACf,OAAO;AAAA,IACL,GAAG,YAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,8BAA8B;AAAA,IAC9B,4BAA4B,CAAC,OAAO;AAAA,IACpC,+BAA+B;AAAA,MAC7B;AAAA,MACA;AAAA,QACE,iBAAiB;AAAA,MACnB;AAAA,IACF;AAAA,IACA,oBAAoB,CAAC,KAAK;AAAA,IAC1B,4BAA4B,CAAC,MAAM;AAAA,EACrC;AAAA,EACA,UAAU;AAAA,IACR,GAAG,YAAY,QAAQ,KAAK,YAAY;AAAA,EAC1C;AACF;;;ADrBO,IAAM,SAA8B,CAAC,GAAG,UAAU,WAAW;","names":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UAwBhC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UAsBhC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UAwBhC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UAsBhC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UAwBhC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UAsBhC,CAAA"}
package/package.json CHANGED
@@ -10,14 +10,14 @@
10
10
  "url": "https://github.com/xylabs/eslint-config/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xylabs/eslint-config-flat": "^3.13.5",
13
+ "@xylabs/eslint-config-flat": "^3.13.7",
14
14
  "eslint-plugin-react": "^7.34.4",
15
15
  "eslint-plugin-react-hooks": "^4.6.2"
16
16
  },
17
17
  "description": "ESLint Config used throughout XY Labs TypeScript/JavaScript libraries and react projects",
18
18
  "devDependencies": {
19
- "@xylabs/ts-scripts-yarn3": "^3.13.5",
20
- "@xylabs/tsconfig": "^3.13.5",
19
+ "@xylabs/ts-scripts-yarn3": "^3.13.7",
20
+ "@xylabs/tsconfig": "^3.13.7",
21
21
  "eslint": "^9.7.0",
22
22
  "typescript": "^5.5.3"
23
23
  },
@@ -61,6 +61,6 @@
61
61
  "url": "https://github.com/xylabs/config.git"
62
62
  },
63
63
  "sideEffects": false,
64
- "version": "3.13.5",
64
+ "version": "3.13.7",
65
65
  "type": "module"
66
66
  }
@@ -4,13 +4,13 @@ import reactHooksPlugin from 'eslint-plugin-react-hooks'
4
4
 
5
5
  export const reactConfig: Linter.FlatConfig = {
6
6
  plugins: {
7
- react: reactPlugin,
7
+ ...reactPlugin.configs.flat.recommended.plugins,
8
8
  'react-hooks': reactHooksPlugin,
9
9
  },
10
10
  files: ['*.tsx'],
11
11
  rules: {
12
- ...reactPlugin.configs.recommended.rules,
13
- ...reactHooksPlugin.configs.recommended.rules,
12
+ ...reactPlugin.configs.flat.recommended.rules,
13
+ 'react-hooks/rules-of-hooks': 'error',
14
14
  'import/no-nodejs-modules': ['error'],
15
15
  'react-hooks/exhaustive-deps': [
16
16
  'warn',
@@ -22,8 +22,6 @@ export const reactConfig: Linter.FlatConfig = {
22
22
  'react/react-in-jsx-scope': ['warn'],
23
23
  },
24
24
  settings: {
25
- react: {
26
- version: 'detect',
27
- },
25
+ ...reactPlugin.configs.flat.recommended.settings,
28
26
  },
29
27
  }