@xylabs/eslint-config-react-flat 3.13.8 → 3.13.9

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.
@@ -38,12 +38,11 @@ var import_eslint_config_flat = require("@xylabs/eslint-config-flat");
38
38
 
39
39
  // src/react/index.ts
40
40
  var import_eslint_plugin_react = __toESM(require("eslint-plugin-react"), 1);
41
- var import_eslint_plugin_react_hooks = __toESM(require("eslint-plugin-react-hooks"), 1);
42
41
  var import_globals = __toESM(require("globals"), 1);
43
42
  var reactConfig = {
44
43
  plugins: {
45
- react: import_eslint_plugin_react.default,
46
- "react-hooks": import_eslint_plugin_react_hooks.default
44
+ react: import_eslint_plugin_react.default
45
+ //'react-hooks': reactHooksPlugin,
47
46
  },
48
47
  files: ["**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"],
49
48
  languageOptions: {
@@ -55,18 +54,21 @@ var reactConfig = {
55
54
  },
56
55
  rules: {
57
56
  ...import_eslint_plugin_react.default.configs.flat.recommended.rules,
58
- "react-hooks/rules-of-hooks": "error",
59
- "react-hooks/exhaustive-deps": [
60
- "warn",
57
+ /*'react-hooks/rules-of-hooks': 'error',
58
+ 'react-hooks/exhaustive-deps': [
59
+ 'warn',
61
60
  {
62
- additionalHooks: "(useAsyncEffect|usePromise)"
63
- }
64
- ],
61
+ additionalHooks: '(useAsyncEffect|usePromise)',
62
+ },
63
+ ],*/
65
64
  "react/prop-types": ["off"],
66
65
  "react/react-in-jsx-scope": ["warn"]
67
66
  },
68
67
  settings: {
69
- ...import_eslint_plugin_react.default.configs.flat.recommended.settings
68
+ ...import_eslint_plugin_react.default.configs.flat.recommended.settings,
69
+ react: {
70
+ version: "detect"
71
+ }
70
72
  }
71
73
  };
72
74
 
@@ -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'\nimport globals from 'globals'\n\nexport const reactConfig: Linter.FlatConfig = {\n plugins: {\n react: reactPlugin,\n 'react-hooks': reactHooksPlugin,\n },\n files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],\n languageOptions: {\n ...reactPlugin.configs.flat.recommended.languageOptions,\n globals: {\n ...globals.serviceworker,\n ...globals.browser,\n },\n },\n rules: {\n ...reactPlugin.configs.flat.recommended.rules,\n 'react-hooks/rules-of-hooks': '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;AAC7B,qBAAoB;AAEb,IAAM,cAAiC;AAAA,EAC5C,SAAS;AAAA,IACP,OAAO,2BAAAA;AAAA,IACP,eAAe,iCAAAC;AAAA,EACjB;AAAA,EACA,OAAO,CAAC,wCAAwC;AAAA,EAChD,iBAAiB;AAAA,IACf,GAAG,2BAAAD,QAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,SAAS;AAAA,MACP,GAAG,eAAAE,QAAQ;AAAA,MACX,GAAG,eAAAA,QAAQ;AAAA,IACb;AAAA,EACF;AAAA,EACA,OAAO;AAAA,IACL,GAAG,2BAAAF,QAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,8BAA8B;AAAA,IAC9B,+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;;;AD5BO,IAAM,SAA8B,CAAC,GAAG,0BAAAG,QAAU,WAAW;","names":["reactPlugin","reactHooksPlugin","globals","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'\n//import reactHooksPlugin from 'eslint-plugin-react-hooks'\nimport globals from 'globals'\n\nexport const reactConfig: Linter.FlatConfig = {\n plugins: {\n react: reactPlugin,\n //'react-hooks': reactHooksPlugin,\n },\n files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],\n languageOptions: {\n ...reactPlugin.configs.flat.recommended.languageOptions,\n globals: {\n ...globals.serviceworker,\n ...globals.browser,\n },\n },\n rules: {\n ...reactPlugin.configs.flat.recommended.rules,\n /*'react-hooks/rules-of-hooks': '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 react: {\n version: 'detect',\n },\n },\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gCAAmC;;;ACCnC,iCAAwB;AAExB,qBAAoB;AAEb,IAAM,cAAiC;AAAA,EAC5C,SAAS;AAAA,IACP,OAAO,2BAAAA;AAAA;AAAA,EAET;AAAA,EACA,OAAO,CAAC,wCAAwC;AAAA,EAChD,iBAAiB;AAAA,IACf,GAAG,2BAAAA,QAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,SAAS;AAAA,MACP,GAAG,eAAAC,QAAQ;AAAA,MACX,GAAG,eAAAA,QAAQ;AAAA,IACb;AAAA,EACF;AAAA,EACA,OAAO;AAAA,IACL,GAAG,2BAAAD,QAAY,QAAQ,KAAK,YAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQxC,oBAAoB,CAAC,KAAK;AAAA,IAC1B,4BAA4B,CAAC,MAAM;AAAA,EACrC;AAAA,EACA,UAAU;AAAA,IACR,GAAG,2BAAAA,QAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,OAAO;AAAA,MACL,SAAS;AAAA,IACX;AAAA,EACF;AACF;;;AD/BO,IAAM,SAA8B,CAAC,GAAG,0BAAAE,QAAU,WAAW;","names":["reactPlugin","globals","xyConfig"]}
@@ -3,12 +3,11 @@ import { config as xyConfig } from "@xylabs/eslint-config-flat";
3
3
 
4
4
  // src/react/index.ts
5
5
  import reactPlugin from "eslint-plugin-react";
6
- import reactHooksPlugin from "eslint-plugin-react-hooks";
7
6
  import globals from "globals";
8
7
  var reactConfig = {
9
8
  plugins: {
10
- react: reactPlugin,
11
- "react-hooks": reactHooksPlugin
9
+ react: reactPlugin
10
+ //'react-hooks': reactHooksPlugin,
12
11
  },
13
12
  files: ["**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"],
14
13
  languageOptions: {
@@ -20,18 +19,21 @@ var reactConfig = {
20
19
  },
21
20
  rules: {
22
21
  ...reactPlugin.configs.flat.recommended.rules,
23
- "react-hooks/rules-of-hooks": "error",
24
- "react-hooks/exhaustive-deps": [
25
- "warn",
22
+ /*'react-hooks/rules-of-hooks': 'error',
23
+ 'react-hooks/exhaustive-deps': [
24
+ 'warn',
26
25
  {
27
- additionalHooks: "(useAsyncEffect|usePromise)"
28
- }
29
- ],
26
+ additionalHooks: '(useAsyncEffect|usePromise)',
27
+ },
28
+ ],*/
30
29
  "react/prop-types": ["off"],
31
30
  "react/react-in-jsx-scope": ["warn"]
32
31
  },
33
32
  settings: {
34
- ...reactPlugin.configs.flat.recommended.settings
33
+ ...reactPlugin.configs.flat.recommended.settings,
34
+ react: {
35
+ version: "detect"
36
+ }
35
37
  }
36
38
  };
37
39
 
@@ -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'\nimport globals from 'globals'\n\nexport const reactConfig: Linter.FlatConfig = {\n plugins: {\n react: reactPlugin,\n 'react-hooks': reactHooksPlugin,\n },\n files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],\n languageOptions: {\n ...reactPlugin.configs.flat.recommended.languageOptions,\n globals: {\n ...globals.serviceworker,\n ...globals.browser,\n },\n },\n rules: {\n ...reactPlugin.configs.flat.recommended.rules,\n 'react-hooks/rules-of-hooks': '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;AAC7B,OAAO,aAAa;AAEb,IAAM,cAAiC;AAAA,EAC5C,SAAS;AAAA,IACP,OAAO;AAAA,IACP,eAAe;AAAA,EACjB;AAAA,EACA,OAAO,CAAC,wCAAwC;AAAA,EAChD,iBAAiB;AAAA,IACf,GAAG,YAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,SAAS;AAAA,MACP,GAAG,QAAQ;AAAA,MACX,GAAG,QAAQ;AAAA,IACb;AAAA,EACF;AAAA,EACA,OAAO;AAAA,IACL,GAAG,YAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,8BAA8B;AAAA,IAC9B,+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;;;AD5BO,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'\n//import reactHooksPlugin from 'eslint-plugin-react-hooks'\nimport globals from 'globals'\n\nexport const reactConfig: Linter.FlatConfig = {\n plugins: {\n react: reactPlugin,\n //'react-hooks': reactHooksPlugin,\n },\n files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],\n languageOptions: {\n ...reactPlugin.configs.flat.recommended.languageOptions,\n globals: {\n ...globals.serviceworker,\n ...globals.browser,\n },\n },\n rules: {\n ...reactPlugin.configs.flat.recommended.rules,\n /*'react-hooks/rules-of-hooks': '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 react: {\n version: 'detect',\n },\n },\n}\n"],"mappings":";AAAA,SAAS,UAAU,gBAAgB;;;ACCnC,OAAO,iBAAiB;AAExB,OAAO,aAAa;AAEb,IAAM,cAAiC;AAAA,EAC5C,SAAS;AAAA,IACP,OAAO;AAAA;AAAA,EAET;AAAA,EACA,OAAO,CAAC,wCAAwC;AAAA,EAChD,iBAAiB;AAAA,IACf,GAAG,YAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,SAAS;AAAA,MACP,GAAG,QAAQ;AAAA,MACX,GAAG,QAAQ;AAAA,IACb;AAAA,EACF;AAAA,EACA,OAAO;AAAA,IACL,GAAG,YAAY,QAAQ,KAAK,YAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQxC,oBAAoB,CAAC,KAAK;AAAA,IAC1B,4BAA4B,CAAC,MAAM;AAAA,EACrC;AAAA,EACA,UAAU;AAAA,IACR,GAAG,YAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,OAAO;AAAA,MACL,SAAS;AAAA,IACX;AAAA,EACF;AACF;;;AD/BO,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;AAK/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UA4BhC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAK/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UA+BhC,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;AAK/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UA4BhC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAK/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UA+BhC,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;AAK/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UA4BhC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAK/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UA+BhC,CAAA"}
@@ -38,12 +38,11 @@ var import_eslint_config_flat = require("@xylabs/eslint-config-flat");
38
38
 
39
39
  // src/react/index.ts
40
40
  var import_eslint_plugin_react = __toESM(require("eslint-plugin-react"), 1);
41
- var import_eslint_plugin_react_hooks = __toESM(require("eslint-plugin-react-hooks"), 1);
42
41
  var import_globals = __toESM(require("globals"), 1);
43
42
  var reactConfig = {
44
43
  plugins: {
45
- react: import_eslint_plugin_react.default,
46
- "react-hooks": import_eslint_plugin_react_hooks.default
44
+ react: import_eslint_plugin_react.default
45
+ //'react-hooks': reactHooksPlugin,
47
46
  },
48
47
  files: ["**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"],
49
48
  languageOptions: {
@@ -55,18 +54,21 @@ var reactConfig = {
55
54
  },
56
55
  rules: {
57
56
  ...import_eslint_plugin_react.default.configs.flat.recommended.rules,
58
- "react-hooks/rules-of-hooks": "error",
59
- "react-hooks/exhaustive-deps": [
60
- "warn",
57
+ /*'react-hooks/rules-of-hooks': 'error',
58
+ 'react-hooks/exhaustive-deps': [
59
+ 'warn',
61
60
  {
62
- additionalHooks: "(useAsyncEffect|usePromise)"
63
- }
64
- ],
61
+ additionalHooks: '(useAsyncEffect|usePromise)',
62
+ },
63
+ ],*/
65
64
  "react/prop-types": ["off"],
66
65
  "react/react-in-jsx-scope": ["warn"]
67
66
  },
68
67
  settings: {
69
- ...import_eslint_plugin_react.default.configs.flat.recommended.settings
68
+ ...import_eslint_plugin_react.default.configs.flat.recommended.settings,
69
+ react: {
70
+ version: "detect"
71
+ }
70
72
  }
71
73
  };
72
74
 
@@ -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'\nimport globals from 'globals'\n\nexport const reactConfig: Linter.FlatConfig = {\n plugins: {\n react: reactPlugin,\n 'react-hooks': reactHooksPlugin,\n },\n files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],\n languageOptions: {\n ...reactPlugin.configs.flat.recommended.languageOptions,\n globals: {\n ...globals.serviceworker,\n ...globals.browser,\n },\n },\n rules: {\n ...reactPlugin.configs.flat.recommended.rules,\n 'react-hooks/rules-of-hooks': '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;AAC7B,qBAAoB;AAEb,IAAM,cAAiC;AAAA,EAC5C,SAAS;AAAA,IACP,OAAO,2BAAAA;AAAA,IACP,eAAe,iCAAAC;AAAA,EACjB;AAAA,EACA,OAAO,CAAC,wCAAwC;AAAA,EAChD,iBAAiB;AAAA,IACf,GAAG,2BAAAD,QAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,SAAS;AAAA,MACP,GAAG,eAAAE,QAAQ;AAAA,MACX,GAAG,eAAAA,QAAQ;AAAA,IACb;AAAA,EACF;AAAA,EACA,OAAO;AAAA,IACL,GAAG,2BAAAF,QAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,8BAA8B;AAAA,IAC9B,+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;;;AD5BO,IAAM,SAA8B,CAAC,GAAG,0BAAAG,QAAU,WAAW;","names":["reactPlugin","reactHooksPlugin","globals","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'\n//import reactHooksPlugin from 'eslint-plugin-react-hooks'\nimport globals from 'globals'\n\nexport const reactConfig: Linter.FlatConfig = {\n plugins: {\n react: reactPlugin,\n //'react-hooks': reactHooksPlugin,\n },\n files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],\n languageOptions: {\n ...reactPlugin.configs.flat.recommended.languageOptions,\n globals: {\n ...globals.serviceworker,\n ...globals.browser,\n },\n },\n rules: {\n ...reactPlugin.configs.flat.recommended.rules,\n /*'react-hooks/rules-of-hooks': '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 react: {\n version: 'detect',\n },\n },\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gCAAmC;;;ACCnC,iCAAwB;AAExB,qBAAoB;AAEb,IAAM,cAAiC;AAAA,EAC5C,SAAS;AAAA,IACP,OAAO,2BAAAA;AAAA;AAAA,EAET;AAAA,EACA,OAAO,CAAC,wCAAwC;AAAA,EAChD,iBAAiB;AAAA,IACf,GAAG,2BAAAA,QAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,SAAS;AAAA,MACP,GAAG,eAAAC,QAAQ;AAAA,MACX,GAAG,eAAAA,QAAQ;AAAA,IACb;AAAA,EACF;AAAA,EACA,OAAO;AAAA,IACL,GAAG,2BAAAD,QAAY,QAAQ,KAAK,YAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQxC,oBAAoB,CAAC,KAAK;AAAA,IAC1B,4BAA4B,CAAC,MAAM;AAAA,EACrC;AAAA,EACA,UAAU;AAAA,IACR,GAAG,2BAAAA,QAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,OAAO;AAAA,MACL,SAAS;AAAA,IACX;AAAA,EACF;AACF;;;AD/BO,IAAM,SAA8B,CAAC,GAAG,0BAAAE,QAAU,WAAW;","names":["reactPlugin","globals","xyConfig"]}
@@ -3,12 +3,11 @@ import { config as xyConfig } from "@xylabs/eslint-config-flat";
3
3
 
4
4
  // src/react/index.ts
5
5
  import reactPlugin from "eslint-plugin-react";
6
- import reactHooksPlugin from "eslint-plugin-react-hooks";
7
6
  import globals from "globals";
8
7
  var reactConfig = {
9
8
  plugins: {
10
- react: reactPlugin,
11
- "react-hooks": reactHooksPlugin
9
+ react: reactPlugin
10
+ //'react-hooks': reactHooksPlugin,
12
11
  },
13
12
  files: ["**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"],
14
13
  languageOptions: {
@@ -20,18 +19,21 @@ var reactConfig = {
20
19
  },
21
20
  rules: {
22
21
  ...reactPlugin.configs.flat.recommended.rules,
23
- "react-hooks/rules-of-hooks": "error",
24
- "react-hooks/exhaustive-deps": [
25
- "warn",
22
+ /*'react-hooks/rules-of-hooks': 'error',
23
+ 'react-hooks/exhaustive-deps': [
24
+ 'warn',
26
25
  {
27
- additionalHooks: "(useAsyncEffect|usePromise)"
28
- }
29
- ],
26
+ additionalHooks: '(useAsyncEffect|usePromise)',
27
+ },
28
+ ],*/
30
29
  "react/prop-types": ["off"],
31
30
  "react/react-in-jsx-scope": ["warn"]
32
31
  },
33
32
  settings: {
34
- ...reactPlugin.configs.flat.recommended.settings
33
+ ...reactPlugin.configs.flat.recommended.settings,
34
+ react: {
35
+ version: "detect"
36
+ }
35
37
  }
36
38
  };
37
39
 
@@ -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'\nimport globals from 'globals'\n\nexport const reactConfig: Linter.FlatConfig = {\n plugins: {\n react: reactPlugin,\n 'react-hooks': reactHooksPlugin,\n },\n files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],\n languageOptions: {\n ...reactPlugin.configs.flat.recommended.languageOptions,\n globals: {\n ...globals.serviceworker,\n ...globals.browser,\n },\n },\n rules: {\n ...reactPlugin.configs.flat.recommended.rules,\n 'react-hooks/rules-of-hooks': '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;AAC7B,OAAO,aAAa;AAEb,IAAM,cAAiC;AAAA,EAC5C,SAAS;AAAA,IACP,OAAO;AAAA,IACP,eAAe;AAAA,EACjB;AAAA,EACA,OAAO,CAAC,wCAAwC;AAAA,EAChD,iBAAiB;AAAA,IACf,GAAG,YAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,SAAS;AAAA,MACP,GAAG,QAAQ;AAAA,MACX,GAAG,QAAQ;AAAA,IACb;AAAA,EACF;AAAA,EACA,OAAO;AAAA,IACL,GAAG,YAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,8BAA8B;AAAA,IAC9B,+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;;;AD5BO,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'\n//import reactHooksPlugin from 'eslint-plugin-react-hooks'\nimport globals from 'globals'\n\nexport const reactConfig: Linter.FlatConfig = {\n plugins: {\n react: reactPlugin,\n //'react-hooks': reactHooksPlugin,\n },\n files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],\n languageOptions: {\n ...reactPlugin.configs.flat.recommended.languageOptions,\n globals: {\n ...globals.serviceworker,\n ...globals.browser,\n },\n },\n rules: {\n ...reactPlugin.configs.flat.recommended.rules,\n /*'react-hooks/rules-of-hooks': '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 react: {\n version: 'detect',\n },\n },\n}\n"],"mappings":";AAAA,SAAS,UAAU,gBAAgB;;;ACCnC,OAAO,iBAAiB;AAExB,OAAO,aAAa;AAEb,IAAM,cAAiC;AAAA,EAC5C,SAAS;AAAA,IACP,OAAO;AAAA;AAAA,EAET;AAAA,EACA,OAAO,CAAC,wCAAwC;AAAA,EAChD,iBAAiB;AAAA,IACf,GAAG,YAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,SAAS;AAAA,MACP,GAAG,QAAQ;AAAA,MACX,GAAG,QAAQ;AAAA,IACb;AAAA,EACF;AAAA,EACA,OAAO;AAAA,IACL,GAAG,YAAY,QAAQ,KAAK,YAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQxC,oBAAoB,CAAC,KAAK;AAAA,IAC1B,4BAA4B,CAAC,MAAM;AAAA,EACrC;AAAA,EACA,UAAU;AAAA,IACR,GAAG,YAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,OAAO;AAAA,MACL,SAAS;AAAA,IACX;AAAA,EACF;AACF;;;AD/BO,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;AAK/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UA4BhC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAK/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UA+BhC,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;AAK/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UA4BhC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAK/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UA+BhC,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;AAK/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UA4BhC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAK/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UA+BhC,CAAA"}
package/package.json CHANGED
@@ -10,15 +10,15 @@
10
10
  "url": "https://github.com/xylabs/eslint-config/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xylabs/eslint-config-flat": "^3.13.8",
13
+ "@xylabs/eslint-config-flat": "^3.13.9",
14
14
  "eslint-plugin-react": "^7.34.4",
15
15
  "eslint-plugin-react-hooks": "^4.6.2",
16
16
  "globals": "^15.8.0"
17
17
  },
18
18
  "description": "ESLint Config used throughout XY Labs TypeScript/JavaScript libraries and react projects",
19
19
  "devDependencies": {
20
- "@xylabs/ts-scripts-yarn3": "^3.13.8",
21
- "@xylabs/tsconfig": "^3.13.8",
20
+ "@xylabs/ts-scripts-yarn3": "^3.13.9",
21
+ "@xylabs/tsconfig": "^3.13.9",
22
22
  "eslint": "^9.7.0",
23
23
  "typescript": "^5.5.3"
24
24
  },
@@ -62,6 +62,6 @@
62
62
  "url": "https://github.com/xylabs/config.git"
63
63
  },
64
64
  "sideEffects": false,
65
- "version": "3.13.8",
65
+ "version": "3.13.9",
66
66
  "type": "module"
67
67
  }
@@ -1,12 +1,12 @@
1
1
  import { Linter } from 'eslint'
2
2
  import reactPlugin from 'eslint-plugin-react'
3
- import reactHooksPlugin from 'eslint-plugin-react-hooks'
3
+ //import reactHooksPlugin from 'eslint-plugin-react-hooks'
4
4
  import globals from 'globals'
5
5
 
6
6
  export const reactConfig: Linter.FlatConfig = {
7
7
  plugins: {
8
8
  react: reactPlugin,
9
- 'react-hooks': reactHooksPlugin,
9
+ //'react-hooks': reactHooksPlugin,
10
10
  },
11
11
  files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],
12
12
  languageOptions: {
@@ -18,17 +18,20 @@ export const reactConfig: Linter.FlatConfig = {
18
18
  },
19
19
  rules: {
20
20
  ...reactPlugin.configs.flat.recommended.rules,
21
- 'react-hooks/rules-of-hooks': 'error',
21
+ /*'react-hooks/rules-of-hooks': 'error',
22
22
  'react-hooks/exhaustive-deps': [
23
23
  'warn',
24
24
  {
25
25
  additionalHooks: '(useAsyncEffect|usePromise)',
26
26
  },
27
- ],
27
+ ],*/
28
28
  'react/prop-types': ['off'],
29
29
  'react/react-in-jsx-scope': ['warn'],
30
30
  },
31
31
  settings: {
32
32
  ...reactPlugin.configs.flat.recommended.settings,
33
+ react: {
34
+ version: 'detect',
35
+ },
33
36
  },
34
37
  }