@xylabs/eslint-config-react-flat 3.13.8 → 3.14.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.
@@ -38,14 +38,14 @@ 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
47
45
  },
48
- files: ["**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"],
46
+ files: [
47
+ "**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"
48
+ ],
49
49
  languageOptions: {
50
50
  ...import_eslint_plugin_react.default.configs.flat.recommended.languageOptions,
51
51
  globals: {
@@ -55,21 +55,31 @@ var reactConfig = {
55
55
  },
56
56
  rules: {
57
57
  ...import_eslint_plugin_react.default.configs.flat.recommended.rules,
58
- "react-hooks/rules-of-hooks": "error",
59
- "react-hooks/exhaustive-deps": [
60
- "warn",
58
+ /*'react-hooks/rules-of-hooks': 'error',
59
+ 'react-hooks/exhaustive-deps': [
60
+ 'warn',
61
61
  {
62
- additionalHooks: "(useAsyncEffect|usePromise)"
63
- }
62
+ additionalHooks: '(useAsyncEffect|usePromise)',
63
+ },
64
+ ],*/
65
+ "react/prop-types": [
66
+ "off"
64
67
  ],
65
- "react/prop-types": ["off"],
66
- "react/react-in-jsx-scope": ["warn"]
68
+ "react/react-in-jsx-scope": [
69
+ "warn"
70
+ ]
67
71
  },
68
72
  settings: {
69
- ...import_eslint_plugin_react.default.configs.flat.recommended.settings
73
+ ...import_eslint_plugin_react.default.configs.flat.recommended.settings,
74
+ react: {
75
+ version: "detect"
76
+ }
70
77
  }
71
78
  };
72
79
 
73
80
  // src/index.ts
74
- var config = [...import_eslint_config_flat.config, reactConfig];
81
+ var config = [
82
+ ...import_eslint_config_flat.config,
83
+ reactConfig
84
+ ];
75
85
  //# sourceMappingURL=index.cjs.map
@@ -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;;;;;;gCAAmC;;;ACCnC,iCAAwB;AAExB,qBAAoB;AAEb,IAAMA,cAAiC;EAC5CC,SAAS;IACPC,OAAOC,2BAAAA;EAET;EACAC,OAAO;IAAC;;EACRC,iBAAiB;IACf,GAAGF,2BAAAA,QAAYG,QAAQC,KAAKC,YAAYH;IACxCI,SAAS;MACP,GAAGA,eAAAA,QAAQC;MACX,GAAGD,eAAAA,QAAQE;IACb;EACF;EACAC,OAAO;IACL,GAAGT,2BAAAA,QAAYG,QAAQC,KAAKC,YAAYI;;;;;;;;IAQxC,oBAAoB;MAAC;;IACrB,4BAA4B;MAAC;;EAC/B;EACAC,UAAU;IACR,GAAGV,2BAAAA,QAAYG,QAAQC,KAAKC,YAAYK;IACxCX,OAAO;MACLY,SAAS;IACX;EACF;AACF;;;AD/BO,IAAMC,SAA8B;KAAIC,0BAAAA;EAAUC;;","names":["reactConfig","plugins","react","reactPlugin","files","languageOptions","configs","flat","recommended","globals","serviceworker","browser","rules","settings","version","config","xyConfig","reactConfig"]}
@@ -3,14 +3,14 @@ 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
12
10
  },
13
- files: ["**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"],
11
+ files: [
12
+ "**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"
13
+ ],
14
14
  languageOptions: {
15
15
  ...reactPlugin.configs.flat.recommended.languageOptions,
16
16
  globals: {
@@ -20,23 +20,33 @@ var reactConfig = {
20
20
  },
21
21
  rules: {
22
22
  ...reactPlugin.configs.flat.recommended.rules,
23
- "react-hooks/rules-of-hooks": "error",
24
- "react-hooks/exhaustive-deps": [
25
- "warn",
23
+ /*'react-hooks/rules-of-hooks': 'error',
24
+ 'react-hooks/exhaustive-deps': [
25
+ 'warn',
26
26
  {
27
- additionalHooks: "(useAsyncEffect|usePromise)"
28
- }
27
+ additionalHooks: '(useAsyncEffect|usePromise)',
28
+ },
29
+ ],*/
30
+ "react/prop-types": [
31
+ "off"
29
32
  ],
30
- "react/prop-types": ["off"],
31
- "react/react-in-jsx-scope": ["warn"]
33
+ "react/react-in-jsx-scope": [
34
+ "warn"
35
+ ]
32
36
  },
33
37
  settings: {
34
- ...reactPlugin.configs.flat.recommended.settings
38
+ ...reactPlugin.configs.flat.recommended.settings,
39
+ react: {
40
+ version: "detect"
41
+ }
35
42
  }
36
43
  };
37
44
 
38
45
  // src/index.ts
39
- var config = [...xyConfig, reactConfig];
46
+ var config = [
47
+ ...xyConfig,
48
+ reactConfig
49
+ ];
40
50
  export {
41
51
  config,
42
52
  reactConfig
@@ -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,SAASA,UAAUC,gBAAgB;;;ACCnC,OAAOC,iBAAiB;AAExB,OAAOC,aAAa;AAEb,IAAMC,cAAiC;EAC5CC,SAAS;IACPC,OAAOJ;EAET;EACAK,OAAO;IAAC;;EACRC,iBAAiB;IACf,GAAGN,YAAYO,QAAQC,KAAKC,YAAYH;IACxCL,SAAS;MACP,GAAGA,QAAQS;MACX,GAAGT,QAAQU;IACb;EACF;EACAC,OAAO;IACL,GAAGZ,YAAYO,QAAQC,KAAKC,YAAYG;;;;;;;;IAQxC,oBAAoB;MAAC;;IACrB,4BAA4B;MAAC;;EAC/B;EACAC,UAAU;IACR,GAAGb,YAAYO,QAAQC,KAAKC,YAAYI;IACxCT,OAAO;MACLU,SAAS;IACX;EACF;AACF;;;AD/BO,IAAMC,SAA8B;KAAIC;EAAUC;;","names":["config","xyConfig","reactPlugin","globals","reactConfig","plugins","react","files","languageOptions","configs","flat","recommended","serviceworker","browser","rules","settings","version","config","xyConfig","reactConfig"]}
@@ -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,14 +38,14 @@ 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
47
45
  },
48
- files: ["**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"],
46
+ files: [
47
+ "**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"
48
+ ],
49
49
  languageOptions: {
50
50
  ...import_eslint_plugin_react.default.configs.flat.recommended.languageOptions,
51
51
  globals: {
@@ -55,23 +55,33 @@ var reactConfig = {
55
55
  },
56
56
  rules: {
57
57
  ...import_eslint_plugin_react.default.configs.flat.recommended.rules,
58
- "react-hooks/rules-of-hooks": "error",
59
- "react-hooks/exhaustive-deps": [
60
- "warn",
58
+ /*'react-hooks/rules-of-hooks': 'error',
59
+ 'react-hooks/exhaustive-deps': [
60
+ 'warn',
61
61
  {
62
- additionalHooks: "(useAsyncEffect|usePromise)"
63
- }
62
+ additionalHooks: '(useAsyncEffect|usePromise)',
63
+ },
64
+ ],*/
65
+ "react/prop-types": [
66
+ "off"
64
67
  ],
65
- "react/prop-types": ["off"],
66
- "react/react-in-jsx-scope": ["warn"]
68
+ "react/react-in-jsx-scope": [
69
+ "warn"
70
+ ]
67
71
  },
68
72
  settings: {
69
- ...import_eslint_plugin_react.default.configs.flat.recommended.settings
73
+ ...import_eslint_plugin_react.default.configs.flat.recommended.settings,
74
+ react: {
75
+ version: "detect"
76
+ }
70
77
  }
71
78
  };
72
79
 
73
80
  // src/index.ts
74
- var config = [...import_eslint_config_flat.config, reactConfig];
81
+ var config = [
82
+ ...import_eslint_config_flat.config,
83
+ reactConfig
84
+ ];
75
85
  // Annotate the CommonJS export names for ESM import in node:
76
86
  0 && (module.exports = {
77
87
  config,
@@ -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;;;;;;gCAAmC;;;ACCnC,iCAAwB;AAExB,qBAAoB;AAEb,IAAMA,cAAiC;EAC5CC,SAAS;IACPC,OAAOC,2BAAAA;EAET;EACAC,OAAO;IAAC;;EACRC,iBAAiB;IACf,GAAGF,2BAAAA,QAAYG,QAAQC,KAAKC,YAAYH;IACxCI,SAAS;MACP,GAAGA,eAAAA,QAAQC;MACX,GAAGD,eAAAA,QAAQE;IACb;EACF;EACAC,OAAO;IACL,GAAGT,2BAAAA,QAAYG,QAAQC,KAAKC,YAAYI;;;;;;;;IAQxC,oBAAoB;MAAC;;IACrB,4BAA4B;MAAC;;EAC/B;EACAC,UAAU;IACR,GAAGV,2BAAAA,QAAYG,QAAQC,KAAKC,YAAYK;IACxCX,OAAO;MACLY,SAAS;IACX;EACF;AACF;;;AD/BO,IAAMC,SAA8B;KAAIC,0BAAAA;EAAUC;;","names":["reactConfig","plugins","react","reactPlugin","files","languageOptions","configs","flat","recommended","globals","serviceworker","browser","rules","settings","version","config","xyConfig","reactConfig"]}
@@ -3,14 +3,14 @@ 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
12
10
  },
13
- files: ["**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"],
11
+ files: [
12
+ "**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"
13
+ ],
14
14
  languageOptions: {
15
15
  ...reactPlugin.configs.flat.recommended.languageOptions,
16
16
  globals: {
@@ -20,23 +20,33 @@ var reactConfig = {
20
20
  },
21
21
  rules: {
22
22
  ...reactPlugin.configs.flat.recommended.rules,
23
- "react-hooks/rules-of-hooks": "error",
24
- "react-hooks/exhaustive-deps": [
25
- "warn",
23
+ /*'react-hooks/rules-of-hooks': 'error',
24
+ 'react-hooks/exhaustive-deps': [
25
+ 'warn',
26
26
  {
27
- additionalHooks: "(useAsyncEffect|usePromise)"
28
- }
27
+ additionalHooks: '(useAsyncEffect|usePromise)',
28
+ },
29
+ ],*/
30
+ "react/prop-types": [
31
+ "off"
29
32
  ],
30
- "react/prop-types": ["off"],
31
- "react/react-in-jsx-scope": ["warn"]
33
+ "react/react-in-jsx-scope": [
34
+ "warn"
35
+ ]
32
36
  },
33
37
  settings: {
34
- ...reactPlugin.configs.flat.recommended.settings
38
+ ...reactPlugin.configs.flat.recommended.settings,
39
+ react: {
40
+ version: "detect"
41
+ }
35
42
  }
36
43
  };
37
44
 
38
45
  // src/index.ts
39
- var config = [...xyConfig, reactConfig];
46
+ var config = [
47
+ ...xyConfig,
48
+ reactConfig
49
+ ];
40
50
  export {
41
51
  config,
42
52
  reactConfig
@@ -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,SAASA,UAAUC,gBAAgB;;;ACCnC,OAAOC,iBAAiB;AAExB,OAAOC,aAAa;AAEb,IAAMC,cAAiC;EAC5CC,SAAS;IACPC,OAAOJ;EAET;EACAK,OAAO;IAAC;;EACRC,iBAAiB;IACf,GAAGN,YAAYO,QAAQC,KAAKC,YAAYH;IACxCL,SAAS;MACP,GAAGA,QAAQS;MACX,GAAGT,QAAQU;IACb;EACF;EACAC,OAAO;IACL,GAAGZ,YAAYO,QAAQC,KAAKC,YAAYG;;;;;;;;IAQxC,oBAAoB;MAAC;;IACrB,4BAA4B;MAAC;;EAC/B;EACAC,UAAU;IACR,GAAGb,YAAYO,QAAQC,KAAKC,YAAYI;IACxCT,OAAO;MACLU,SAAS;IACX;EACF;AACF;;;AD/BO,IAAMC,SAA8B;KAAIC;EAAUC;;","names":["config","xyConfig","reactPlugin","globals","reactConfig","plugins","react","files","languageOptions","configs","flat","recommended","serviceworker","browser","rules","settings","version","config","xyConfig","reactConfig"]}
@@ -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.14.0",
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.14.0",
21
+ "@xylabs/tsconfig": "^3.14.0",
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.14.0",
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
  }