@citrus-linting/eslint-config 0.17.1 → 0.17.5

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
@@ -100,7 +100,7 @@ npm add -D svelte-eslint-parser @ota-meshi/eslint-plugin-svelte @typescript-esli
100
100
 
101
101
  Add `extends` field to your ESLint config:
102
102
 
103
- > **NOTE:** Need tsconfig.eslint.json file
103
+ > **NOTE:** Need tsconfig.eslint.json file.
104
104
 
105
105
  ```jsonc
106
106
  {
package/package.json CHANGED
@@ -1,28 +1,28 @@
1
1
  {
2
- "name": "@citrus-linting/eslint-config",
3
- "version": "0.17.1",
4
- "description": "ESLint config used by CitRUS.",
5
- "keywords": [
6
- "config",
7
- "eslint",
8
- "javascript",
9
- "typescript",
10
- "svelte",
11
- "json",
12
- "yaml",
13
- "jest",
14
- "jsdoc"
15
- ],
16
- "homepage": "https://github.com/CitRUSprod/citrus-linting#readme",
17
- "repository": {
18
- "type": "git",
19
- "url": "https://github.com/CitRUSprod/citrus-linting.git",
20
- "directory": "packages/eslint-config"
21
- },
22
- "license": "MIT",
23
- "author": "CitRUS",
24
- "main": "index.js",
25
- "publishConfig": {
26
- "access": "public"
27
- }
28
- }
2
+ "name": "@citrus-linting/eslint-config",
3
+ "version": "0.17.5",
4
+ "description": "ESLint config used by CitRUS.",
5
+ "keywords": [
6
+ "config",
7
+ "eslint",
8
+ "javascript",
9
+ "typescript",
10
+ "svelte",
11
+ "json",
12
+ "yaml",
13
+ "jest",
14
+ "jsdoc"
15
+ ],
16
+ "homepage": "https://github.com/CitRUSprod/citrus-linting#readme",
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "https://github.com/CitRUSprod/citrus-linting.git",
20
+ "directory": "packages/eslint-config"
21
+ },
22
+ "license": "MIT",
23
+ "author": "CitRUS",
24
+ "main": "index.js",
25
+ "publishConfig": {
26
+ "access": "public"
27
+ }
28
+ }
package/rules/base.js CHANGED
@@ -56,7 +56,7 @@ module.exports = {
56
56
  "no-proto": 2,
57
57
  // "no-redeclare": [2],
58
58
  // "no-restricted-properties": [2],
59
- "no-return-assign": [2, "always"],
59
+ "no-return-assign": [2],
60
60
  "no-return-await": 2,
61
61
  "no-script-url": 2,
62
62
  "no-self-assign": [2],
@@ -314,7 +314,7 @@ module.exports = {
314
314
  "no-undef": [2, { typeof: true }],
315
315
  "no-undef-init": 2,
316
316
  // "no-undefined": 2,
317
- "no-unused-vars": [2, { ignoreRestSiblings: true }],
317
+ "no-unused-vars": [2, { ignoreRestSiblings: true, caughtErrors: "all" }],
318
318
  "no-use-before-define": [2]
319
319
  }
320
320
  }
package/rules/svelte.js CHANGED
@@ -52,6 +52,7 @@ module.exports = {
52
52
  /*
53
53
  [other]
54
54
  */
55
+ "no-self-assign": 0,
55
56
  "no-undef-init": 0,
56
57
  "@typescript-eslint/no-unnecessary-condition": 0
57
58
  }
@@ -61,7 +61,7 @@ module.exports = {
61
61
  // "@typescript-eslint/prefer-enum-initializers": 2,
62
62
  "@typescript-eslint/prefer-function-type": 2,
63
63
  "@typescript-eslint/prefer-includes": 2,
64
- "@typescript-eslint/prefer-literal-enum-member": 2,
64
+ // "@typescript-eslint/prefer-literal-enum-member": [2],
65
65
  // "@typescript-eslint/prefer-namespace-keyword": 2,
66
66
  "@typescript-eslint/prefer-nullish-coalescing": [2],
67
67
  "@typescript-eslint/prefer-optional-chain": 2,