eslint-config-simplesense 6.0.17 → 6.0.19
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/config/stylistic.js +1 -1
- package/package.json +10 -10
- package/rules/stylistic.js +70 -62
package/config/stylistic.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-simplesense",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.19",
|
|
4
4
|
"description": "ESLint Config for Simplesense Styles",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -46,26 +46,26 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
49
|
-
"@eslint/js": "^9.
|
|
50
|
-
"@stylistic/eslint-plugin": "^
|
|
49
|
+
"@eslint/js": "^9.29.0",
|
|
50
|
+
"@stylistic/eslint-plugin": "^5.0.0",
|
|
51
51
|
"eslint-plugin-array-func": "^5.0.2",
|
|
52
|
-
"eslint-plugin-import": "^2.
|
|
53
|
-
"eslint-plugin-n": "^17.
|
|
52
|
+
"eslint-plugin-import": "^2.32.0",
|
|
53
|
+
"eslint-plugin-n": "^17.20.0",
|
|
54
54
|
"eslint-plugin-optimize-regex": "^1.2.1",
|
|
55
55
|
"eslint-plugin-regexp": "^2.9.0",
|
|
56
56
|
"eslint-plugin-security": "^3.0.1",
|
|
57
|
-
"eslint-plugin-sonarjs": "^3.0.
|
|
57
|
+
"eslint-plugin-sonarjs": "^3.0.3",
|
|
58
58
|
"eslint-plugin-unicorn": "^59.0.1",
|
|
59
59
|
"eslint-plugin-vue": "^10.2.0",
|
|
60
60
|
"eslint-plugin-yml": "^1.18.0",
|
|
61
61
|
"globals": "^16.2.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@vitest/coverage-v8": "^3.2.
|
|
65
|
-
"eslint": "^9.
|
|
66
|
-
"sort-package-json": "^3.
|
|
64
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
65
|
+
"eslint": "^9.29.0",
|
|
66
|
+
"sort-package-json": "^3.3.0",
|
|
67
67
|
"vitepress": "^1.6.3",
|
|
68
|
-
"vitest": "^3.2.
|
|
68
|
+
"vitest": "^3.2.4"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"eslint": "9.x"
|
package/rules/stylistic.js
CHANGED
|
@@ -6,13 +6,13 @@ const PADDING_STATEMENT = {
|
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
|
-
'@stylistic/
|
|
9
|
+
'@stylistic/array-bracket-newline': [
|
|
10
10
|
'error',
|
|
11
11
|
{
|
|
12
12
|
multiline: true,
|
|
13
13
|
},
|
|
14
14
|
],
|
|
15
|
-
'@stylistic/
|
|
15
|
+
'@stylistic/array-bracket-spacing': [
|
|
16
16
|
'error',
|
|
17
17
|
'always',
|
|
18
18
|
{
|
|
@@ -21,41 +21,41 @@ export default {
|
|
|
21
21
|
singleValue: false,
|
|
22
22
|
},
|
|
23
23
|
],
|
|
24
|
-
'@stylistic/
|
|
24
|
+
'@stylistic/array-element-newline': [
|
|
25
25
|
'error',
|
|
26
26
|
{
|
|
27
27
|
minItems: 3,
|
|
28
28
|
multiline: true,
|
|
29
29
|
},
|
|
30
30
|
],
|
|
31
|
-
'@stylistic/
|
|
32
|
-
'@stylistic/
|
|
31
|
+
'@stylistic/arrow-parens': [ 'error', 'always' ],
|
|
32
|
+
'@stylistic/arrow-spacing': [
|
|
33
33
|
'error',
|
|
34
34
|
{
|
|
35
35
|
after: true,
|
|
36
36
|
before: true,
|
|
37
37
|
},
|
|
38
38
|
],
|
|
39
|
-
'@stylistic/
|
|
40
|
-
'@stylistic/
|
|
41
|
-
'@stylistic/
|
|
42
|
-
'@stylistic/
|
|
43
|
-
'@stylistic/
|
|
44
|
-
'@stylistic/
|
|
45
|
-
'@stylistic/
|
|
46
|
-
'@stylistic/
|
|
47
|
-
'@stylistic/
|
|
48
|
-
'@stylistic/
|
|
49
|
-
'@stylistic/
|
|
50
|
-
'@stylistic/
|
|
39
|
+
'@stylistic/block-spacing': [ 'error', 'always' ],
|
|
40
|
+
'@stylistic/brace-style': [ 'error', '1tbs' ],
|
|
41
|
+
'@stylistic/comma-dangle': [ 'error', 'always-multiline' ],
|
|
42
|
+
'@stylistic/comma-spacing': ['error'],
|
|
43
|
+
'@stylistic/comma-style': ['error'],
|
|
44
|
+
'@stylistic/computed-property-spacing': [ 'error', 'never' ],
|
|
45
|
+
'@stylistic/dot-location': [ 'error', 'property' ],
|
|
46
|
+
'@stylistic/eol-last': [ 'error', 'always' ],
|
|
47
|
+
'@stylistic/function-call-argument-newline': [ 'error', 'consistent' ],
|
|
48
|
+
'@stylistic/function-call-spacing': [ 'error', 'never' ],
|
|
49
|
+
'@stylistic/function-paren-newline': [ 'error', 'multiline' ],
|
|
50
|
+
'@stylistic/generator-star-spacing': [
|
|
51
51
|
'error',
|
|
52
52
|
{
|
|
53
53
|
after: false,
|
|
54
54
|
before: true,
|
|
55
55
|
},
|
|
56
56
|
],
|
|
57
|
-
'@stylistic/
|
|
58
|
-
'@stylistic/
|
|
57
|
+
'@stylistic/implicit-arrow-linebreak': [ 'error', 'beside' ],
|
|
58
|
+
'@stylistic/indent': [
|
|
59
59
|
'error',
|
|
60
60
|
2,
|
|
61
61
|
{
|
|
@@ -83,7 +83,7 @@ export default {
|
|
|
83
83
|
tabLength: 2,
|
|
84
84
|
},
|
|
85
85
|
],
|
|
86
|
-
'@stylistic/
|
|
86
|
+
'@stylistic/key-spacing': [
|
|
87
87
|
'error',
|
|
88
88
|
{
|
|
89
89
|
afterColon: true,
|
|
@@ -91,42 +91,42 @@ export default {
|
|
|
91
91
|
mode: 'strict',
|
|
92
92
|
},
|
|
93
93
|
],
|
|
94
|
-
'@stylistic/
|
|
94
|
+
'@stylistic/keyword-spacing': [
|
|
95
95
|
'error',
|
|
96
96
|
{
|
|
97
97
|
after: true,
|
|
98
98
|
before: true,
|
|
99
99
|
},
|
|
100
100
|
],
|
|
101
|
-
'@stylistic/
|
|
102
|
-
'@stylistic/
|
|
103
|
-
'@stylistic/
|
|
104
|
-
'@stylistic/
|
|
105
|
-
'@stylistic/
|
|
106
|
-
'@stylistic/
|
|
101
|
+
'@stylistic/linebreak-style': [ 'error', 'unix' ],
|
|
102
|
+
'@stylistic/lines-between-class-members': [ 'error', 'always' ],
|
|
103
|
+
'@stylistic/max-len': ['off'],
|
|
104
|
+
'@stylistic/multiline-comment-style': [ 'error', 'separate-lines' ],
|
|
105
|
+
'@stylistic/new-parens': ['error'],
|
|
106
|
+
'@stylistic/newline-per-chained-call': [
|
|
107
107
|
'error',
|
|
108
108
|
{
|
|
109
109
|
ignoreChainWithDepth: 2,
|
|
110
110
|
},
|
|
111
111
|
],
|
|
112
|
-
'@stylistic/
|
|
113
|
-
'@stylistic/
|
|
114
|
-
'@stylistic/
|
|
115
|
-
'@stylistic/
|
|
116
|
-
'@stylistic/
|
|
117
|
-
'@stylistic/
|
|
118
|
-
'@stylistic/
|
|
112
|
+
'@stylistic/no-confusing-arrow': ['error'],
|
|
113
|
+
'@stylistic/no-extra-semi': ['error'],
|
|
114
|
+
'@stylistic/no-floating-decimal': ['error'],
|
|
115
|
+
'@stylistic/no-mixed-operators': ['error'],
|
|
116
|
+
'@stylistic/no-mixed-spaces-and-tabs': ['error'],
|
|
117
|
+
'@stylistic/no-multi-spaces': ['error'],
|
|
118
|
+
'@stylistic/no-multiple-empty-lines': [
|
|
119
119
|
'error',
|
|
120
120
|
{
|
|
121
121
|
max: 2,
|
|
122
122
|
maxEOF: 1,
|
|
123
123
|
},
|
|
124
124
|
],
|
|
125
|
-
'@stylistic/
|
|
126
|
-
'@stylistic/
|
|
127
|
-
'@stylistic/
|
|
128
|
-
'@stylistic/
|
|
129
|
-
'@stylistic/
|
|
125
|
+
'@stylistic/no-tabs': ['error'],
|
|
126
|
+
'@stylistic/no-trailing-spaces': ['error'],
|
|
127
|
+
'@stylistic/no-whitespace-before-property': ['error'],
|
|
128
|
+
'@stylistic/nonblock-statement-body-position': [ 'error', 'beside' ],
|
|
129
|
+
'@stylistic/object-curly-newline': [
|
|
130
130
|
'error',
|
|
131
131
|
{
|
|
132
132
|
ObjectExpression: {
|
|
@@ -141,7 +141,7 @@ export default {
|
|
|
141
141
|
ExportDeclaration: 'always',
|
|
142
142
|
},
|
|
143
143
|
],
|
|
144
|
-
'@stylistic/
|
|
144
|
+
'@stylistic/object-curly-spacing': [
|
|
145
145
|
'error',
|
|
146
146
|
'always',
|
|
147
147
|
{
|
|
@@ -149,11 +149,11 @@ export default {
|
|
|
149
149
|
objectsInObjects: false,
|
|
150
150
|
},
|
|
151
151
|
],
|
|
152
|
-
'@stylistic/
|
|
153
|
-
'@stylistic/
|
|
154
|
-
'@stylistic/
|
|
155
|
-
'@stylistic/
|
|
156
|
-
'@stylistic/
|
|
152
|
+
'@stylistic/object-property-newline': ['error'],
|
|
153
|
+
'@stylistic/one-var-declaration-per-line': ['error'],
|
|
154
|
+
'@stylistic/operator-linebreak': [ 'error', 'before' ],
|
|
155
|
+
'@stylistic/padded-blocks': [ 'error', 'never' ],
|
|
156
|
+
'@stylistic/padding-line-between-statements': [
|
|
157
157
|
'error',
|
|
158
158
|
{
|
|
159
159
|
blankLine: 'always',
|
|
@@ -196,23 +196,31 @@ export default {
|
|
|
196
196
|
next: PADDING_STATEMENT.EXPORTS,
|
|
197
197
|
},
|
|
198
198
|
],
|
|
199
|
-
'@stylistic/
|
|
200
|
-
'@stylistic/
|
|
201
|
-
'@stylistic/
|
|
202
|
-
'@stylistic/
|
|
203
|
-
'@stylistic/
|
|
199
|
+
'@stylistic/quote-props': [ 'error', 'as-needed' ],
|
|
200
|
+
'@stylistic/quotes': [ 'error', 'single' ],
|
|
201
|
+
'@stylistic/rest-spread-spacing': [ 'error', 'never' ],
|
|
202
|
+
'@stylistic/semi': [ 'error', 'always' ],
|
|
203
|
+
'@stylistic/semi-spacing': [
|
|
204
204
|
'error',
|
|
205
205
|
{
|
|
206
206
|
after: true,
|
|
207
207
|
before: false,
|
|
208
208
|
},
|
|
209
209
|
],
|
|
210
|
-
'@stylistic/
|
|
211
|
-
'@stylistic/
|
|
212
|
-
'@stylistic/
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
210
|
+
'@stylistic/semi-style': [ 'error', 'last' ],
|
|
211
|
+
'@stylistic/space-before-blocks': [ 'error', 'always' ],
|
|
212
|
+
'@stylistic/space-before-function-paren': [
|
|
213
|
+
'error',
|
|
214
|
+
{
|
|
215
|
+
anonymous: 'never',
|
|
216
|
+
named: 'never',
|
|
217
|
+
asyncArrow: 'never',
|
|
218
|
+
catch: 'always',
|
|
219
|
+
},
|
|
220
|
+
],
|
|
221
|
+
'@stylistic/space-in-parens': [ 'error', 'never' ],
|
|
222
|
+
'@stylistic/space-infix-ops': ['error'],
|
|
223
|
+
'@stylistic/space-unary-ops': [
|
|
216
224
|
'error',
|
|
217
225
|
{
|
|
218
226
|
nonwords: true,
|
|
@@ -226,16 +234,16 @@ export default {
|
|
|
226
234
|
},
|
|
227
235
|
},
|
|
228
236
|
],
|
|
229
|
-
'@stylistic/
|
|
230
|
-
'@stylistic/
|
|
237
|
+
'@stylistic/spaced-comment': [ 'error', 'always' ],
|
|
238
|
+
'@stylistic/switch-colon-spacing': [
|
|
231
239
|
'error',
|
|
232
240
|
{
|
|
233
241
|
after: true,
|
|
234
242
|
before: false,
|
|
235
243
|
},
|
|
236
244
|
],
|
|
237
|
-
'@stylistic/
|
|
238
|
-
'@stylistic/
|
|
239
|
-
'@stylistic/
|
|
240
|
-
'@stylistic/
|
|
245
|
+
'@stylistic/template-curly-spacing': [ 'error', 'always' ],
|
|
246
|
+
'@stylistic/template-tag-spacing': [ 'error', 'always' ],
|
|
247
|
+
'@stylistic/wrap-regex': ['error'],
|
|
248
|
+
'@stylistic/yield-star-spacing': [ 'error', 'after' ],
|
|
241
249
|
};
|