@xylabs/eslint-config-react-flat 3.15.10 → 3.15.11

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.
@@ -39,10 +39,12 @@ var import_eslint_config_flat = require("@xylabs/eslint-config-flat");
39
39
  // src/react/index.ts
40
40
  var import_parser = __toESM(require("@typescript-eslint/parser"), 1);
41
41
  var import_eslint_plugin_react = __toESM(require("eslint-plugin-react"), 1);
42
+ var import_eslint_plugin_react_hooks = __toESM(require("eslint-plugin-react-hooks"), 1);
42
43
  var import_globals = __toESM(require("globals"), 1);
43
44
  var reactConfig = {
44
45
  plugins: {
45
- react: import_eslint_plugin_react.default
46
+ "react": import_eslint_plugin_react.default,
47
+ "react-hooks": import_eslint_plugin_react_hooks.default
46
48
  },
47
49
  files: [
48
50
  "**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"
@@ -64,13 +66,13 @@ var reactConfig = {
64
66
  },
65
67
  rules: {
66
68
  ...import_eslint_plugin_react.default.configs.flat.recommended.rules,
67
- /* 'react-hooks/rules-of-hooks': 'error',
68
- 'react-hooks/exhaustive-deps': [
69
- 'warn',
69
+ "react-hooks/rules-of-hooks": "error",
70
+ "react-hooks/exhaustive-deps": [
71
+ "warn",
70
72
  {
71
- additionalHooks: '(useAsyncEffect|usePromise)',
72
- },
73
- ], */
73
+ additionalHooks: "(useAsyncEffect|usePromise)"
74
+ }
75
+ ],
74
76
  "react/prop-types": [
75
77
  "off"
76
78
  ],
@@ -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.ts'\n\nexport const config: Linter.Config[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.ts'\n","import tsParser from '@typescript-eslint/parser'\nimport { 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.Config = {\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 parser: tsParser,\n parserOptions: {\n ecmaFeatures: { modules: true },\n ecmaVersion: 'latest',\n project: './tsconfig-eslint.json',\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;;;ACAnC,oBAAqB;AAErB,iCAAwB;AAExB,qBAAoB;AAEb,IAAMA,cAA6B;EACxCC,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;IACAC,QAAQC,cAAAA;IACRC,eAAe;MACbC,cAAc;QAAEC,SAAS;MAAK;MAC9BC,aAAa;MACbC,SAAS;IACX;EACF;EACAC,OAAO;IACL,GAAGhB,2BAAAA,QAAYG,QAAQC,KAAKC,YAAYW;;;;;;;;IAQxC,oBAAoB;MAAC;;IACrB,4BAA4B;MAAC;;EAC/B;EACAC,UAAU;IACR,GAAGjB,2BAAAA,QAAYG,QAAQC,KAAKC,YAAYY;IACxClB,OAAO;MACLmB,SAAS;IACX;EACF;AACF;;;ADtCO,IAAMC,SAA0B;KAAIC,0BAAAA;EAAUC;;","names":["reactConfig","plugins","react","reactPlugin","files","languageOptions","configs","flat","recommended","globals","serviceworker","browser","parser","tsParser","parserOptions","ecmaFeatures","modules","ecmaVersion","project","rules","settings","version","config","xyConfig","reactConfig"]}
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.ts'\n\nexport const config: Linter.Config[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.ts'\n","import tsParser from '@typescript-eslint/parser'\nimport { 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.Config = {\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 parser: tsParser,\n parserOptions: {\n ecmaFeatures: { modules: true },\n ecmaVersion: 'latest',\n project: './tsconfig-eslint.json',\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;;;ACAnC,oBAAqB;AAErB,iCAAwB;AACxB,uCAA6B;AAC7B,qBAAoB;AAEb,IAAMA,cAA6B;EACxCC,SAAS;IACP,SAASC,2BAAAA;IACT,eAAeC,iCAAAA;EACjB;EACAC,OAAO;IAAC;;EACRC,iBAAiB;IACf,GAAGH,2BAAAA,QAAYI,QAAQC,KAAKC,YAAYH;IACxCI,SAAS;MACP,GAAGA,eAAAA,QAAQC;MACX,GAAGD,eAAAA,QAAQE;IACb;IACAC,QAAQC,cAAAA;IACRC,eAAe;MACbC,cAAc;QAAEC,SAAS;MAAK;MAC9BC,aAAa;MACbC,SAAS;IACX;EACF;EACAC,OAAO;IACL,GAAGjB,2BAAAA,QAAYI,QAAQC,KAAKC,YAAYW;IACxC,8BAA8B;IAC9B,+BAA+B;MAC7B;MACA;QACEC,iBAAiB;MACnB;;IAEF,oBAAoB;MAAC;;IACrB,4BAA4B;MAAC;;EAC/B;EACAC,UAAU;IACR,GAAGnB,2BAAAA,QAAYI,QAAQC,KAAKC,YAAYa;IACxCC,OAAO;MACLC,SAAS;IACX;EACF;AACF;;;ADtCO,IAAMC,SAA0B;KAAIC,0BAAAA;EAAUC;;","names":["reactConfig","plugins","reactPlugin","reactHooksPlugin","files","languageOptions","configs","flat","recommended","globals","serviceworker","browser","parser","tsParser","parserOptions","ecmaFeatures","modules","ecmaVersion","project","rules","additionalHooks","settings","react","version","config","xyConfig","reactConfig"]}
@@ -4,10 +4,12 @@ import { config as xyConfig } from "@xylabs/eslint-config-flat";
4
4
  // src/react/index.ts
5
5
  import tsParser from "@typescript-eslint/parser";
6
6
  import reactPlugin from "eslint-plugin-react";
7
+ import reactHooksPlugin from "eslint-plugin-react-hooks";
7
8
  import globals from "globals";
8
9
  var reactConfig = {
9
10
  plugins: {
10
- react: reactPlugin
11
+ "react": reactPlugin,
12
+ "react-hooks": reactHooksPlugin
11
13
  },
12
14
  files: [
13
15
  "**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"
@@ -29,13 +31,13 @@ var reactConfig = {
29
31
  },
30
32
  rules: {
31
33
  ...reactPlugin.configs.flat.recommended.rules,
32
- /* 'react-hooks/rules-of-hooks': 'error',
33
- 'react-hooks/exhaustive-deps': [
34
- 'warn',
34
+ "react-hooks/rules-of-hooks": "error",
35
+ "react-hooks/exhaustive-deps": [
36
+ "warn",
35
37
  {
36
- additionalHooks: '(useAsyncEffect|usePromise)',
37
- },
38
- ], */
38
+ additionalHooks: "(useAsyncEffect|usePromise)"
39
+ }
40
+ ],
39
41
  "react/prop-types": [
40
42
  "off"
41
43
  ],
@@ -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.ts'\n\nexport const config: Linter.Config[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.ts'\n","import tsParser from '@typescript-eslint/parser'\nimport { 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.Config = {\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 parser: tsParser,\n parserOptions: {\n ecmaFeatures: { modules: true },\n ecmaVersion: 'latest',\n project: './tsconfig-eslint.json',\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;;;ACAnC,OAAOC,cAAc;AAErB,OAAOC,iBAAiB;AAExB,OAAOC,aAAa;AAEb,IAAMC,cAA6B;EACxCC,SAAS;IACPC,OAAOJ;EAET;EACAK,OAAO;IAAC;;EACRC,iBAAiB;IACf,GAAGN,YAAYO,QAAQC,KAAKC,YAAYH;IACxCL,SAAS;MACP,GAAGA,QAAQS;MACX,GAAGT,QAAQU;IACb;IACAC,QAAQb;IACRc,eAAe;MACbC,cAAc;QAAEC,SAAS;MAAK;MAC9BC,aAAa;MACbC,SAAS;IACX;EACF;EACAC,OAAO;IACL,GAAGlB,YAAYO,QAAQC,KAAKC,YAAYS;;;;;;;;IAQxC,oBAAoB;MAAC;;IACrB,4BAA4B;MAAC;;EAC/B;EACAC,UAAU;IACR,GAAGnB,YAAYO,QAAQC,KAAKC,YAAYU;IACxCf,OAAO;MACLgB,SAAS;IACX;EACF;AACF;;;ADtCO,IAAMC,SAA0B;KAAIC;EAAUC;;","names":["config","xyConfig","tsParser","reactPlugin","globals","reactConfig","plugins","react","files","languageOptions","configs","flat","recommended","serviceworker","browser","parser","parserOptions","ecmaFeatures","modules","ecmaVersion","project","rules","settings","version","config","xyConfig","reactConfig"]}
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.ts'\n\nexport const config: Linter.Config[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.ts'\n","import tsParser from '@typescript-eslint/parser'\nimport { 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.Config = {\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 parser: tsParser,\n parserOptions: {\n ecmaFeatures: { modules: true },\n ecmaVersion: 'latest',\n project: './tsconfig-eslint.json',\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;;;ACAnC,OAAOC,cAAc;AAErB,OAAOC,iBAAiB;AACxB,OAAOC,sBAAsB;AAC7B,OAAOC,aAAa;AAEb,IAAMC,cAA6B;EACxCC,SAAS;IACP,SAASJ;IACT,eAAeC;EACjB;EACAI,OAAO;IAAC;;EACRC,iBAAiB;IACf,GAAGN,YAAYO,QAAQC,KAAKC,YAAYH;IACxCJ,SAAS;MACP,GAAGA,QAAQQ;MACX,GAAGR,QAAQS;IACb;IACAC,QAAQb;IACRc,eAAe;MACbC,cAAc;QAAEC,SAAS;MAAK;MAC9BC,aAAa;MACbC,SAAS;IACX;EACF;EACAC,OAAO;IACL,GAAGlB,YAAYO,QAAQC,KAAKC,YAAYS;IACxC,8BAA8B;IAC9B,+BAA+B;MAC7B;MACA;QACEC,iBAAiB;MACnB;;IAEF,oBAAoB;MAAC;;IACrB,4BAA4B;MAAC;;EAC/B;EACAC,UAAU;IACR,GAAGpB,YAAYO,QAAQC,KAAKC,YAAYW;IACxCC,OAAO;MACLC,SAAS;IACX;EACF;AACF;;;ADtCO,IAAMC,SAA0B;KAAIC;EAAUC;;","names":["config","xyConfig","tsParser","reactPlugin","reactHooksPlugin","globals","reactConfig","plugins","files","languageOptions","configs","flat","recommended","serviceworker","browser","parser","parserOptions","ecmaFeatures","modules","ecmaVersion","project","rules","additionalHooks","settings","react","version","config","xyConfig","reactConfig"]}
@@ -39,10 +39,12 @@ var import_eslint_config_flat = require("@xylabs/eslint-config-flat");
39
39
  // src/react/index.ts
40
40
  var import_parser = __toESM(require("@typescript-eslint/parser"), 1);
41
41
  var import_eslint_plugin_react = __toESM(require("eslint-plugin-react"), 1);
42
+ var import_eslint_plugin_react_hooks = __toESM(require("eslint-plugin-react-hooks"), 1);
42
43
  var import_globals = __toESM(require("globals"), 1);
43
44
  var reactConfig = {
44
45
  plugins: {
45
- react: import_eslint_plugin_react.default
46
+ "react": import_eslint_plugin_react.default,
47
+ "react-hooks": import_eslint_plugin_react_hooks.default
46
48
  },
47
49
  files: [
48
50
  "**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"
@@ -64,13 +66,13 @@ var reactConfig = {
64
66
  },
65
67
  rules: {
66
68
  ...import_eslint_plugin_react.default.configs.flat.recommended.rules,
67
- /* 'react-hooks/rules-of-hooks': 'error',
68
- 'react-hooks/exhaustive-deps': [
69
- 'warn',
69
+ "react-hooks/rules-of-hooks": "error",
70
+ "react-hooks/exhaustive-deps": [
71
+ "warn",
70
72
  {
71
- additionalHooks: '(useAsyncEffect|usePromise)',
72
- },
73
- ], */
73
+ additionalHooks: "(useAsyncEffect|usePromise)"
74
+ }
75
+ ],
74
76
  "react/prop-types": [
75
77
  "off"
76
78
  ],
@@ -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.ts'\n\nexport const config: Linter.Config[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.ts'\n","import tsParser from '@typescript-eslint/parser'\nimport { 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.Config = {\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 parser: tsParser,\n parserOptions: {\n ecmaFeatures: { modules: true },\n ecmaVersion: 'latest',\n project: './tsconfig-eslint.json',\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;;;ACAnC,oBAAqB;AAErB,iCAAwB;AAExB,qBAAoB;AAEb,IAAMA,cAA6B;EACxCC,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;IACAC,QAAQC,cAAAA;IACRC,eAAe;MACbC,cAAc;QAAEC,SAAS;MAAK;MAC9BC,aAAa;MACbC,SAAS;IACX;EACF;EACAC,OAAO;IACL,GAAGhB,2BAAAA,QAAYG,QAAQC,KAAKC,YAAYW;;;;;;;;IAQxC,oBAAoB;MAAC;;IACrB,4BAA4B;MAAC;;EAC/B;EACAC,UAAU;IACR,GAAGjB,2BAAAA,QAAYG,QAAQC,KAAKC,YAAYY;IACxClB,OAAO;MACLmB,SAAS;IACX;EACF;AACF;;;ADtCO,IAAMC,SAA0B;KAAIC,0BAAAA;EAAUC;;","names":["reactConfig","plugins","react","reactPlugin","files","languageOptions","configs","flat","recommended","globals","serviceworker","browser","parser","tsParser","parserOptions","ecmaFeatures","modules","ecmaVersion","project","rules","settings","version","config","xyConfig","reactConfig"]}
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.ts'\n\nexport const config: Linter.Config[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.ts'\n","import tsParser from '@typescript-eslint/parser'\nimport { 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.Config = {\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 parser: tsParser,\n parserOptions: {\n ecmaFeatures: { modules: true },\n ecmaVersion: 'latest',\n project: './tsconfig-eslint.json',\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;;;ACAnC,oBAAqB;AAErB,iCAAwB;AACxB,uCAA6B;AAC7B,qBAAoB;AAEb,IAAMA,cAA6B;EACxCC,SAAS;IACP,SAASC,2BAAAA;IACT,eAAeC,iCAAAA;EACjB;EACAC,OAAO;IAAC;;EACRC,iBAAiB;IACf,GAAGH,2BAAAA,QAAYI,QAAQC,KAAKC,YAAYH;IACxCI,SAAS;MACP,GAAGA,eAAAA,QAAQC;MACX,GAAGD,eAAAA,QAAQE;IACb;IACAC,QAAQC,cAAAA;IACRC,eAAe;MACbC,cAAc;QAAEC,SAAS;MAAK;MAC9BC,aAAa;MACbC,SAAS;IACX;EACF;EACAC,OAAO;IACL,GAAGjB,2BAAAA,QAAYI,QAAQC,KAAKC,YAAYW;IACxC,8BAA8B;IAC9B,+BAA+B;MAC7B;MACA;QACEC,iBAAiB;MACnB;;IAEF,oBAAoB;MAAC;;IACrB,4BAA4B;MAAC;;EAC/B;EACAC,UAAU;IACR,GAAGnB,2BAAAA,QAAYI,QAAQC,KAAKC,YAAYa;IACxCC,OAAO;MACLC,SAAS;IACX;EACF;AACF;;;ADtCO,IAAMC,SAA0B;KAAIC,0BAAAA;EAAUC;;","names":["reactConfig","plugins","reactPlugin","reactHooksPlugin","files","languageOptions","configs","flat","recommended","globals","serviceworker","browser","parser","tsParser","parserOptions","ecmaFeatures","modules","ecmaVersion","project","rules","additionalHooks","settings","react","version","config","xyConfig","reactConfig"]}
@@ -4,10 +4,12 @@ import { config as xyConfig } from "@xylabs/eslint-config-flat";
4
4
  // src/react/index.ts
5
5
  import tsParser from "@typescript-eslint/parser";
6
6
  import reactPlugin from "eslint-plugin-react";
7
+ import reactHooksPlugin from "eslint-plugin-react-hooks";
7
8
  import globals from "globals";
8
9
  var reactConfig = {
9
10
  plugins: {
10
- react: reactPlugin
11
+ "react": reactPlugin,
12
+ "react-hooks": reactHooksPlugin
11
13
  },
12
14
  files: [
13
15
  "**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"
@@ -29,13 +31,13 @@ var reactConfig = {
29
31
  },
30
32
  rules: {
31
33
  ...reactPlugin.configs.flat.recommended.rules,
32
- /* 'react-hooks/rules-of-hooks': 'error',
33
- 'react-hooks/exhaustive-deps': [
34
- 'warn',
34
+ "react-hooks/rules-of-hooks": "error",
35
+ "react-hooks/exhaustive-deps": [
36
+ "warn",
35
37
  {
36
- additionalHooks: '(useAsyncEffect|usePromise)',
37
- },
38
- ], */
38
+ additionalHooks: "(useAsyncEffect|usePromise)"
39
+ }
40
+ ],
39
41
  "react/prop-types": [
40
42
  "off"
41
43
  ],
@@ -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.ts'\n\nexport const config: Linter.Config[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.ts'\n","import tsParser from '@typescript-eslint/parser'\nimport { 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.Config = {\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 parser: tsParser,\n parserOptions: {\n ecmaFeatures: { modules: true },\n ecmaVersion: 'latest',\n project: './tsconfig-eslint.json',\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;;;ACAnC,OAAOC,cAAc;AAErB,OAAOC,iBAAiB;AAExB,OAAOC,aAAa;AAEb,IAAMC,cAA6B;EACxCC,SAAS;IACPC,OAAOJ;EAET;EACAK,OAAO;IAAC;;EACRC,iBAAiB;IACf,GAAGN,YAAYO,QAAQC,KAAKC,YAAYH;IACxCL,SAAS;MACP,GAAGA,QAAQS;MACX,GAAGT,QAAQU;IACb;IACAC,QAAQb;IACRc,eAAe;MACbC,cAAc;QAAEC,SAAS;MAAK;MAC9BC,aAAa;MACbC,SAAS;IACX;EACF;EACAC,OAAO;IACL,GAAGlB,YAAYO,QAAQC,KAAKC,YAAYS;;;;;;;;IAQxC,oBAAoB;MAAC;;IACrB,4BAA4B;MAAC;;EAC/B;EACAC,UAAU;IACR,GAAGnB,YAAYO,QAAQC,KAAKC,YAAYU;IACxCf,OAAO;MACLgB,SAAS;IACX;EACF;AACF;;;ADtCO,IAAMC,SAA0B;KAAIC;EAAUC;;","names":["config","xyConfig","tsParser","reactPlugin","globals","reactConfig","plugins","react","files","languageOptions","configs","flat","recommended","serviceworker","browser","parser","parserOptions","ecmaFeatures","modules","ecmaVersion","project","rules","settings","version","config","xyConfig","reactConfig"]}
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.ts'\n\nexport const config: Linter.Config[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.ts'\n","import tsParser from '@typescript-eslint/parser'\nimport { 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.Config = {\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 parser: tsParser,\n parserOptions: {\n ecmaFeatures: { modules: true },\n ecmaVersion: 'latest',\n project: './tsconfig-eslint.json',\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;;;ACAnC,OAAOC,cAAc;AAErB,OAAOC,iBAAiB;AACxB,OAAOC,sBAAsB;AAC7B,OAAOC,aAAa;AAEb,IAAMC,cAA6B;EACxCC,SAAS;IACP,SAASJ;IACT,eAAeC;EACjB;EACAI,OAAO;IAAC;;EACRC,iBAAiB;IACf,GAAGN,YAAYO,QAAQC,KAAKC,YAAYH;IACxCJ,SAAS;MACP,GAAGA,QAAQQ;MACX,GAAGR,QAAQS;IACb;IACAC,QAAQb;IACRc,eAAe;MACbC,cAAc;QAAEC,SAAS;MAAK;MAC9BC,aAAa;MACbC,SAAS;IACX;EACF;EACAC,OAAO;IACL,GAAGlB,YAAYO,QAAQC,KAAKC,YAAYS;IACxC,8BAA8B;IAC9B,+BAA+B;MAC7B;MACA;QACEC,iBAAiB;MACnB;;IAEF,oBAAoB;MAAC;;IACrB,4BAA4B;MAAC;;EAC/B;EACAC,UAAU;IACR,GAAGpB,YAAYO,QAAQC,KAAKC,YAAYW;IACxCC,OAAO;MACLC,SAAS;IACX;EACF;AACF;;;ADtCO,IAAMC,SAA0B;KAAIC;EAAUC;;","names":["config","xyConfig","tsParser","reactPlugin","reactHooksPlugin","globals","reactConfig","plugins","files","languageOptions","configs","flat","recommended","serviceworker","browser","parser","parserOptions","ecmaFeatures","modules","ecmaVersion","project","rules","additionalHooks","settings","react","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.15.10",
13
+ "@xylabs/eslint-config-flat": "^3.15.11",
14
14
  "eslint-plugin-react": "^7.35.0",
15
15
  "eslint-plugin-react-hooks": "^4.6.2",
16
16
  "globals": "^15.9.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.15.10",
21
- "@xylabs/tsconfig": "^3.15.10",
20
+ "@xylabs/ts-scripts-yarn3": "^3.15.11",
21
+ "@xylabs/tsconfig": "^3.15.11",
22
22
  "eslint": "^9.8.0",
23
23
  "typescript": "^5.5.4"
24
24
  },
@@ -62,6 +62,6 @@
62
62
  "url": "https://github.com/xylabs/config.git"
63
63
  },
64
64
  "sideEffects": false,
65
- "version": "3.15.10",
65
+ "version": "3.15.11",
66
66
  "type": "module"
67
67
  }
@@ -1,13 +1,13 @@
1
1
  import tsParser from '@typescript-eslint/parser'
2
2
  import { Linter } from 'eslint'
3
3
  import reactPlugin from 'eslint-plugin-react'
4
- // import reactHooksPlugin from 'eslint-plugin-react-hooks'
4
+ import reactHooksPlugin from 'eslint-plugin-react-hooks'
5
5
  import globals from 'globals'
6
6
 
7
7
  export const reactConfig: Linter.Config = {
8
8
  plugins: {
9
- react: reactPlugin,
10
- // 'react-hooks': reactHooksPlugin,
9
+ 'react': reactPlugin,
10
+ 'react-hooks': reactHooksPlugin,
11
11
  },
12
12
  files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],
13
13
  languageOptions: {
@@ -25,13 +25,13 @@ export const reactConfig: Linter.Config = {
25
25
  },
26
26
  rules: {
27
27
  ...reactPlugin.configs.flat.recommended.rules,
28
- /* 'react-hooks/rules-of-hooks': 'error',
28
+ 'react-hooks/rules-of-hooks': 'error',
29
29
  'react-hooks/exhaustive-deps': [
30
30
  'warn',
31
31
  {
32
32
  additionalHooks: '(useAsyncEffect|usePromise)',
33
33
  },
34
- ], */
34
+ ],
35
35
  'react/prop-types': ['off'],
36
36
  'react/react-in-jsx-scope': ['warn'],
37
37
  },