@xylabs/eslint-config-react-flat 3.13.9 → 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.
@@ -42,9 +42,10 @@ var import_globals = __toESM(require("globals"), 1);
42
42
  var reactConfig = {
43
43
  plugins: {
44
44
  react: import_eslint_plugin_react.default
45
- //'react-hooks': reactHooksPlugin,
46
45
  },
47
- files: ["**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"],
46
+ files: [
47
+ "**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"
48
+ ],
48
49
  languageOptions: {
49
50
  ...import_eslint_plugin_react.default.configs.flat.recommended.languageOptions,
50
51
  globals: {
@@ -61,8 +62,12 @@ var reactConfig = {
61
62
  additionalHooks: '(useAsyncEffect|usePromise)',
62
63
  },
63
64
  ],*/
64
- "react/prop-types": ["off"],
65
- "react/react-in-jsx-scope": ["warn"]
65
+ "react/prop-types": [
66
+ "off"
67
+ ],
68
+ "react/react-in-jsx-scope": [
69
+ "warn"
70
+ ]
66
71
  },
67
72
  settings: {
68
73
  ...import_eslint_plugin_react.default.configs.flat.recommended.settings,
@@ -73,5 +78,8 @@ var reactConfig = {
73
78
  };
74
79
 
75
80
  // src/index.ts
76
- var config = [...import_eslint_config_flat.config, reactConfig];
81
+ var config = [
82
+ ...import_eslint_config_flat.config,
83
+ reactConfig
84
+ ];
77
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'\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"]}
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"]}
@@ -7,9 +7,10 @@ import globals from "globals";
7
7
  var reactConfig = {
8
8
  plugins: {
9
9
  react: reactPlugin
10
- //'react-hooks': reactHooksPlugin,
11
10
  },
12
- files: ["**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"],
11
+ files: [
12
+ "**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"
13
+ ],
13
14
  languageOptions: {
14
15
  ...reactPlugin.configs.flat.recommended.languageOptions,
15
16
  globals: {
@@ -26,8 +27,12 @@ var reactConfig = {
26
27
  additionalHooks: '(useAsyncEffect|usePromise)',
27
28
  },
28
29
  ],*/
29
- "react/prop-types": ["off"],
30
- "react/react-in-jsx-scope": ["warn"]
30
+ "react/prop-types": [
31
+ "off"
32
+ ],
33
+ "react/react-in-jsx-scope": [
34
+ "warn"
35
+ ]
31
36
  },
32
37
  settings: {
33
38
  ...reactPlugin.configs.flat.recommended.settings,
@@ -38,7 +43,10 @@ var reactConfig = {
38
43
  };
39
44
 
40
45
  // src/index.ts
41
- var config = [...xyConfig, reactConfig];
46
+ var config = [
47
+ ...xyConfig,
48
+ reactConfig
49
+ ];
42
50
  export {
43
51
  config,
44
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'\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
+ {"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"]}
@@ -42,9 +42,10 @@ var import_globals = __toESM(require("globals"), 1);
42
42
  var reactConfig = {
43
43
  plugins: {
44
44
  react: import_eslint_plugin_react.default
45
- //'react-hooks': reactHooksPlugin,
46
45
  },
47
- files: ["**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"],
46
+ files: [
47
+ "**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"
48
+ ],
48
49
  languageOptions: {
49
50
  ...import_eslint_plugin_react.default.configs.flat.recommended.languageOptions,
50
51
  globals: {
@@ -61,8 +62,12 @@ var reactConfig = {
61
62
  additionalHooks: '(useAsyncEffect|usePromise)',
62
63
  },
63
64
  ],*/
64
- "react/prop-types": ["off"],
65
- "react/react-in-jsx-scope": ["warn"]
65
+ "react/prop-types": [
66
+ "off"
67
+ ],
68
+ "react/react-in-jsx-scope": [
69
+ "warn"
70
+ ]
66
71
  },
67
72
  settings: {
68
73
  ...import_eslint_plugin_react.default.configs.flat.recommended.settings,
@@ -73,7 +78,10 @@ var reactConfig = {
73
78
  };
74
79
 
75
80
  // src/index.ts
76
- var config = [...import_eslint_config_flat.config, reactConfig];
81
+ var config = [
82
+ ...import_eslint_config_flat.config,
83
+ reactConfig
84
+ ];
77
85
  // Annotate the CommonJS export names for ESM import in node:
78
86
  0 && (module.exports = {
79
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'\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"]}
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"]}
@@ -7,9 +7,10 @@ import globals from "globals";
7
7
  var reactConfig = {
8
8
  plugins: {
9
9
  react: reactPlugin
10
- //'react-hooks': reactHooksPlugin,
11
10
  },
12
- files: ["**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"],
11
+ files: [
12
+ "**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"
13
+ ],
13
14
  languageOptions: {
14
15
  ...reactPlugin.configs.flat.recommended.languageOptions,
15
16
  globals: {
@@ -26,8 +27,12 @@ var reactConfig = {
26
27
  additionalHooks: '(useAsyncEffect|usePromise)',
27
28
  },
28
29
  ],*/
29
- "react/prop-types": ["off"],
30
- "react/react-in-jsx-scope": ["warn"]
30
+ "react/prop-types": [
31
+ "off"
32
+ ],
33
+ "react/react-in-jsx-scope": [
34
+ "warn"
35
+ ]
31
36
  },
32
37
  settings: {
33
38
  ...reactPlugin.configs.flat.recommended.settings,
@@ -38,7 +43,10 @@ var reactConfig = {
38
43
  };
39
44
 
40
45
  // src/index.ts
41
- var config = [...xyConfig, reactConfig];
46
+ var config = [
47
+ ...xyConfig,
48
+ reactConfig
49
+ ];
42
50
  export {
43
51
  config,
44
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'\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
+ {"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"]}
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.9",
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.9",
21
- "@xylabs/tsconfig": "^3.13.9",
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.9",
65
+ "version": "3.14.0",
66
66
  "type": "module"
67
67
  }