@slashnephy/eslint-config 0.4.34 → 0.5.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/dist/index.js +4 -1
- package/dist/javascript.js +7 -1
- package/dist/react.js +2 -1
- package/package.json +19 -4
package/dist/index.js
CHANGED
|
@@ -11,7 +11,10 @@ const config = {
|
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
files: '**/*.{ts,mts,cts,tsx}',
|
|
14
|
-
extends:
|
|
14
|
+
extends: [
|
|
15
|
+
(0, path_1.resolve)(__dirname, 'typescript.js'),
|
|
16
|
+
'plugin:storybook/recommended',
|
|
17
|
+
],
|
|
15
18
|
},
|
|
16
19
|
{
|
|
17
20
|
files: [
|
package/dist/javascript.js
CHANGED
|
@@ -65,7 +65,6 @@ const javascript = {
|
|
|
65
65
|
'node/no-extraneous-import': 'off',
|
|
66
66
|
'node/no-unpublished-import': 'off',
|
|
67
67
|
'import/no-import-module-exports': 'off',
|
|
68
|
-
'import/extensions': 'off',
|
|
69
68
|
'import/no-extraneous-dependencies': 'off',
|
|
70
69
|
'dot-notation': 'error',
|
|
71
70
|
'object-shorthand': ['error', 'always'],
|
|
@@ -92,6 +91,13 @@ const javascript = {
|
|
|
92
91
|
'no-nested-ternary': 'off',
|
|
93
92
|
'no-plusplus': 'off',
|
|
94
93
|
'consistent-return': 'off',
|
|
94
|
+
'import/extensions': [
|
|
95
|
+
'error',
|
|
96
|
+
'always',
|
|
97
|
+
{
|
|
98
|
+
ignorePackages: true,
|
|
99
|
+
},
|
|
100
|
+
],
|
|
95
101
|
},
|
|
96
102
|
};
|
|
97
103
|
module.exports = javascript;
|
package/dist/react.js
CHANGED
|
@@ -8,7 +8,7 @@ const react = {
|
|
|
8
8
|
'plugin:css-import-order/recommended',
|
|
9
9
|
'plugin:jsx-a11y/recommended',
|
|
10
10
|
],
|
|
11
|
-
plugins: ['css-import-order'],
|
|
11
|
+
plugins: ['css-import-order', 'react-refresh'],
|
|
12
12
|
parserOptions: {
|
|
13
13
|
ecmaFeatures: {
|
|
14
14
|
jsx: true,
|
|
@@ -64,6 +64,7 @@ const react = {
|
|
|
64
64
|
'react/jsx-props-no-spreading': 'off',
|
|
65
65
|
'react/jsx-no-useless-fragment': 'off',
|
|
66
66
|
'react/require-default-props': 'off',
|
|
67
|
+
'react-refresh/only-export-components': 'warn',
|
|
67
68
|
},
|
|
68
69
|
overrides: [
|
|
69
70
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slashnephy/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "SlashNephy <spica@starry.blue> (https://spica.starry.blue/)",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@typescript-eslint/eslint-plugin": "5.59.5",
|
|
35
35
|
"@typescript-eslint/parser": "5.59.5",
|
|
36
36
|
"eslint-config-airbnb": "19.0.4",
|
|
37
|
-
"eslint-config-next": "13.4.
|
|
37
|
+
"eslint-config-next": "13.4.4",
|
|
38
38
|
"eslint-config-prettier": "8.8.0",
|
|
39
39
|
"eslint-config-standard": "17.0.0",
|
|
40
40
|
"eslint-import-resolver-typescript": "3.5.5",
|
|
@@ -55,6 +55,8 @@
|
|
|
55
55
|
"eslint-plugin-promise": "6.1.1",
|
|
56
56
|
"eslint-plugin-react": "7.32.2",
|
|
57
57
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
58
|
+
"eslint-plugin-react-refresh": "0.4.3",
|
|
59
|
+
"eslint-plugin-storybook": "0.6.12",
|
|
58
60
|
"eslint-plugin-unused-imports": "2.0.0",
|
|
59
61
|
"eslint-plugin-userscripts": "0.3.0",
|
|
60
62
|
"eslint-plugin-vitest": "0.2.2",
|
|
@@ -63,10 +65,23 @@
|
|
|
63
65
|
"typescript": "5.0.4"
|
|
64
66
|
},
|
|
65
67
|
"peerDependencies": {
|
|
66
|
-
"eslint": ">=
|
|
68
|
+
"@emotion/eslint-plugin": ">= 11",
|
|
69
|
+
"@typescript-eslint/eslint-plugin": ">= 5",
|
|
70
|
+
"@typescript-eslint/parser": ">= 5",
|
|
71
|
+
"eslint": ">= 8",
|
|
72
|
+
"eslint-plugin-css-reorder": ">= 0",
|
|
73
|
+
"eslint-plugin-deprecation": ">= 1",
|
|
74
|
+
"eslint-plugin-editorconfig": ">= 4",
|
|
75
|
+
"eslint-plugin-import": ">= 2",
|
|
76
|
+
"eslint-plugin-jest": ">= 27",
|
|
77
|
+
"eslint-plugin-package-json": ">= 0",
|
|
78
|
+
"eslint-plugin-promise": ">= 6",
|
|
79
|
+
"eslint-plugin-react-refresh": ">= 0",
|
|
80
|
+
"eslint-plugin-unused-imports": ">= 2",
|
|
81
|
+
"eslint-plugin-vitest": ">= 0"
|
|
67
82
|
},
|
|
68
83
|
"devDependencies": {
|
|
69
|
-
"@slashnephy/prettier-config": "0.1.
|
|
84
|
+
"@slashnephy/prettier-config": "0.1.23",
|
|
70
85
|
"@types/eslint": "8.37.0",
|
|
71
86
|
"@types/node": "18.16.7",
|
|
72
87
|
"concurrently": "8.0.1",
|