@slashnephy/eslint-config 0.1.6 → 0.1.9
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 +10 -0
- package/dist/javascript.js +5 -0
- package/dist/react.js +0 -8
- package/dist/typescript.js +1 -8
- package/package.json +15 -15
package/dist/index.js
CHANGED
|
@@ -35,6 +35,16 @@ const config = {
|
|
|
35
35
|
(0, path_1.resolve)(__dirname, 'prettier.js'),
|
|
36
36
|
],
|
|
37
37
|
},
|
|
38
|
+
{
|
|
39
|
+
files: [
|
|
40
|
+
'**/webpack.config.ts',
|
|
41
|
+
'**/rollup.config.ts',
|
|
42
|
+
'**/pages/**/*.{ts,tsx}',
|
|
43
|
+
],
|
|
44
|
+
rules: {
|
|
45
|
+
'import/no-default-export': 'off',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
38
48
|
],
|
|
39
49
|
};
|
|
40
50
|
module.exports = config;
|
package/dist/javascript.js
CHANGED
|
@@ -8,6 +8,9 @@ const javascript = {
|
|
|
8
8
|
es2022: true,
|
|
9
9
|
browser: true,
|
|
10
10
|
},
|
|
11
|
+
parserOptions: {
|
|
12
|
+
ecmaVersion: 'latest',
|
|
13
|
+
},
|
|
11
14
|
rules: {
|
|
12
15
|
'import/no-default-export': 'error',
|
|
13
16
|
'prefer-arrow-callback': 'error',
|
|
@@ -54,6 +57,8 @@ const javascript = {
|
|
|
54
57
|
'node/prefer-promises/fs': 'error',
|
|
55
58
|
'node/no-unsupported-features/es-syntax': 'off',
|
|
56
59
|
'node/no-missing-import': 'off',
|
|
60
|
+
'node/no-extraneous-import': 'off',
|
|
61
|
+
'node/no-unpublished-import': 'off',
|
|
57
62
|
},
|
|
58
63
|
};
|
|
59
64
|
module.exports = javascript;
|
package/dist/react.js
CHANGED
package/dist/typescript.js
CHANGED
|
@@ -46,14 +46,7 @@ const typescript = {
|
|
|
46
46
|
'@typescript-eslint/no-unsafe-return': 'off',
|
|
47
47
|
'@typescript-eslint/no-misused-promises': 'off',
|
|
48
48
|
'@typescript-eslint/explicit-member-accessibility': 'error',
|
|
49
|
+
'@typescript-eslint/consistent-indexed-object-style': ['error', 'record'],
|
|
49
50
|
},
|
|
50
|
-
overrides: [
|
|
51
|
-
{
|
|
52
|
-
files: ['**/webpack.config.ts'],
|
|
53
|
-
rules: {
|
|
54
|
-
'import/no-default-export': 'off',
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
],
|
|
58
51
|
};
|
|
59
52
|
module.exports = typescript;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slashnephy/eslint-config",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "https://github.com/SlashNephy/.github",
|
|
6
6
|
"directory": "env/eslint"
|
|
@@ -27,20 +27,20 @@
|
|
|
27
27
|
"publish": "yarn clean && yarn build && yarn npm publish"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
31
|
-
"@typescript-eslint/parser": "5.
|
|
32
|
-
"eslint-config-next": "12.
|
|
30
|
+
"@typescript-eslint/eslint-plugin": "5.33.0",
|
|
31
|
+
"@typescript-eslint/parser": "5.33.0",
|
|
32
|
+
"eslint-config-next": "12.2.5",
|
|
33
33
|
"eslint-config-prettier": "8.5.0",
|
|
34
|
-
"eslint-import-resolver-typescript": "
|
|
34
|
+
"eslint-import-resolver-typescript": "3.5.0",
|
|
35
35
|
"eslint-plugin-css-import-order": "1.1.0",
|
|
36
36
|
"eslint-plugin-eslint-comments": "3.2.0",
|
|
37
37
|
"eslint-plugin-import": "2.26.0",
|
|
38
|
-
"eslint-plugin-jest": "26.
|
|
38
|
+
"eslint-plugin-jest": "26.8.2",
|
|
39
39
|
"eslint-plugin-jest-formatting": "3.1.0",
|
|
40
40
|
"eslint-plugin-node": "11.1.0",
|
|
41
41
|
"eslint-plugin-promise": "6.0.0",
|
|
42
|
-
"eslint-plugin-react": "7.30.
|
|
43
|
-
"eslint-plugin-react-hooks": "4.
|
|
42
|
+
"eslint-plugin-react": "7.30.1",
|
|
43
|
+
"eslint-plugin-react-hooks": "4.6.0",
|
|
44
44
|
"eslint-plugin-unused-imports": "2.0.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
@@ -50,15 +50,15 @@
|
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@slashnephy/prettier-config": "0.1.1",
|
|
53
|
-
"@types/eslint": "8.4.
|
|
53
|
+
"@types/eslint": "8.4.6",
|
|
54
54
|
"@types/node": "17.0.41",
|
|
55
|
-
"@types/prettier": "2.
|
|
56
|
-
"concurrently": "7.
|
|
57
|
-
"eslint": "8.
|
|
58
|
-
"prettier": "2.
|
|
59
|
-
"typescript": "4.
|
|
55
|
+
"@types/prettier": "2.7.0",
|
|
56
|
+
"concurrently": "7.3.0",
|
|
57
|
+
"eslint": "8.23.0",
|
|
58
|
+
"prettier": "2.7.1",
|
|
59
|
+
"typescript": "4.8.2"
|
|
60
60
|
},
|
|
61
|
-
"packageManager": "yarn@3.2.
|
|
61
|
+
"packageManager": "yarn@3.2.2",
|
|
62
62
|
"eslintConfig": {
|
|
63
63
|
"extends": [
|
|
64
64
|
"./dist/index.js"
|