@citrus-linting/eslint-config 0.19.0 → 0.20.1
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/README.md +2 -2
- package/package.json +1 -1
- package/rules/jest.js +0 -1
- package/rules/svelte.js +45 -28
- package/svelte-typescript.js +1 -1
- package/svelte.js +1 -1
package/README.md
CHANGED
|
@@ -69,7 +69,7 @@ Add `extends` field to your ESLint config:
|
|
|
69
69
|
Install dependencies:
|
|
70
70
|
|
|
71
71
|
```sh
|
|
72
|
-
npm add -D svelte-eslint-parser
|
|
72
|
+
npm add -D svelte-eslint-parser eslint-plugin-svelte @citrus-linting/eslint-config
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
Add `extends` field to your ESLint config:
|
|
@@ -95,7 +95,7 @@ Add `extends` field to your ESLint config:
|
|
|
95
95
|
Install dependencies:
|
|
96
96
|
|
|
97
97
|
```sh
|
|
98
|
-
npm add -D svelte-eslint-parser
|
|
98
|
+
npm add -D svelte-eslint-parser eslint-plugin-svelte @typescript-eslint/parser @typescript-eslint/eslint-plugin @citrus-linting/eslint-config
|
|
99
99
|
```
|
|
100
100
|
|
|
101
101
|
Add `extends` field to your ESLint config:
|
package/package.json
CHANGED
package/rules/jest.js
CHANGED
package/rules/svelte.js
CHANGED
|
@@ -3,60 +3,77 @@ module.exports = {
|
|
|
3
3
|
/*
|
|
4
4
|
Possible Errors
|
|
5
5
|
*/
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
6
|
+
"svelte/no-dom-manipulating": 2,
|
|
7
|
+
"svelte/no-dupe-else-if-blocks": 2,
|
|
8
|
+
"svelte/no-dupe-style-properties": 2,
|
|
9
|
+
"svelte/no-dynamic-slot-name": 2,
|
|
10
|
+
"svelte/no-export-load-in-svelte-module-in-kit-pages": 2,
|
|
11
|
+
"svelte/no-not-function-handler": 2,
|
|
12
|
+
"svelte/no-object-in-text-mustaches": 2,
|
|
13
|
+
"svelte/no-shorthand-style-property-overrides": 2,
|
|
14
|
+
"svelte/no-store-async": 2,
|
|
15
|
+
"svelte/no-unknown-style-directive-property": [2],
|
|
16
|
+
"svelte/require-store-callbacks-use-set-param": 2,
|
|
17
|
+
"svelte/require-store-reactive-access": 2,
|
|
18
|
+
"svelte/valid-compile": [2],
|
|
19
|
+
"svelte/valid-prop-names-in-kit-pages": 2,
|
|
14
20
|
|
|
15
21
|
/*
|
|
16
22
|
Security Vulnerability
|
|
17
23
|
*/
|
|
18
|
-
"
|
|
19
|
-
"
|
|
24
|
+
"svelte/no-at-html-tags": 2,
|
|
25
|
+
"svelte/no-target-blank": [2],
|
|
20
26
|
|
|
21
27
|
/*
|
|
22
28
|
Best Practices
|
|
23
29
|
*/
|
|
24
|
-
// "
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
30
|
+
// "svelte/button-has-type": [2],
|
|
31
|
+
"svelte/no-at-debug-tags": 2,
|
|
32
|
+
"svelte/no-reactive-functions": 2,
|
|
33
|
+
"svelte/no-reactive-literals": 2,
|
|
34
|
+
"svelte/no-unused-svelte-ignore": 2,
|
|
35
|
+
"svelte/no-useless-mustaches": [2],
|
|
36
|
+
// "svelte/prefer-destructured-store-props": 2,
|
|
37
|
+
"svelte/require-optimized-style-attribute": 2,
|
|
38
|
+
"svelte/require-stores-init": 2,
|
|
29
39
|
|
|
30
40
|
/*
|
|
31
41
|
Stylistic Issues
|
|
32
42
|
*/
|
|
33
|
-
"
|
|
34
|
-
"
|
|
43
|
+
"svelte/derived-has-same-inputs-outputs": 2,
|
|
44
|
+
"svelte/first-attribute-linebreak": [2],
|
|
45
|
+
"svelte/html-closing-bracket-spacing": [2],
|
|
46
|
+
"svelte/html-quotes": [2],
|
|
47
|
+
"svelte/html-self-closing": [2],
|
|
35
48
|
indent: 0,
|
|
36
|
-
"
|
|
49
|
+
"svelte/indent": [
|
|
37
50
|
2,
|
|
38
51
|
{
|
|
39
52
|
indent: 4
|
|
40
53
|
}
|
|
41
54
|
],
|
|
42
|
-
// "
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
55
|
+
// "svelte/max-attributes-per-line": [2],
|
|
56
|
+
"svelte/mustache-spacing": [2],
|
|
57
|
+
"svelte/no-extra-reactive-curlies": 2,
|
|
58
|
+
"svelte/no-spaces-around-equal-signs-in-attribute": 2,
|
|
59
|
+
"svelte/prefer-class-directive": 2,
|
|
60
|
+
"svelte/prefer-style-directive": 2,
|
|
61
|
+
"svelte/shorthand-attribute": [2],
|
|
62
|
+
"svelte/shorthand-directive": [2],
|
|
63
|
+
"svelte/sort-attributes": [2],
|
|
64
|
+
"svelte/spaced-html-comment": [2],
|
|
49
65
|
|
|
50
66
|
/*
|
|
51
67
|
Extension Rules
|
|
52
68
|
*/
|
|
53
|
-
// "
|
|
69
|
+
// "svelte/no-inner-declarations": [2],
|
|
70
|
+
"svelte/no-trailing-spaces": [2],
|
|
54
71
|
|
|
55
72
|
/*
|
|
56
73
|
System
|
|
57
74
|
*/
|
|
58
|
-
"
|
|
59
|
-
"
|
|
75
|
+
"svelte/comment-directive": 2,
|
|
76
|
+
"svelte/system": 2,
|
|
60
77
|
|
|
61
78
|
/*
|
|
62
79
|
[other]
|
package/svelte-typescript.js
CHANGED