@citrus-linting/eslint-config 0.17.5 → 0.18.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/package.json +1 -1
- package/rules/base.js +1 -1
- package/rules/jest.js +1 -9
- package/rules/svelte.js +3 -0
- package/rules/typescript.js +2 -1
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],
|
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,6 +4,7 @@ module.exports = {
|
|
|
4
4
|
Possible Errors
|
|
5
5
|
*/
|
|
6
6
|
"@ota-meshi/svelte/no-dupe-else-if-blocks": 2,
|
|
7
|
+
"@ota-meshi/svelte/no-dynamic-slot-name": 2,
|
|
7
8
|
"@ota-meshi/svelte/no-not-function-handler": 2,
|
|
8
9
|
"@ota-meshi/svelte/no-object-in-text-mustaches": 2,
|
|
9
10
|
"@ota-meshi/svelte/valid-compile": [2],
|
|
@@ -34,6 +35,7 @@ module.exports = {
|
|
|
34
35
|
}
|
|
35
36
|
],
|
|
36
37
|
// "@ota-meshi/svelte/max-attributes-per-line": [2],
|
|
38
|
+
"@ota-meshi/svelte/mustache-spacing": [2],
|
|
37
39
|
// "@ota-meshi/svelte/prefer-class-directive": 2,
|
|
38
40
|
"@ota-meshi/svelte/shorthand-attribute": [2],
|
|
39
41
|
"@ota-meshi/svelte/spaced-html-comment": [2],
|
|
@@ -47,6 +49,7 @@ module.exports = {
|
|
|
47
49
|
System
|
|
48
50
|
*/
|
|
49
51
|
"@ota-meshi/svelte/comment-directive": 2,
|
|
52
|
+
"@ota-meshi/svelte/dollar-prefixed-store-uses-vars": 2,
|
|
50
53
|
"@ota-meshi/svelte/system": 2,
|
|
51
54
|
|
|
52
55
|
/*
|
package/rules/typescript.js
CHANGED
|
@@ -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,
|
|
@@ -233,7 +234,7 @@ module.exports = {
|
|
|
233
234
|
}
|
|
234
235
|
],
|
|
235
236
|
"no-unused-vars": 0,
|
|
236
|
-
"@typescript-eslint/no-unused-vars": [2, { ignoreRestSiblings: true }],
|
|
237
|
+
"@typescript-eslint/no-unused-vars": [2, { ignoreRestSiblings: true, caughtErrors: "all" }],
|
|
237
238
|
"no-use-before-define": 0,
|
|
238
239
|
"@typescript-eslint/no-use-before-define": [2]
|
|
239
240
|
// "@typescript-eslint/unified-signatures": 2
|