@xylabs/eslint-config-react-flat 3.13.6 → 3.13.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/neutral/index.cjs +3 -4
- package/dist/neutral/index.cjs.map +1 -1
- package/dist/neutral/index.js +3 -4
- package/dist/neutral/index.js.map +1 -1
- package/dist/neutral/react/index.d.cts.map +1 -1
- package/dist/neutral/react/index.d.mts.map +1 -1
- package/dist/neutral/react/index.d.ts.map +1 -1
- package/dist/node/index.cjs +3 -4
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.js +3 -4
- package/dist/node/index.js.map +1 -1
- package/dist/node/react/index.d.cts.map +1 -1
- package/dist/node/react/index.d.mts.map +1 -1
- package/dist/node/react/index.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/react/index.ts +2 -3
package/dist/neutral/index.cjs
CHANGED
|
@@ -42,12 +42,12 @@ var import_eslint_plugin_react_hooks = __toESM(require("eslint-plugin-react-hook
|
|
|
42
42
|
var reactConfig = {
|
|
43
43
|
plugins: {
|
|
44
44
|
...import_eslint_plugin_react.default.configs.flat.recommended.plugins,
|
|
45
|
-
|
|
45
|
+
"react-hooks": import_eslint_plugin_react_hooks.default
|
|
46
46
|
},
|
|
47
47
|
files: ["*.tsx"],
|
|
48
48
|
rules: {
|
|
49
49
|
...import_eslint_plugin_react.default.configs.flat.recommended.rules,
|
|
50
|
-
|
|
50
|
+
"react-hooks/rules-of-hooks": "error",
|
|
51
51
|
"import/no-nodejs-modules": ["error"],
|
|
52
52
|
"react-hooks/exhaustive-deps": [
|
|
53
53
|
"warn",
|
|
@@ -59,8 +59,7 @@ var reactConfig = {
|
|
|
59
59
|
"react/react-in-jsx-scope": ["warn"]
|
|
60
60
|
},
|
|
61
61
|
settings: {
|
|
62
|
-
...import_eslint_plugin_react.default.configs.flat.recommended.settings
|
|
63
|
-
...import_eslint_plugin_react_hooks.default.configs.flat.recommended.settings
|
|
62
|
+
...import_eslint_plugin_react.default.configs.flat.recommended.settings
|
|
64
63
|
}
|
|
65
64
|
};
|
|
66
65
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/react/index.ts"],"sourcesContent":["import { config as xyConfig } from '@xylabs/eslint-config-flat'\nimport { Linter } from 'eslint'\n\nimport { reactConfig } from './react/index.js'\n\nexport const config: Linter.FlatConfig[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.js'\n","import { Linter } from 'eslint'\nimport reactPlugin from 'eslint-plugin-react'\nimport reactHooksPlugin from 'eslint-plugin-react-hooks'\n\nexport const reactConfig: Linter.FlatConfig = {\n plugins: {\n ...reactPlugin.configs.flat.recommended.plugins,\n
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/react/index.ts"],"sourcesContent":["import { config as xyConfig } from '@xylabs/eslint-config-flat'\nimport { Linter } from 'eslint'\n\nimport { reactConfig } from './react/index.js'\n\nexport const config: Linter.FlatConfig[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.js'\n","import { Linter } from 'eslint'\nimport reactPlugin from 'eslint-plugin-react'\nimport reactHooksPlugin from 'eslint-plugin-react-hooks'\n\nexport const reactConfig: Linter.FlatConfig = {\n plugins: {\n ...reactPlugin.configs.flat.recommended.plugins,\n 'react-hooks': reactHooksPlugin,\n },\n files: ['*.tsx'],\n rules: {\n ...reactPlugin.configs.flat.recommended.rules,\n 'react-hooks/rules-of-hooks': 'error',\n 'import/no-nodejs-modules': ['error'],\n 'react-hooks/exhaustive-deps': [\n 'warn',\n {\n additionalHooks: '(useAsyncEffect|usePromise)',\n },\n ],\n 'react/prop-types': ['off'],\n 'react/react-in-jsx-scope': ['warn'],\n },\n settings: {\n ...reactPlugin.configs.flat.recommended.settings,\n },\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gCAAmC;;;ACCnC,iCAAwB;AACxB,uCAA6B;AAEtB,IAAM,cAAiC;AAAA,EAC5C,SAAS;AAAA,IACP,GAAG,2BAAAA,QAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,eAAe,iCAAAC;AAAA,EACjB;AAAA,EACA,OAAO,CAAC,OAAO;AAAA,EACf,OAAO;AAAA,IACL,GAAG,2BAAAD,QAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,8BAA8B;AAAA,IAC9B,4BAA4B,CAAC,OAAO;AAAA,IACpC,+BAA+B;AAAA,MAC7B;AAAA,MACA;AAAA,QACE,iBAAiB;AAAA,MACnB;AAAA,IACF;AAAA,IACA,oBAAoB,CAAC,KAAK;AAAA,IAC1B,4BAA4B,CAAC,MAAM;AAAA,EACrC;AAAA,EACA,UAAU;AAAA,IACR,GAAG,2BAAAA,QAAY,QAAQ,KAAK,YAAY;AAAA,EAC1C;AACF;;;ADrBO,IAAM,SAA8B,CAAC,GAAG,0BAAAE,QAAU,WAAW;","names":["reactPlugin","reactHooksPlugin","xyConfig"]}
|
package/dist/neutral/index.js
CHANGED
|
@@ -7,12 +7,12 @@ import reactHooksPlugin from "eslint-plugin-react-hooks";
|
|
|
7
7
|
var reactConfig = {
|
|
8
8
|
plugins: {
|
|
9
9
|
...reactPlugin.configs.flat.recommended.plugins,
|
|
10
|
-
|
|
10
|
+
"react-hooks": reactHooksPlugin
|
|
11
11
|
},
|
|
12
12
|
files: ["*.tsx"],
|
|
13
13
|
rules: {
|
|
14
14
|
...reactPlugin.configs.flat.recommended.rules,
|
|
15
|
-
|
|
15
|
+
"react-hooks/rules-of-hooks": "error",
|
|
16
16
|
"import/no-nodejs-modules": ["error"],
|
|
17
17
|
"react-hooks/exhaustive-deps": [
|
|
18
18
|
"warn",
|
|
@@ -24,8 +24,7 @@ var reactConfig = {
|
|
|
24
24
|
"react/react-in-jsx-scope": ["warn"]
|
|
25
25
|
},
|
|
26
26
|
settings: {
|
|
27
|
-
...reactPlugin.configs.flat.recommended.settings
|
|
28
|
-
...reactHooksPlugin.configs.flat.recommended.settings
|
|
27
|
+
...reactPlugin.configs.flat.recommended.settings
|
|
29
28
|
}
|
|
30
29
|
};
|
|
31
30
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/react/index.ts"],"sourcesContent":["import { config as xyConfig } from '@xylabs/eslint-config-flat'\nimport { Linter } from 'eslint'\n\nimport { reactConfig } from './react/index.js'\n\nexport const config: Linter.FlatConfig[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.js'\n","import { Linter } from 'eslint'\nimport reactPlugin from 'eslint-plugin-react'\nimport reactHooksPlugin from 'eslint-plugin-react-hooks'\n\nexport const reactConfig: Linter.FlatConfig = {\n plugins: {\n ...reactPlugin.configs.flat.recommended.plugins,\n
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/react/index.ts"],"sourcesContent":["import { config as xyConfig } from '@xylabs/eslint-config-flat'\nimport { Linter } from 'eslint'\n\nimport { reactConfig } from './react/index.js'\n\nexport const config: Linter.FlatConfig[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.js'\n","import { Linter } from 'eslint'\nimport reactPlugin from 'eslint-plugin-react'\nimport reactHooksPlugin from 'eslint-plugin-react-hooks'\n\nexport const reactConfig: Linter.FlatConfig = {\n plugins: {\n ...reactPlugin.configs.flat.recommended.plugins,\n 'react-hooks': reactHooksPlugin,\n },\n files: ['*.tsx'],\n rules: {\n ...reactPlugin.configs.flat.recommended.rules,\n 'react-hooks/rules-of-hooks': 'error',\n 'import/no-nodejs-modules': ['error'],\n 'react-hooks/exhaustive-deps': [\n 'warn',\n {\n additionalHooks: '(useAsyncEffect|usePromise)',\n },\n ],\n 'react/prop-types': ['off'],\n 'react/react-in-jsx-scope': ['warn'],\n },\n settings: {\n ...reactPlugin.configs.flat.recommended.settings,\n },\n}\n"],"mappings":";AAAA,SAAS,UAAU,gBAAgB;;;ACCnC,OAAO,iBAAiB;AACxB,OAAO,sBAAsB;AAEtB,IAAM,cAAiC;AAAA,EAC5C,SAAS;AAAA,IACP,GAAG,YAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,eAAe;AAAA,EACjB;AAAA,EACA,OAAO,CAAC,OAAO;AAAA,EACf,OAAO;AAAA,IACL,GAAG,YAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,8BAA8B;AAAA,IAC9B,4BAA4B,CAAC,OAAO;AAAA,IACpC,+BAA+B;AAAA,MAC7B;AAAA,MACA;AAAA,QACE,iBAAiB;AAAA,MACnB;AAAA,IACF;AAAA,IACA,oBAAoB,CAAC,KAAK;AAAA,IAC1B,4BAA4B,CAAC,MAAM;AAAA,EACrC;AAAA,EACA,UAAU;AAAA,IACR,GAAG,YAAY,QAAQ,KAAK,YAAY;AAAA,EAC1C;AACF;;;ADrBO,IAAM,SAA8B,CAAC,GAAG,UAAU,WAAW;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UAsBhC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UAsBhC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UAsBhC,CAAA"}
|
package/dist/node/index.cjs
CHANGED
|
@@ -42,12 +42,12 @@ var import_eslint_plugin_react_hooks = __toESM(require("eslint-plugin-react-hook
|
|
|
42
42
|
var reactConfig = {
|
|
43
43
|
plugins: {
|
|
44
44
|
...import_eslint_plugin_react.default.configs.flat.recommended.plugins,
|
|
45
|
-
|
|
45
|
+
"react-hooks": import_eslint_plugin_react_hooks.default
|
|
46
46
|
},
|
|
47
47
|
files: ["*.tsx"],
|
|
48
48
|
rules: {
|
|
49
49
|
...import_eslint_plugin_react.default.configs.flat.recommended.rules,
|
|
50
|
-
|
|
50
|
+
"react-hooks/rules-of-hooks": "error",
|
|
51
51
|
"import/no-nodejs-modules": ["error"],
|
|
52
52
|
"react-hooks/exhaustive-deps": [
|
|
53
53
|
"warn",
|
|
@@ -59,8 +59,7 @@ var reactConfig = {
|
|
|
59
59
|
"react/react-in-jsx-scope": ["warn"]
|
|
60
60
|
},
|
|
61
61
|
settings: {
|
|
62
|
-
...import_eslint_plugin_react.default.configs.flat.recommended.settings
|
|
63
|
-
...import_eslint_plugin_react_hooks.default.configs.flat.recommended.settings
|
|
62
|
+
...import_eslint_plugin_react.default.configs.flat.recommended.settings
|
|
64
63
|
}
|
|
65
64
|
};
|
|
66
65
|
|
package/dist/node/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/react/index.ts"],"sourcesContent":["import { config as xyConfig } from '@xylabs/eslint-config-flat'\nimport { Linter } from 'eslint'\n\nimport { reactConfig } from './react/index.js'\n\nexport const config: Linter.FlatConfig[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.js'\n","import { Linter } from 'eslint'\nimport reactPlugin from 'eslint-plugin-react'\nimport reactHooksPlugin from 'eslint-plugin-react-hooks'\n\nexport const reactConfig: Linter.FlatConfig = {\n plugins: {\n ...reactPlugin.configs.flat.recommended.plugins,\n
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/react/index.ts"],"sourcesContent":["import { config as xyConfig } from '@xylabs/eslint-config-flat'\nimport { Linter } from 'eslint'\n\nimport { reactConfig } from './react/index.js'\n\nexport const config: Linter.FlatConfig[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.js'\n","import { Linter } from 'eslint'\nimport reactPlugin from 'eslint-plugin-react'\nimport reactHooksPlugin from 'eslint-plugin-react-hooks'\n\nexport const reactConfig: Linter.FlatConfig = {\n plugins: {\n ...reactPlugin.configs.flat.recommended.plugins,\n 'react-hooks': reactHooksPlugin,\n },\n files: ['*.tsx'],\n rules: {\n ...reactPlugin.configs.flat.recommended.rules,\n 'react-hooks/rules-of-hooks': 'error',\n 'import/no-nodejs-modules': ['error'],\n 'react-hooks/exhaustive-deps': [\n 'warn',\n {\n additionalHooks: '(useAsyncEffect|usePromise)',\n },\n ],\n 'react/prop-types': ['off'],\n 'react/react-in-jsx-scope': ['warn'],\n },\n settings: {\n ...reactPlugin.configs.flat.recommended.settings,\n },\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gCAAmC;;;ACCnC,iCAAwB;AACxB,uCAA6B;AAEtB,IAAM,cAAiC;AAAA,EAC5C,SAAS;AAAA,IACP,GAAG,2BAAAA,QAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,eAAe,iCAAAC;AAAA,EACjB;AAAA,EACA,OAAO,CAAC,OAAO;AAAA,EACf,OAAO;AAAA,IACL,GAAG,2BAAAD,QAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,8BAA8B;AAAA,IAC9B,4BAA4B,CAAC,OAAO;AAAA,IACpC,+BAA+B;AAAA,MAC7B;AAAA,MACA;AAAA,QACE,iBAAiB;AAAA,MACnB;AAAA,IACF;AAAA,IACA,oBAAoB,CAAC,KAAK;AAAA,IAC1B,4BAA4B,CAAC,MAAM;AAAA,EACrC;AAAA,EACA,UAAU;AAAA,IACR,GAAG,2BAAAA,QAAY,QAAQ,KAAK,YAAY;AAAA,EAC1C;AACF;;;ADrBO,IAAM,SAA8B,CAAC,GAAG,0BAAAE,QAAU,WAAW;","names":["reactPlugin","reactHooksPlugin","xyConfig"]}
|
package/dist/node/index.js
CHANGED
|
@@ -7,12 +7,12 @@ import reactHooksPlugin from "eslint-plugin-react-hooks";
|
|
|
7
7
|
var reactConfig = {
|
|
8
8
|
plugins: {
|
|
9
9
|
...reactPlugin.configs.flat.recommended.plugins,
|
|
10
|
-
|
|
10
|
+
"react-hooks": reactHooksPlugin
|
|
11
11
|
},
|
|
12
12
|
files: ["*.tsx"],
|
|
13
13
|
rules: {
|
|
14
14
|
...reactPlugin.configs.flat.recommended.rules,
|
|
15
|
-
|
|
15
|
+
"react-hooks/rules-of-hooks": "error",
|
|
16
16
|
"import/no-nodejs-modules": ["error"],
|
|
17
17
|
"react-hooks/exhaustive-deps": [
|
|
18
18
|
"warn",
|
|
@@ -24,8 +24,7 @@ var reactConfig = {
|
|
|
24
24
|
"react/react-in-jsx-scope": ["warn"]
|
|
25
25
|
},
|
|
26
26
|
settings: {
|
|
27
|
-
...reactPlugin.configs.flat.recommended.settings
|
|
28
|
-
...reactHooksPlugin.configs.flat.recommended.settings
|
|
27
|
+
...reactPlugin.configs.flat.recommended.settings
|
|
29
28
|
}
|
|
30
29
|
};
|
|
31
30
|
|
package/dist/node/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/react/index.ts"],"sourcesContent":["import { config as xyConfig } from '@xylabs/eslint-config-flat'\nimport { Linter } from 'eslint'\n\nimport { reactConfig } from './react/index.js'\n\nexport const config: Linter.FlatConfig[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.js'\n","import { Linter } from 'eslint'\nimport reactPlugin from 'eslint-plugin-react'\nimport reactHooksPlugin from 'eslint-plugin-react-hooks'\n\nexport const reactConfig: Linter.FlatConfig = {\n plugins: {\n ...reactPlugin.configs.flat.recommended.plugins,\n
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/react/index.ts"],"sourcesContent":["import { config as xyConfig } from '@xylabs/eslint-config-flat'\nimport { Linter } from 'eslint'\n\nimport { reactConfig } from './react/index.js'\n\nexport const config: Linter.FlatConfig[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.js'\n","import { Linter } from 'eslint'\nimport reactPlugin from 'eslint-plugin-react'\nimport reactHooksPlugin from 'eslint-plugin-react-hooks'\n\nexport const reactConfig: Linter.FlatConfig = {\n plugins: {\n ...reactPlugin.configs.flat.recommended.plugins,\n 'react-hooks': reactHooksPlugin,\n },\n files: ['*.tsx'],\n rules: {\n ...reactPlugin.configs.flat.recommended.rules,\n 'react-hooks/rules-of-hooks': 'error',\n 'import/no-nodejs-modules': ['error'],\n 'react-hooks/exhaustive-deps': [\n 'warn',\n {\n additionalHooks: '(useAsyncEffect|usePromise)',\n },\n ],\n 'react/prop-types': ['off'],\n 'react/react-in-jsx-scope': ['warn'],\n },\n settings: {\n ...reactPlugin.configs.flat.recommended.settings,\n },\n}\n"],"mappings":";AAAA,SAAS,UAAU,gBAAgB;;;ACCnC,OAAO,iBAAiB;AACxB,OAAO,sBAAsB;AAEtB,IAAM,cAAiC;AAAA,EAC5C,SAAS;AAAA,IACP,GAAG,YAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,eAAe;AAAA,EACjB;AAAA,EACA,OAAO,CAAC,OAAO;AAAA,EACf,OAAO;AAAA,IACL,GAAG,YAAY,QAAQ,KAAK,YAAY;AAAA,IACxC,8BAA8B;AAAA,IAC9B,4BAA4B,CAAC,OAAO;AAAA,IACpC,+BAA+B;AAAA,MAC7B;AAAA,MACA;AAAA,QACE,iBAAiB;AAAA,MACnB;AAAA,IACF;AAAA,IACA,oBAAoB,CAAC,KAAK;AAAA,IAC1B,4BAA4B,CAAC,MAAM;AAAA,EACrC;AAAA,EACA,UAAU;AAAA,IACR,GAAG,YAAY,QAAQ,KAAK,YAAY;AAAA,EAC1C;AACF;;;ADrBO,IAAM,SAA8B,CAAC,GAAG,UAAU,WAAW;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UAsBhC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UAsBhC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UAsBhC,CAAA"}
|
package/package.json
CHANGED
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
"url": "https://github.com/xylabs/eslint-config/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xylabs/eslint-config-flat": "^3.13.
|
|
13
|
+
"@xylabs/eslint-config-flat": "^3.13.7",
|
|
14
14
|
"eslint-plugin-react": "^7.34.4",
|
|
15
15
|
"eslint-plugin-react-hooks": "^4.6.2"
|
|
16
16
|
},
|
|
17
17
|
"description": "ESLint Config used throughout XY Labs TypeScript/JavaScript libraries and react projects",
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@xylabs/ts-scripts-yarn3": "^3.13.
|
|
20
|
-
"@xylabs/tsconfig": "^3.13.
|
|
19
|
+
"@xylabs/ts-scripts-yarn3": "^3.13.7",
|
|
20
|
+
"@xylabs/tsconfig": "^3.13.7",
|
|
21
21
|
"eslint": "^9.7.0",
|
|
22
22
|
"typescript": "^5.5.3"
|
|
23
23
|
},
|
|
@@ -61,6 +61,6 @@
|
|
|
61
61
|
"url": "https://github.com/xylabs/config.git"
|
|
62
62
|
},
|
|
63
63
|
"sideEffects": false,
|
|
64
|
-
"version": "3.13.
|
|
64
|
+
"version": "3.13.7",
|
|
65
65
|
"type": "module"
|
|
66
66
|
}
|
package/src/react/index.ts
CHANGED
|
@@ -5,12 +5,12 @@ import reactHooksPlugin from 'eslint-plugin-react-hooks'
|
|
|
5
5
|
export const reactConfig: Linter.FlatConfig = {
|
|
6
6
|
plugins: {
|
|
7
7
|
...reactPlugin.configs.flat.recommended.plugins,
|
|
8
|
-
|
|
8
|
+
'react-hooks': reactHooksPlugin,
|
|
9
9
|
},
|
|
10
10
|
files: ['*.tsx'],
|
|
11
11
|
rules: {
|
|
12
12
|
...reactPlugin.configs.flat.recommended.rules,
|
|
13
|
-
|
|
13
|
+
'react-hooks/rules-of-hooks': 'error',
|
|
14
14
|
'import/no-nodejs-modules': ['error'],
|
|
15
15
|
'react-hooks/exhaustive-deps': [
|
|
16
16
|
'warn',
|
|
@@ -23,6 +23,5 @@ export const reactConfig: Linter.FlatConfig = {
|
|
|
23
23
|
},
|
|
24
24
|
settings: {
|
|
25
25
|
...reactPlugin.configs.flat.recommended.settings,
|
|
26
|
-
...reactHooksPlugin.configs.flat.recommended.settings,
|
|
27
26
|
},
|
|
28
27
|
}
|