@slashnephy/eslint-config 0.2.5 → 0.2.7
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/react.js +8 -1
- package/dist/typescript.js +1 -0
- package/package.json +9 -8
package/dist/react.js
CHANGED
|
@@ -7,7 +7,7 @@ const react = {
|
|
|
7
7
|
'plugin:react/jsx-runtime',
|
|
8
8
|
'plugin:css-import-order/recommended',
|
|
9
9
|
],
|
|
10
|
-
plugins: ['css-import-order'],
|
|
10
|
+
plugins: ['react-hooks', 'css-import-order'],
|
|
11
11
|
parserOptions: {
|
|
12
12
|
ecmaFeatures: {
|
|
13
13
|
jsx: true,
|
|
@@ -31,6 +31,13 @@ const react = {
|
|
|
31
31
|
},
|
|
32
32
|
],
|
|
33
33
|
'react/jsx-pascal-case': 'error',
|
|
34
|
+
'react-hooks/rules-of-hooks': 'error',
|
|
35
|
+
'react-hooks/exhaustive-deps': [
|
|
36
|
+
'warn',
|
|
37
|
+
{
|
|
38
|
+
additionalHooks: '(useRecoilCallback|useRecoilTransaction_UNSTABLE)',
|
|
39
|
+
},
|
|
40
|
+
],
|
|
34
41
|
},
|
|
35
42
|
};
|
|
36
43
|
module.exports = react;
|
package/dist/typescript.js
CHANGED
|
@@ -6,6 +6,7 @@ const typescript = {
|
|
|
6
6
|
'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
|
7
7
|
'plugin:@typescript-eslint/strict',
|
|
8
8
|
'plugin:import/typescript',
|
|
9
|
+
'plugin:no-void-return-type/recommended',
|
|
9
10
|
],
|
|
10
11
|
plugins: ['@typescript-eslint'],
|
|
11
12
|
parser: '@typescript-eslint/parser',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slashnephy/eslint-config",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"author": "SlashNephy <spica@starry.blue> (https://spica.starry.blue/)",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,23 +30,24 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@typescript-eslint/eslint-plugin": "5.37.0",
|
|
32
32
|
"@typescript-eslint/parser": "5.37.0",
|
|
33
|
-
"eslint-config-next": "12.3.
|
|
33
|
+
"eslint-config-next": "12.3.1",
|
|
34
34
|
"eslint-config-prettier": "8.5.0",
|
|
35
35
|
"eslint-import-resolver-typescript": "3.5.1",
|
|
36
36
|
"eslint-plugin-css-import-order": "1.1.0",
|
|
37
37
|
"eslint-plugin-editorconfig": "4.0.2",
|
|
38
38
|
"eslint-plugin-eslint-comments": "3.2.0",
|
|
39
39
|
"eslint-plugin-import": "2.26.0",
|
|
40
|
-
"eslint-plugin-jest": "27.
|
|
40
|
+
"eslint-plugin-jest": "27.1.1",
|
|
41
41
|
"eslint-plugin-jest-formatting": "3.1.0",
|
|
42
42
|
"eslint-plugin-json": "3.1.0",
|
|
43
|
+
"eslint-plugin-no-void-return-type": "1.0.2",
|
|
43
44
|
"eslint-plugin-node": "11.1.0",
|
|
44
45
|
"eslint-plugin-package-json": "0.1.4",
|
|
45
46
|
"eslint-plugin-promise": "6.0.1",
|
|
46
47
|
"eslint-plugin-react": "7.31.8",
|
|
47
48
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
48
49
|
"eslint-plugin-unused-imports": "2.0.0",
|
|
49
|
-
"eslint-plugin-userscripts": "0.2.
|
|
50
|
+
"eslint-plugin-userscripts": "0.2.10",
|
|
50
51
|
"eslint-plugin-xss": "0.1.12",
|
|
51
52
|
"eslint-plugin-yml": "1.2.0"
|
|
52
53
|
},
|
|
@@ -59,13 +60,13 @@
|
|
|
59
60
|
"@slashnephy/prettier-config": "0.1.1",
|
|
60
61
|
"@types/eslint": "8.4.6",
|
|
61
62
|
"@types/node": "17.0.41",
|
|
62
|
-
"@types/prettier": "2.7.
|
|
63
|
+
"@types/prettier": "2.7.1",
|
|
63
64
|
"concurrently": "7.4.0",
|
|
64
|
-
"eslint": "8.
|
|
65
|
+
"eslint": "8.25.0",
|
|
65
66
|
"prettier": "2.7.1",
|
|
66
|
-
"typescript": "4.8.
|
|
67
|
+
"typescript": "4.8.4"
|
|
67
68
|
},
|
|
68
|
-
"packageManager": "yarn@3.2.
|
|
69
|
+
"packageManager": "yarn@3.2.4",
|
|
69
70
|
"eslintConfig": {
|
|
70
71
|
"extends": [
|
|
71
72
|
"./dist/index.js"
|