@10stars/config 13.0.9 → 13.1.1
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.ts +7 -0
- package/package.json +2 -1
package/eslint.config.ts
CHANGED
|
@@ -7,6 +7,7 @@ import eslintConfigPrettier from "eslint-config-prettier"
|
|
|
7
7
|
import importPlugin from "eslint-plugin-import"
|
|
8
8
|
import noRelativeImportPaths from "eslint-plugin-no-relative-import-paths"
|
|
9
9
|
import reactPlugin from "eslint-plugin-react"
|
|
10
|
+
import reactHooksConfigurable from "eslint-plugin-react-hooks-configurable"
|
|
10
11
|
import * as regexpPlugin from "eslint-plugin-regexp"
|
|
11
12
|
import simpleImportSort from "eslint-plugin-simple-import-sort"
|
|
12
13
|
import tseslint from "typescript-eslint"
|
|
@@ -101,6 +102,11 @@ const addPluginReact = () =>
|
|
|
101
102
|
},
|
|
102
103
|
] satisfies Linter.Config[]
|
|
103
104
|
|
|
105
|
+
const addPluginReactHooksConfigurable = () =>
|
|
106
|
+
({
|
|
107
|
+
plugins: { "react-hooks-configurable": reactHooksConfigurable },
|
|
108
|
+
}) satisfies Linter.Config
|
|
109
|
+
|
|
104
110
|
const addPluginImport = () =>
|
|
105
111
|
[
|
|
106
112
|
importPlugin.flatConfigs.recommended,
|
|
@@ -158,6 +164,7 @@ export default tseslint.config(
|
|
|
158
164
|
...addPluginRegexp(),
|
|
159
165
|
addPluginNoRelativeImportPaths(),
|
|
160
166
|
...addPluginReact(),
|
|
167
|
+
addPluginReactHooksConfigurable(),
|
|
161
168
|
...addPluginImport(),
|
|
162
169
|
addPluginSimpleImportSort(),
|
|
163
170
|
addPluginStylistic(),
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"name": "@10stars/config",
|
|
7
|
-
"version": "13.
|
|
7
|
+
"version": "13.1.1",
|
|
8
8
|
"author": "10stars.dev <web@alexandrov.co> (https://alexandrov.co)",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"bin": {
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"eslint-plugin-import": "^2.0.0",
|
|
39
39
|
"eslint-plugin-no-relative-import-paths": "^1.5.4",
|
|
40
40
|
"eslint-plugin-react": "^7.0.0",
|
|
41
|
+
"eslint-plugin-react-hooks-configurable": "5.1.0",
|
|
41
42
|
"eslint-plugin-regexp": "^2.0.0",
|
|
42
43
|
"eslint-plugin-simple-import-sort": "^12.0.0",
|
|
43
44
|
"globals": "^16.0.0",
|