@citrus-linting/eslint-config 0.18.0 → 0.19.0
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/package.json +1 -1
- package/rules/base.js +2 -2
- package/rules/jest.js +1 -9
- package/rules/svelte.js +9 -4
- package/rules/typescript.js +7 -6
package/package.json
CHANGED
package/rules/base.js
CHANGED
|
@@ -6,7 +6,7 @@ module.exports = {
|
|
|
6
6
|
"accessor-pairs": [2],
|
|
7
7
|
"array-callback-return": [2, { allowImplicit: true, checkForEach: true }],
|
|
8
8
|
// "block-scoped-var": 2,
|
|
9
|
-
"class-methods-use-this": [2],
|
|
9
|
+
// "class-methods-use-this": [2],
|
|
10
10
|
// complexity: [2],
|
|
11
11
|
// "consistent-return": [2],
|
|
12
12
|
curly: [2],
|
|
@@ -187,7 +187,7 @@ module.exports = {
|
|
|
187
187
|
"array-element-newline": [2, "consistent"],
|
|
188
188
|
"block-spacing": [2],
|
|
189
189
|
"brace-style": [2],
|
|
190
|
-
camelcase: [2],
|
|
190
|
+
camelcase: [2, { properties: "never" }],
|
|
191
191
|
// "capitalized-comments": [2],
|
|
192
192
|
"comma-dangle": [2],
|
|
193
193
|
"comma-spacing": [2],
|
package/rules/jest.js
CHANGED
|
@@ -5,7 +5,6 @@ module.exports = {
|
|
|
5
5
|
*/
|
|
6
6
|
"jest/consistent-test-it": [2, { fn: "test" }],
|
|
7
7
|
"jest/expect-expect": [2],
|
|
8
|
-
"jest/lowercase-name": [2, { ignore: ["describe"] }],
|
|
9
8
|
// "jest/max-nested-describe": [2],
|
|
10
9
|
// "jest/no-alias-methods": 2,
|
|
11
10
|
"jest/no-commented-out-tests": 2,
|
|
@@ -33,8 +32,6 @@ module.exports = {
|
|
|
33
32
|
"jest/prefer-hooks-on-top": 2,
|
|
34
33
|
"jest/prefer-spy-on": 2,
|
|
35
34
|
"jest/prefer-strict-equal": 2,
|
|
36
|
-
"jest/prefer-to-be-null": 2,
|
|
37
|
-
"jest/prefer-to-be-undefined": 2,
|
|
38
35
|
"jest/prefer-to-contain": 2,
|
|
39
36
|
"jest/prefer-to-have-length": 2,
|
|
40
37
|
"jest/prefer-todo": 2,
|
|
@@ -44,11 +41,6 @@ module.exports = {
|
|
|
44
41
|
"jest/unbound-method": [2, { ignoreStatic: true }],
|
|
45
42
|
"jest/valid-expect-in-promise": 2,
|
|
46
43
|
"jest/valid-expect": [2, { alwaysAwait: true }],
|
|
47
|
-
"jest/valid-title": [2]
|
|
48
|
-
|
|
49
|
-
/*
|
|
50
|
-
Possible Errors
|
|
51
|
-
*/
|
|
52
|
-
"jest/valid-describe": 2
|
|
44
|
+
"jest/valid-title": [2]
|
|
53
45
|
}
|
|
54
46
|
}
|
package/rules/svelte.js
CHANGED
|
@@ -4,9 +4,12 @@ module.exports = {
|
|
|
4
4
|
Possible Errors
|
|
5
5
|
*/
|
|
6
6
|
"@ota-meshi/svelte/no-dupe-else-if-blocks": 2,
|
|
7
|
+
"@ota-meshi/svelte/no-dupe-style-properties": 2,
|
|
7
8
|
"@ota-meshi/svelte/no-dynamic-slot-name": 2,
|
|
8
9
|
"@ota-meshi/svelte/no-not-function-handler": 2,
|
|
9
10
|
"@ota-meshi/svelte/no-object-in-text-mustaches": 2,
|
|
11
|
+
"@ota-meshi/svelte/no-shorthand-style-property-overrides": 2,
|
|
12
|
+
"@ota-meshi/svelte/no-unknown-style-directive-property": [2],
|
|
10
13
|
"@ota-meshi/svelte/valid-compile": [2],
|
|
11
14
|
|
|
12
15
|
/*
|
|
@@ -20,7 +23,9 @@ module.exports = {
|
|
|
20
23
|
*/
|
|
21
24
|
// "@ota-meshi/svelte/button-has-type": [2],
|
|
22
25
|
"@ota-meshi/svelte/no-at-debug-tags": 2,
|
|
26
|
+
"@ota-meshi/svelte/no-unused-svelte-ignore": 2,
|
|
23
27
|
"@ota-meshi/svelte/no-useless-mustaches": [2],
|
|
28
|
+
"@ota-meshi/svelte/require-optimized-style-attribute": 2,
|
|
24
29
|
|
|
25
30
|
/*
|
|
26
31
|
Stylistic Issues
|
|
@@ -36,8 +41,10 @@ module.exports = {
|
|
|
36
41
|
],
|
|
37
42
|
// "@ota-meshi/svelte/max-attributes-per-line": [2],
|
|
38
43
|
"@ota-meshi/svelte/mustache-spacing": [2],
|
|
39
|
-
|
|
44
|
+
"@ota-meshi/svelte/prefer-class-directive": 2,
|
|
45
|
+
"@ota-meshi/svelte/prefer-style-directive": 2,
|
|
40
46
|
"@ota-meshi/svelte/shorthand-attribute": [2],
|
|
47
|
+
"@ota-meshi/svelte/shorthand-directive": [2],
|
|
41
48
|
"@ota-meshi/svelte/spaced-html-comment": [2],
|
|
42
49
|
|
|
43
50
|
/*
|
|
@@ -49,14 +56,12 @@ module.exports = {
|
|
|
49
56
|
System
|
|
50
57
|
*/
|
|
51
58
|
"@ota-meshi/svelte/comment-directive": 2,
|
|
52
|
-
"@ota-meshi/svelte/dollar-prefixed-store-uses-vars": 2,
|
|
53
59
|
"@ota-meshi/svelte/system": 2,
|
|
54
60
|
|
|
55
61
|
/*
|
|
56
62
|
[other]
|
|
57
63
|
*/
|
|
58
64
|
"no-self-assign": 0,
|
|
59
|
-
"no-undef-init": 0
|
|
60
|
-
"@typescript-eslint/no-unnecessary-condition": 0
|
|
65
|
+
"no-undef-init": 0
|
|
61
66
|
}
|
|
62
67
|
}
|
package/rules/typescript.js
CHANGED
|
@@ -58,7 +58,7 @@ module.exports = {
|
|
|
58
58
|
"@typescript-eslint/no-var-requires": 2,
|
|
59
59
|
"@typescript-eslint/non-nullable-type-assertion-style": 2,
|
|
60
60
|
"@typescript-eslint/prefer-as-const": 2,
|
|
61
|
-
|
|
61
|
+
"@typescript-eslint/prefer-enum-initializers": 2,
|
|
62
62
|
"@typescript-eslint/prefer-function-type": 2,
|
|
63
63
|
"@typescript-eslint/prefer-includes": 2,
|
|
64
64
|
// "@typescript-eslint/prefer-literal-enum-member": [2],
|
|
@@ -195,6 +195,7 @@ module.exports = {
|
|
|
195
195
|
// "init-declarations": 0,
|
|
196
196
|
// "@typescript-eslint/init-declarations": [2],
|
|
197
197
|
camelcase: 0,
|
|
198
|
+
"new-cap": 0,
|
|
198
199
|
"no-underscore-dangle": 0,
|
|
199
200
|
"@typescript-eslint/naming-convention": [
|
|
200
201
|
2,
|
|
@@ -205,22 +206,22 @@ module.exports = {
|
|
|
205
206
|
{
|
|
206
207
|
selector: "memberLike",
|
|
207
208
|
modifiers: ["private"],
|
|
208
|
-
format:
|
|
209
|
+
format: null,
|
|
209
210
|
leadingUnderscore: "require"
|
|
210
211
|
},
|
|
211
212
|
{
|
|
212
213
|
selector: "memberLike",
|
|
213
214
|
modifiers: ["protected"],
|
|
214
|
-
format:
|
|
215
|
+
format: null,
|
|
215
216
|
leadingUnderscore: "require"
|
|
216
217
|
},
|
|
217
218
|
{
|
|
218
|
-
selector: "typeLike",
|
|
219
|
+
selector: ["enumMember", "typeLike"],
|
|
219
220
|
format: ["PascalCase"]
|
|
220
221
|
},
|
|
221
222
|
{
|
|
222
|
-
selector: "
|
|
223
|
-
format:
|
|
223
|
+
selector: ["objectLiteralProperty", "typeProperty"],
|
|
224
|
+
format: null
|
|
224
225
|
}
|
|
225
226
|
],
|
|
226
227
|
"no-shadow": 0,
|