@labeg/code-style 5.4.0 → 5.5.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.
- package/eslint.config.js +5 -4
- package/package.json +1 -1
package/eslint.config.js
CHANGED
|
@@ -3,7 +3,7 @@ import js from "@eslint/js";
|
|
|
3
3
|
import tseslint from "typescript-eslint";
|
|
4
4
|
import stylistic from "@stylistic/eslint-plugin";
|
|
5
5
|
import reactPlugin from "eslint-plugin-react";
|
|
6
|
-
import reactHooks from
|
|
6
|
+
import reactHooks from "eslint-plugin-react-hooks";
|
|
7
7
|
import jsxA11y from "eslint-plugin-jsx-a11y";
|
|
8
8
|
import globals from "globals";
|
|
9
9
|
|
|
@@ -27,11 +27,11 @@ export default [
|
|
|
27
27
|
reactPlugin.configs.flat.all,
|
|
28
28
|
jsxA11y.flatConfigs.strict,
|
|
29
29
|
|
|
30
|
-
{ //
|
|
30
|
+
{ // Don't support flat config yet
|
|
31
31
|
plugins: {
|
|
32
|
-
|
|
32
|
+
"react-hooks": reactHooks
|
|
33
33
|
},
|
|
34
|
-
rules: reactHooks.configs.recommended.rules
|
|
34
|
+
rules: reactHooks.configs.recommended.rules
|
|
35
35
|
},
|
|
36
36
|
|
|
37
37
|
...tseslint.config({
|
|
@@ -80,6 +80,7 @@ export default [
|
|
|
80
80
|
/**
|
|
81
81
|
* Eslint rules
|
|
82
82
|
*/
|
|
83
|
+
"no-magic-numbers": "off", // Conflict with void 0
|
|
83
84
|
"sort-imports": "off", // Need found sorter
|
|
84
85
|
"sort-keys": "off", // More nice
|
|
85
86
|
"one-var": ["error", "never"], // More nice
|