@rpcbase/eslint-config 0.9.0 → 0.11.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 +11 -0
- package/package.json +6 -5
package/eslint.config.js
CHANGED
|
@@ -4,6 +4,8 @@ import pluginImport from "eslint-plugin-import"
|
|
|
4
4
|
import pluginJs from "@eslint/js"
|
|
5
5
|
import pluginReact from "eslint-plugin-react"
|
|
6
6
|
import tseslint from "typescript-eslint"
|
|
7
|
+
import reactRefresh from "eslint-plugin-react-refresh"
|
|
8
|
+
|
|
7
9
|
|
|
8
10
|
/** @type {import('eslint').Linter.Config[]} */
|
|
9
11
|
export const config = [
|
|
@@ -13,6 +15,15 @@ export const config = [
|
|
|
13
15
|
pluginJs.configs.recommended,
|
|
14
16
|
pluginImport.flatConfigs.recommended,
|
|
15
17
|
...tseslint.configs.recommended,
|
|
18
|
+
reactRefresh.configs.recommended,
|
|
19
|
+
{
|
|
20
|
+
rules: {
|
|
21
|
+
"react-refresh/only-export-components": [
|
|
22
|
+
"warn",
|
|
23
|
+
{ "allowExportNames": ["loader", "*Variant"] }
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
},
|
|
16
27
|
{
|
|
17
28
|
...pluginReact.configs.flat.recommended,
|
|
18
29
|
settings: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rpcbase/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -32,13 +32,14 @@
|
|
|
32
32
|
"eslint": "^9"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@eslint/js": "9.
|
|
35
|
+
"@eslint/js": "9.24.0",
|
|
36
36
|
"eslint-config-flat-gitignore": "2.1.0",
|
|
37
|
-
"eslint-import-resolver-typescript": "4.3.
|
|
37
|
+
"eslint-import-resolver-typescript": "4.3.2",
|
|
38
38
|
"eslint-plugin-import": "2.31.0",
|
|
39
39
|
"eslint-plugin-react": "7.37.5",
|
|
40
|
-
"
|
|
41
|
-
"
|
|
40
|
+
"eslint-plugin-react-refresh": "0.4.19",
|
|
41
|
+
"globals": "16.0.0",
|
|
42
|
+
"typescript-eslint": "8.30.1"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
44
45
|
"@types/eslint": "9.6.1",
|