@10stars/config 13.1.1 → 13.2.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.ts +5 -11
- package/package.json +3 -4
package/eslint.config.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { builtinModules } from "node:module"
|
|
2
2
|
|
|
3
3
|
import eslint from "@eslint/js"
|
|
4
|
+
import eslintReact from "@eslint-react/eslint-plugin"
|
|
4
5
|
import stylistic from "@stylistic/eslint-plugin"
|
|
5
6
|
import type { Linter } from "eslint"
|
|
6
7
|
import eslintConfigPrettier from "eslint-config-prettier"
|
|
@@ -12,8 +13,6 @@ import * as regexpPlugin from "eslint-plugin-regexp"
|
|
|
12
13
|
import simpleImportSort from "eslint-plugin-simple-import-sort"
|
|
13
14
|
import tseslint from "typescript-eslint"
|
|
14
15
|
|
|
15
|
-
// import 10StarsReactHooks from "@10stars/eslint-plugin-react-hooks";
|
|
16
|
-
|
|
17
16
|
const addPluginRegexp = () =>
|
|
18
17
|
[
|
|
19
18
|
regexpPlugin.configs[`flat/recommended`],
|
|
@@ -105,6 +104,9 @@ const addPluginReact = () =>
|
|
|
105
104
|
const addPluginReactHooksConfigurable = () =>
|
|
106
105
|
({
|
|
107
106
|
plugins: { "react-hooks-configurable": reactHooksConfigurable },
|
|
107
|
+
rules: {
|
|
108
|
+
"react-hooks-configurable/rules-of-hooks": 2,
|
|
109
|
+
},
|
|
108
110
|
}) satisfies Linter.Config
|
|
109
111
|
|
|
110
112
|
const addPluginImport = () =>
|
|
@@ -164,6 +166,7 @@ export default tseslint.config(
|
|
|
164
166
|
...addPluginRegexp(),
|
|
165
167
|
addPluginNoRelativeImportPaths(),
|
|
166
168
|
...addPluginReact(),
|
|
169
|
+
eslintReact.configs["recommended-typescript"],
|
|
167
170
|
addPluginReactHooksConfigurable(),
|
|
168
171
|
...addPluginImport(),
|
|
169
172
|
addPluginSimpleImportSort(),
|
|
@@ -191,15 +194,6 @@ export default tseslint.config(
|
|
|
191
194
|
"no-case-declarations": 0,
|
|
192
195
|
"sort-imports": 0,
|
|
193
196
|
|
|
194
|
-
// "@10stars/react-hooks/exhaustive-deps": [
|
|
195
|
-
// 1,
|
|
196
|
-
// {
|
|
197
|
-
// additionalHooks:
|
|
198
|
-
// "(useUpdateEffect|useIsomorphicLayoutEffect|useDeepCompareEffect|useShallowCompareEffect|useCustomCompareEffect)",
|
|
199
|
-
// ignoreThisDependency: "always",
|
|
200
|
-
// },
|
|
201
|
-
// ],
|
|
202
|
-
|
|
203
197
|
"@typescript-eslint/restrict-template-expressions": [
|
|
204
198
|
`error`,
|
|
205
199
|
{
|
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.2.0",
|
|
8
8
|
"author": "10stars.dev <web@alexandrov.co> (https://alexandrov.co)",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"bin": {
|
|
@@ -25,15 +25,14 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@commitlint/cli": "^19.0.0",
|
|
27
27
|
"@commitlint/config-conventional": "^19.0.0",
|
|
28
|
+
"@eslint/js": "^9.0.0",
|
|
29
|
+
"@eslint-react/eslint-plugin": "^1.30.0",
|
|
28
30
|
"@stylistic/eslint-plugin": "^4.0.0",
|
|
29
31
|
"@types/lodash": "^4.0.0",
|
|
30
32
|
"@types/node": "^22.0.0",
|
|
31
33
|
"@types/react": "^18.0.0",
|
|
32
34
|
"esbuild": "~0.25.0",
|
|
33
35
|
"tsx": "4.11.2",
|
|
34
|
-
"@eslint/compat": "^1.0.0",
|
|
35
|
-
"@eslint/eslintrc": "^3.0.0",
|
|
36
|
-
"@eslint/js": "^9.0.0",
|
|
37
36
|
"eslint-config-prettier": "^10.0.0",
|
|
38
37
|
"eslint-plugin-import": "^2.0.0",
|
|
39
38
|
"eslint-plugin-no-relative-import-paths": "^1.5.4",
|