@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 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 @ota-meshi/eslint-plugin-svelte @citrus-linting/eslint-config
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 @ota-meshi/eslint-plugin-svelte @typescript-eslint/parser @typescript-eslint/eslint-plugin @citrus-linting/eslint-config
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citrus-linting/eslint-config",
3
- "version": "0.19.0",
3
+ "version": "0.20.1",
4
4
  "description": "ESLint config used by CitRUS.",
5
5
  "keywords": [
6
6
  "config",
package/rules/jest.js CHANGED
@@ -20,7 +20,6 @@ module.exports = {
20
20
  // "jest/no-if": 2,
21
21
  "jest/no-interpolation-in-snapshots": 2,
22
22
  "jest/no-jasmine-globals": 2,
23
- "jest/no-jest-import": 2,
24
23
  // "jest/no-large-snapshots": [2],
25
24
  "jest/no-mocks-import": 2,
26
25
  // "jest/no-restricted-matchers": [2],
package/rules/svelte.js CHANGED
@@ -3,60 +3,77 @@ module.exports = {
3
3
  /*
4
4
  Possible Errors
5
5
  */
6
- "@ota-meshi/svelte/no-dupe-else-if-blocks": 2,
7
- "@ota-meshi/svelte/no-dupe-style-properties": 2,
8
- "@ota-meshi/svelte/no-dynamic-slot-name": 2,
9
- "@ota-meshi/svelte/no-not-function-handler": 2,
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],
13
- "@ota-meshi/svelte/valid-compile": [2],
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
- "@ota-meshi/svelte/no-at-html-tags": 2,
19
- "@ota-meshi/svelte/no-target-blank": [2],
24
+ "svelte/no-at-html-tags": 2,
25
+ "svelte/no-target-blank": [2],
20
26
 
21
27
  /*
22
28
  Best Practices
23
29
  */
24
- // "@ota-meshi/svelte/button-has-type": [2],
25
- "@ota-meshi/svelte/no-at-debug-tags": 2,
26
- "@ota-meshi/svelte/no-unused-svelte-ignore": 2,
27
- "@ota-meshi/svelte/no-useless-mustaches": [2],
28
- "@ota-meshi/svelte/require-optimized-style-attribute": 2,
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
- "@ota-meshi/svelte/first-attribute-linebreak": [2],
34
- "@ota-meshi/svelte/html-quotes": [2],
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
- "@ota-meshi/svelte/indent": [
49
+ "svelte/indent": [
37
50
  2,
38
51
  {
39
52
  indent: 4
40
53
  }
41
54
  ],
42
- // "@ota-meshi/svelte/max-attributes-per-line": [2],
43
- "@ota-meshi/svelte/mustache-spacing": [2],
44
- "@ota-meshi/svelte/prefer-class-directive": 2,
45
- "@ota-meshi/svelte/prefer-style-directive": 2,
46
- "@ota-meshi/svelte/shorthand-attribute": [2],
47
- "@ota-meshi/svelte/shorthand-directive": [2],
48
- "@ota-meshi/svelte/spaced-html-comment": [2],
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
- // "@ota-meshi/svelte/no-inner-declarations": [2],
69
+ // "svelte/no-inner-declarations": [2],
70
+ "svelte/no-trailing-spaces": [2],
54
71
 
55
72
  /*
56
73
  System
57
74
  */
58
- "@ota-meshi/svelte/comment-directive": 2,
59
- "@ota-meshi/svelte/system": 2,
75
+ "svelte/comment-directive": 2,
76
+ "svelte/system": 2,
60
77
 
61
78
  /*
62
79
  [other]
@@ -9,7 +9,7 @@ module.exports = {
9
9
  project: "./tsconfig.eslint.json",
10
10
  extraFileExtensions: [".svelte"]
11
11
  },
12
- plugins: ["@typescript-eslint", "@ota-meshi/svelte"]
12
+ plugins: ["@typescript-eslint", "svelte"]
13
13
  }
14
14
  ]
15
15
  }
package/svelte.js CHANGED
@@ -4,7 +4,7 @@ module.exports = {
4
4
  files: ["*.svelte"],
5
5
  extends: ["./rules/svelte"],
6
6
  parser: "svelte-eslint-parser",
7
- plugins: ["@ota-meshi/svelte"]
7
+ plugins: ["svelte"]
8
8
  }
9
9
  ]
10
10
  }