@slashnephy/eslint-config 0.5.3 → 1.0.2
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/{javascript.js → base/javascript.js} +1 -2
- package/dist/{json.js → base/json.js} +1 -2
- package/dist/{prettier.js → base/style.js} +1 -3
- package/dist/{typescript.js → base/typescript.js} +6 -6
- package/dist/{yaml.js → base/yaml.js} +1 -2
- package/dist/{emotion.js → framework/emotion.js} +1 -2
- package/dist/{jest.js → framework/jest.js} +1 -2
- package/dist/{next.js.js → framework/next.js.js} +1 -2
- package/dist/{react.js → framework/react.js} +1 -2
- package/dist/{vitest.js → framework/vitest.js} +1 -2
- package/dist/index.js +19 -19
- package/dist/patch.js +3 -0
- package/dist/{config.js → presets/config.js} +1 -2
- package/dist/{node.js → presets/node.js} +1 -2
- package/dist/{package.json.js → presets/package.json.js} +2 -2
- package/dist/{userscript.js → presets/userscript.js} +1 -2
- package/package.json +23 -38
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
module.exports = {
|
|
4
4
|
extends: [
|
|
5
5
|
'plugin:eslint-comments/recommended',
|
|
6
6
|
'plugin:node/recommended',
|
|
@@ -93,4 +93,3 @@ const javascript = {
|
|
|
93
93
|
'consistent-return': 'off',
|
|
94
94
|
},
|
|
95
95
|
};
|
|
96
|
-
module.exports = javascript;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
module.exports = {
|
|
4
4
|
extends: ['plugin:editorconfig/noconflict', 'prettier'],
|
|
5
5
|
plugins: ['editorconfig'],
|
|
6
6
|
rules: {
|
|
7
|
-
'linebreak-style': ['error', 'unix'],
|
|
8
7
|
quotes: ['error', 'single'],
|
|
9
8
|
semi: ['error', 'never'],
|
|
10
9
|
'unicode-bom': ['error', 'never'],
|
|
@@ -22,4 +21,3 @@ const prettier = {
|
|
|
22
21
|
},
|
|
23
22
|
],
|
|
24
23
|
};
|
|
25
|
-
module.exports = prettier;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
module.exports = {
|
|
4
4
|
extends: [
|
|
5
|
-
'plugin:@typescript-eslint/
|
|
6
|
-
'plugin:@typescript-eslint/
|
|
7
|
-
'plugin:@typescript-eslint/strict',
|
|
5
|
+
'plugin:@typescript-eslint/strict-type-checked',
|
|
6
|
+
'plugin:@typescript-eslint/stylistic-type-checked',
|
|
8
7
|
'plugin:import/typescript',
|
|
9
8
|
'plugin:no-void-return-type/recommended',
|
|
9
|
+
'plugin:storybook/recommended',
|
|
10
10
|
],
|
|
11
|
-
plugins: ['@typescript-eslint', 'deprecation'],
|
|
11
|
+
plugins: ['@typescript-eslint', 'deprecation', 'tsdoc'],
|
|
12
12
|
parser: '@typescript-eslint/parser',
|
|
13
13
|
parserOptions: {
|
|
14
14
|
sourceType: 'module',
|
|
@@ -146,6 +146,6 @@ const typescript = {
|
|
|
146
146
|
ignorePackages: true,
|
|
147
147
|
},
|
|
148
148
|
],
|
|
149
|
+
'tsdoc/syntax': 'warn',
|
|
149
150
|
},
|
|
150
151
|
};
|
|
151
|
-
module.exports = typescript;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
module.exports = {
|
|
4
4
|
extends: ['plugin:yml/standard', 'plugin:yml/prettier'],
|
|
5
5
|
parser: 'yaml-eslint-parser',
|
|
6
6
|
rules: {
|
|
@@ -15,4 +15,3 @@ const yaml = {
|
|
|
15
15
|
},
|
|
16
16
|
],
|
|
17
17
|
};
|
|
18
|
-
module.exports = yaml;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
module.exports = {
|
|
4
4
|
plugins: ['@emotion', 'css-reorder'],
|
|
5
5
|
rules: {
|
|
6
6
|
'@emotion/pkg-renaming': 'error',
|
|
@@ -15,4 +15,3 @@ const emotion = {
|
|
|
15
15
|
],
|
|
16
16
|
},
|
|
17
17
|
};
|
|
18
|
-
module.exports = emotion;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
module.exports = {
|
|
4
4
|
plugins: ['jest'],
|
|
5
5
|
extends: [
|
|
6
6
|
'plugin:jest/recommended',
|
|
@@ -12,4 +12,3 @@ const jest = {
|
|
|
12
12
|
},
|
|
13
13
|
rules: {},
|
|
14
14
|
};
|
|
15
|
-
module.exports = jest;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
module.exports = {
|
|
4
4
|
extends: [
|
|
5
5
|
'next/core-web-vitals',
|
|
6
6
|
],
|
|
@@ -8,4 +8,3 @@ const config = {
|
|
|
8
8
|
'import/no-default-export': 'off',
|
|
9
9
|
},
|
|
10
10
|
};
|
|
11
|
-
module.exports = config;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
module.exports = {
|
|
4
4
|
extends: [
|
|
5
5
|
'airbnb/hooks',
|
|
6
6
|
'plugin:react/recommended',
|
|
@@ -75,4 +75,3 @@ const react = {
|
|
|
75
75
|
},
|
|
76
76
|
],
|
|
77
77
|
};
|
|
78
|
-
module.exports = react;
|
package/dist/index.js
CHANGED
|
@@ -1,72 +1,72 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const path_1 = require("path");
|
|
4
|
-
|
|
4
|
+
require("@rushstack/eslint-patch/modern-module-resolution.js");
|
|
5
|
+
module.exports = {
|
|
5
6
|
root: true,
|
|
6
7
|
extends: ['eslint:recommended', 'standard', 'airbnb'],
|
|
7
8
|
overrides: [
|
|
8
9
|
{
|
|
9
10
|
files: '**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx}',
|
|
10
|
-
extends: (0, path_1.resolve)(__dirname, 'javascript.js'),
|
|
11
|
+
extends: (0, path_1.resolve)(__dirname, 'base/javascript.js'),
|
|
11
12
|
},
|
|
12
13
|
{
|
|
13
14
|
files: '**/*.{ts,mts,cts,tsx}',
|
|
14
|
-
extends: [
|
|
15
|
-
(0, path_1.resolve)(__dirname, 'typescript.js'),
|
|
16
|
-
'plugin:storybook/recommended',
|
|
17
|
-
],
|
|
15
|
+
extends: [(0, path_1.resolve)(__dirname, 'base/typescript.js')],
|
|
18
16
|
},
|
|
19
17
|
{
|
|
20
18
|
files: [
|
|
21
19
|
'**/*.test.{js,mjs,cjs,jsx,ts,mts,cts,tsx}',
|
|
22
20
|
'**/test/**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx}',
|
|
23
21
|
],
|
|
24
|
-
extends: [
|
|
22
|
+
extends: [
|
|
23
|
+
(0, path_1.resolve)(__dirname, 'framework/jest.js'),
|
|
24
|
+
(0, path_1.resolve)(__dirname, 'framework/vitest.js'),
|
|
25
|
+
],
|
|
25
26
|
},
|
|
26
27
|
{
|
|
27
28
|
files: '**/*.{jsx,tsx}',
|
|
28
|
-
extends: (0, path_1.resolve)(__dirname, 'react.js'),
|
|
29
|
+
extends: (0, path_1.resolve)(__dirname, 'framework/react.js'),
|
|
29
30
|
},
|
|
30
31
|
{
|
|
31
32
|
files: '**/*.{jsx,tsx}',
|
|
32
|
-
extends: (0, path_1.resolve)(__dirname, 'emotion.js'),
|
|
33
|
+
extends: (0, path_1.resolve)(__dirname, 'framework/emotion.js'),
|
|
33
34
|
},
|
|
34
35
|
{
|
|
35
|
-
files: '**/pages/**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx}',
|
|
36
|
-
extends: (0, path_1.resolve)(__dirname, 'next.js.js'),
|
|
36
|
+
files: '**/{pages,app}/**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx}',
|
|
37
|
+
extends: (0, path_1.resolve)(__dirname, 'framework/next.js.js'),
|
|
37
38
|
},
|
|
38
39
|
{
|
|
39
40
|
files: '**/*.json',
|
|
40
|
-
extends: (0, path_1.resolve)(__dirname, 'json.js'),
|
|
41
|
+
extends: (0, path_1.resolve)(__dirname, 'base/json.js'),
|
|
41
42
|
},
|
|
42
43
|
{
|
|
43
44
|
files: '**/*.{yml,yaml}',
|
|
44
|
-
extends: (0, path_1.resolve)(__dirname, 'yaml.js'),
|
|
45
|
+
extends: (0, path_1.resolve)(__dirname, 'base/yaml.js'),
|
|
45
46
|
},
|
|
46
47
|
{
|
|
47
48
|
files: '**/package.json',
|
|
48
|
-
extends: (0, path_1.resolve)(__dirname, 'package.json.js'),
|
|
49
|
+
extends: (0, path_1.resolve)(__dirname, 'presets/package.json.js'),
|
|
49
50
|
},
|
|
50
51
|
{
|
|
51
52
|
files: '**/*.user.js',
|
|
52
|
-
extends: (0, path_1.resolve)(__dirname, 'userscript.js'),
|
|
53
|
+
extends: (0, path_1.resolve)(__dirname, 'presets/userscript.js'),
|
|
53
54
|
},
|
|
54
55
|
{
|
|
55
56
|
files: [
|
|
56
57
|
'**/bin/**/*.{js,mjs,cjs,ts,mts,cts}',
|
|
57
58
|
'**/{webpack,rollup,vite}.config.{js,mjs,cjs,ts,mts,cts}',
|
|
58
59
|
],
|
|
59
|
-
extends: (0, path_1.resolve)(__dirname, 'node.js'),
|
|
60
|
+
extends: (0, path_1.resolve)(__dirname, 'presets/node.js'),
|
|
60
61
|
},
|
|
61
62
|
{
|
|
62
63
|
files: '**/{webpack,rollup,vite}.config.{js,mjs,cjs,ts,mts,cts}',
|
|
63
|
-
extends: (0, path_1.resolve)(__dirname, 'config.js'),
|
|
64
|
+
extends: (0, path_1.resolve)(__dirname, 'presets/config.js'),
|
|
64
65
|
},
|
|
65
66
|
{
|
|
66
67
|
files: '**/*',
|
|
67
|
-
extends: (0, path_1.resolve)(__dirname, '
|
|
68
|
+
extends: (0, path_1.resolve)(__dirname, 'base/style.js'),
|
|
68
69
|
},
|
|
69
70
|
],
|
|
70
71
|
ignorePatterns: ['**/node_modules/**'],
|
|
71
72
|
};
|
|
72
|
-
module.exports = config;
|
package/dist/patch.js
ADDED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
module.exports = {
|
|
4
4
|
rules: {
|
|
5
5
|
'import/no-default-export': 'off',
|
|
6
6
|
'import/no-extraneous-dependencies': [
|
|
@@ -11,4 +11,3 @@ const config = {
|
|
|
11
11
|
],
|
|
12
12
|
},
|
|
13
13
|
};
|
|
14
|
-
module.exports = config;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
module.exports = {
|
|
4
4
|
extends: ['plugin:package-json/recommended'],
|
|
5
5
|
plugins: ['package-json'],
|
|
6
6
|
env: {
|
|
@@ -20,6 +20,7 @@ const packageJson = {
|
|
|
20
20
|
'repository',
|
|
21
21
|
'license',
|
|
22
22
|
'files',
|
|
23
|
+
'exports',
|
|
23
24
|
'publishConfig',
|
|
24
25
|
'scripts',
|
|
25
26
|
'dependencies',
|
|
@@ -34,4 +35,3 @@ const packageJson = {
|
|
|
34
35
|
],
|
|
35
36
|
},
|
|
36
37
|
};
|
|
37
|
-
module.exports = packageJson;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
module.exports = {
|
|
4
4
|
extends: ['plugin:userscripts/recommended'],
|
|
5
5
|
rules: {
|
|
6
6
|
'no-undef': 'off',
|
|
@@ -20,4 +20,3 @@ const userScript = {
|
|
|
20
20
|
],
|
|
21
21
|
},
|
|
22
22
|
};
|
|
23
|
-
module.exports = userScript;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slashnephy/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "SlashNephy <spica@starry.blue> (https://spica.starry.blue/)",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"files": [
|
|
14
14
|
"package.json",
|
|
15
|
-
"dist
|
|
15
|
+
"dist/**/*.js"
|
|
16
16
|
],
|
|
17
17
|
"publishConfig": {
|
|
18
18
|
"access": "public"
|
|
@@ -31,70 +31,55 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@emotion/eslint-plugin": "11.11.0",
|
|
34
|
-
"@
|
|
35
|
-
"@typescript-eslint/
|
|
34
|
+
"@rushstack/eslint-patch": "1.3.2",
|
|
35
|
+
"@typescript-eslint/eslint-plugin": "6.2.0",
|
|
36
|
+
"@typescript-eslint/parser": "6.2.0",
|
|
36
37
|
"eslint-config-airbnb": "19.0.4",
|
|
37
|
-
"eslint-config-next": "13.4.
|
|
38
|
-
"eslint-config-prettier": "8.
|
|
39
|
-
"eslint-config-standard": "17.
|
|
38
|
+
"eslint-config-next": "13.4.12",
|
|
39
|
+
"eslint-config-prettier": "8.9.0",
|
|
40
|
+
"eslint-config-standard": "17.1.0",
|
|
40
41
|
"eslint-import-resolver-typescript": "3.5.5",
|
|
41
42
|
"eslint-plugin-css-import-order": "1.1.0",
|
|
42
43
|
"eslint-plugin-css-reorder": "0.5.1",
|
|
43
|
-
"eslint-plugin-deprecation": "1.
|
|
44
|
+
"eslint-plugin-deprecation": "1.5.0",
|
|
44
45
|
"eslint-plugin-editorconfig": "4.0.3",
|
|
45
46
|
"eslint-plugin-eslint-comments": "3.2.0",
|
|
46
47
|
"eslint-plugin-import": "2.27.5",
|
|
47
|
-
"eslint-plugin-jest": "27.2.
|
|
48
|
+
"eslint-plugin-jest": "27.2.3",
|
|
48
49
|
"eslint-plugin-jest-formatting": "3.1.0",
|
|
49
50
|
"eslint-plugin-json": "3.1.0",
|
|
50
51
|
"eslint-plugin-jsx-a11y": "6.7.1",
|
|
51
|
-
"eslint-plugin-n": "16.0.
|
|
52
|
+
"eslint-plugin-n": "16.0.1",
|
|
52
53
|
"eslint-plugin-no-void-return-type": "1.0.2",
|
|
53
54
|
"eslint-plugin-node": "11.1.0",
|
|
54
55
|
"eslint-plugin-package-json": "0.1.4",
|
|
55
56
|
"eslint-plugin-promise": "6.1.1",
|
|
56
|
-
"eslint-plugin-react": "7.
|
|
57
|
+
"eslint-plugin-react": "7.33.0",
|
|
57
58
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
58
59
|
"eslint-plugin-react-refresh": "0.4.3",
|
|
59
60
|
"eslint-plugin-storybook": "0.6.12",
|
|
61
|
+
"eslint-plugin-tsdoc": "0.2.17",
|
|
60
62
|
"eslint-plugin-unused-imports": "2.0.0",
|
|
61
63
|
"eslint-plugin-userscripts": "0.3.0",
|
|
62
64
|
"eslint-plugin-vitest": "0.2.2",
|
|
63
65
|
"eslint-plugin-xss": "0.1.12",
|
|
64
66
|
"eslint-plugin-yml": "1.7.0",
|
|
65
|
-
"typescript": "5.
|
|
67
|
+
"typescript": "5.1.6",
|
|
68
|
+
"yaml-eslint-parser": "1.2.2"
|
|
66
69
|
},
|
|
67
70
|
"peerDependencies": {
|
|
68
|
-
"
|
|
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"
|
|
71
|
+
"eslint": "^8"
|
|
82
72
|
},
|
|
83
73
|
"devDependencies": {
|
|
84
|
-
"@slashnephy/prettier-config": "0.1.
|
|
85
|
-
"@types/eslint": "8.
|
|
86
|
-
"@types/node": "
|
|
87
|
-
"concurrently": "8.0
|
|
88
|
-
"eslint": "8.
|
|
89
|
-
"prettier": "
|
|
74
|
+
"@slashnephy/prettier-config": "0.1.25",
|
|
75
|
+
"@types/eslint": "8.44.1",
|
|
76
|
+
"@types/node": "20.4.5",
|
|
77
|
+
"concurrently": "8.2.0",
|
|
78
|
+
"eslint": "8.45.0",
|
|
79
|
+
"prettier": "3.0.0",
|
|
90
80
|
"ts-node": "10.9.1"
|
|
91
81
|
},
|
|
92
|
-
"packageManager": "yarn@3.
|
|
93
|
-
"eslintConfig": {
|
|
94
|
-
"extends": [
|
|
95
|
-
"./dist/index.js"
|
|
96
|
-
]
|
|
97
|
-
},
|
|
82
|
+
"packageManager": "yarn@3.6.1",
|
|
98
83
|
"keywords": [
|
|
99
84
|
"eslint",
|
|
100
85
|
"eslintconfig"
|