@eslinted/defaults 12.9.0 → 12.11.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.
Files changed (128) hide show
  1. package/dist/ignores/global.js +0 -2
  2. package/dist/ignores/global.js.map +1 -1
  3. package/dist/index.d.ts +170 -1435
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/rules/index.d.ts +159 -817
  6. package/dist/rules/index.d.ts.map +1 -1
  7. package/dist/rules/scopes/css/enable.d.ts +2 -7
  8. package/dist/rules/scopes/css/enable.d.ts.map +1 -1
  9. package/dist/rules/scopes/css/enable.js +3 -19
  10. package/dist/rules/scopes/css/enable.js.map +1 -1
  11. package/dist/rules/scopes/css/index.d.ts +2 -7
  12. package/dist/rules/scopes/css/index.d.ts.map +1 -1
  13. package/dist/rules/scopes/enable.d.ts +35 -186
  14. package/dist/rules/scopes/enable.d.ts.map +1 -1
  15. package/dist/rules/scopes/enable.js +68 -329
  16. package/dist/rules/scopes/enable.js.map +1 -1
  17. package/dist/rules/scopes/enable.style.d.ts +42 -250
  18. package/dist/rules/scopes/enable.style.d.ts.map +1 -1
  19. package/dist/rules/scopes/enable.style.js +45 -388
  20. package/dist/rules/scopes/enable.style.js.map +1 -1
  21. package/dist/rules/scopes/html/index.d.ts +5 -18
  22. package/dist/rules/scopes/html/index.d.ts.map +1 -1
  23. package/dist/rules/scopes/html/plugin/index.d.ts +5 -18
  24. package/dist/rules/scopes/html/plugin/index.d.ts.map +1 -1
  25. package/dist/rules/scopes/html/plugin/index.js +7 -63
  26. package/dist/rules/scopes/html/plugin/index.js.map +1 -1
  27. package/dist/rules/scopes/index.d.ts +77 -436
  28. package/dist/rules/scopes/index.d.ts.map +1 -1
  29. package/dist/rules/scopes/json/enable.js +2 -7
  30. package/dist/rules/scopes/json/enable.js.map +1 -1
  31. package/dist/rules/scopes/json/index.d.ts +7 -20
  32. package/dist/rules/scopes/json/index.d.ts.map +1 -1
  33. package/dist/rules/scopes/json/plugin/extension.d.ts +7 -20
  34. package/dist/rules/scopes/json/plugin/extension.d.ts.map +1 -1
  35. package/dist/rules/scopes/json/plugin/extension.js +9 -48
  36. package/dist/rules/scopes/json/plugin/extension.js.map +1 -1
  37. package/dist/rules/scopes/json/plugin/index.js +2 -9
  38. package/dist/rules/scopes/json/plugin/index.js.map +1 -1
  39. package/dist/rules/scopes/jsonc/plugin/index.js +1 -2
  40. package/dist/rules/scopes/jsonc/plugin/index.js.map +1 -1
  41. package/dist/rules/scopes/jsoncc/plugin/index.js +1 -2
  42. package/dist/rules/scopes/jsoncc/plugin/index.js.map +1 -1
  43. package/dist/rules/scopes/mocha/chai/expect.js +1 -5
  44. package/dist/rules/scopes/mocha/chai/expect.js.map +1 -1
  45. package/dist/rules/scopes/mocha/chai/index.d.ts +0 -2
  46. package/dist/rules/scopes/mocha/chai/index.d.ts.map +1 -1
  47. package/dist/rules/scopes/mocha/chai/index.js +1 -4
  48. package/dist/rules/scopes/mocha/chai/index.js.map +1 -1
  49. package/dist/rules/scopes/mocha/disable.js +2 -3
  50. package/dist/rules/scopes/mocha/disable.js.map +1 -1
  51. package/dist/rules/scopes/mocha/enable.d.ts +3 -10
  52. package/dist/rules/scopes/mocha/enable.d.ts.map +1 -1
  53. package/dist/rules/scopes/mocha/enable.js +4 -31
  54. package/dist/rules/scopes/mocha/enable.js.map +1 -1
  55. package/dist/rules/scopes/mocha/index.d.ts +3 -12
  56. package/dist/rules/scopes/mocha/index.d.ts.map +1 -1
  57. package/dist/rules/scopes/svelte/disable.js +6 -9
  58. package/dist/rules/scopes/svelte/disable.js.map +1 -1
  59. package/dist/rules/scopes/svelte/enable.d.ts +19 -91
  60. package/dist/rules/scopes/svelte/enable.d.ts.map +1 -1
  61. package/dist/rules/scopes/svelte/enable.js +23 -179
  62. package/dist/rules/scopes/svelte/enable.js.map +1 -1
  63. package/dist/rules/scopes/svelte/extension/disable.js +2 -3
  64. package/dist/rules/scopes/svelte/extension/disable.js.map +1 -1
  65. package/dist/rules/scopes/svelte/extension/index.d.ts +2 -7
  66. package/dist/rules/scopes/svelte/extension/index.d.ts.map +1 -1
  67. package/dist/rules/scopes/svelte/extension/index.js +3 -13
  68. package/dist/rules/scopes/svelte/extension/index.js.map +1 -1
  69. package/dist/rules/scopes/svelte/index.d.ts +21 -98
  70. package/dist/rules/scopes/svelte/index.d.ts.map +1 -1
  71. package/dist/rules/scopes/ts/disable.js +4 -5
  72. package/dist/rules/scopes/ts/disable.js.map +1 -1
  73. package/dist/rules/scopes/ts/enable.d.ts +31 -163
  74. package/dist/rules/scopes/ts/enable.d.ts.map +1 -1
  75. package/dist/rules/scopes/ts/enable.js +34 -408
  76. package/dist/rules/scopes/ts/enable.js.map +1 -1
  77. package/dist/rules/scopes/ts/extension/disable.js +1 -18
  78. package/dist/rules/scopes/ts/extension/disable.js.map +1 -1
  79. package/dist/rules/scopes/ts/extension/index.d.ts +1 -20
  80. package/dist/rules/scopes/ts/extension/index.d.ts.map +1 -1
  81. package/dist/rules/scopes/ts/extension/index.js +2 -46
  82. package/dist/rules/scopes/ts/extension/index.js.map +1 -1
  83. package/dist/rules/scopes/ts/index.d.ts +32 -183
  84. package/dist/rules/scopes/ts/index.d.ts.map +1 -1
  85. package/dist/rules/scopes/yml/index.d.ts +12 -43
  86. package/dist/rules/scopes/yml/index.d.ts.map +1 -1
  87. package/dist/rules/scopes/yml/plugin/extension.d.ts +5 -22
  88. package/dist/rules/scopes/yml/plugin/extension.d.ts.map +1 -1
  89. package/dist/rules/scopes/yml/plugin/extension.js +9 -41
  90. package/dist/rules/scopes/yml/plugin/extension.js.map +1 -1
  91. package/dist/rules/scopes/yml/plugin/index.d.ts +7 -21
  92. package/dist/rules/scopes/yml/plugin/index.d.ts.map +1 -1
  93. package/dist/rules/scopes/yml/plugin/index.js +9 -64
  94. package/dist/rules/scopes/yml/plugin/index.js.map +1 -1
  95. package/dist/settings/registry/manifests/css.js +1 -3
  96. package/dist/settings/registry/manifests/css.js.map +1 -1
  97. package/dist/settings/registry/manifests/html.js +1 -2
  98. package/dist/settings/registry/manifests/html.js.map +1 -1
  99. package/dist/settings/registry/manifests/js.js +2 -6
  100. package/dist/settings/registry/manifests/js.js.map +1 -1
  101. package/dist/settings/registry/manifests/json.js +2 -2
  102. package/dist/settings/registry/manifests/json.js.map +1 -1
  103. package/dist/settings/registry/manifests/jsonc.js +2 -6
  104. package/dist/settings/registry/manifests/jsonc.js.map +1 -1
  105. package/dist/settings/registry/manifests/jsoncc.js +2 -6
  106. package/dist/settings/registry/manifests/jsoncc.js.map +1 -1
  107. package/dist/settings/registry/manifests/mocha.js +2 -6
  108. package/dist/settings/registry/manifests/mocha.js.map +1 -1
  109. package/dist/settings/registry/manifests/ts.js +7 -20
  110. package/dist/settings/registry/manifests/ts.js.map +1 -1
  111. package/dist/settings/registry/manifests/yml.js +1 -4
  112. package/dist/settings/registry/manifests/yml.js.map +1 -1
  113. package/package.json +1 -1
  114. package/src/rules/scopes/css/enable.ts +2 -13
  115. package/src/rules/scopes/enable.style.ts +67 -391
  116. package/src/rules/scopes/enable.ts +132 -318
  117. package/src/rules/scopes/html/plugin/index.ts +18 -40
  118. package/src/rules/scopes/json/plugin/extension.ts +9 -47
  119. package/src/rules/scopes/mocha/chai/index.ts +0 -2
  120. package/src/rules/scopes/mocha/enable.ts +3 -19
  121. package/src/rules/scopes/svelte/disable.ts +1 -1
  122. package/src/rules/scopes/svelte/enable.ts +22 -157
  123. package/src/rules/scopes/svelte/extension/index.ts +1 -11
  124. package/src/rules/scopes/ts/enable.ts +34 -424
  125. package/src/rules/scopes/ts/extension/index.ts +2 -27
  126. package/src/rules/scopes/yml/plugin/extension.ts +4 -37
  127. package/src/rules/scopes/yml/plugin/index.ts +8 -58
  128. package/tsconfig.json +2 -2
@@ -2,7 +2,6 @@ import {
2
2
  ID,
3
3
  // OFF,
4
4
  ON,
5
- never,
6
5
  } from "../../../_strings";
7
6
 
8
7
  export const HtmlEnablePlugin = {
@@ -26,23 +25,12 @@ export const HtmlEnablePlugin = {
26
25
  // "@html-eslint/prefer-https": OFF /* @CONFLICT: not everything is https */,
27
26
  // "@html-eslint/require-attrs": OFF,
28
27
  "@html-eslint/require-button-type": ON,
29
- "@html-eslint/require-closing-tags": [
30
- ON,
31
- {
32
- selfClosing: never,
33
- selfClosingCustomPatterns: [""] /* @CONFIGURE: regex[] = custom pattern */,
34
- },
35
- ],
28
+ "@html-eslint/require-closing-tags": ON,
36
29
  "@html-eslint/require-doctype": ON,
37
30
  // "@html-eslint/require-explicit-size": OFF /* preference, prefer using css */,
38
31
  "@html-eslint/require-li-container": ON,
39
32
  "@html-eslint/require-meta-charset": ON,
40
- "@html-eslint/use-baseline": [
41
- ON,
42
- {
43
- available: "widely" /* "widely" | "newly" | integer (year) */,
44
- },
45
- ],
33
+ "@html-eslint/use-baseline": ON,
46
34
  // #endregion
47
35
 
48
36
  // #region SEO
@@ -68,12 +56,7 @@ export const HtmlEnablePlugin = {
68
56
  "@html-eslint/no-skip-heading-levels": ON,
69
57
  "@html-eslint/require-form-method": ON,
70
58
  "@html-eslint/require-frame-title": ON,
71
- "@html-eslint/require-img-alt": [
72
- ON,
73
- {
74
- substitute: [],
75
- },
76
- ],
59
+ "@html-eslint/require-img-alt": ON,
77
60
  "@html-eslint/require-input-label": ON,
78
61
  "@html-eslint/require-meta-viewport": ON,
79
62
  // #endregion
@@ -84,7 +67,7 @@ export const HtmlEnablePlugin = {
84
67
  ON,
85
68
  {
86
69
  ifAttrsMoreThan: 0,
87
- closeStyle: "newline",
70
+ // closeStyle: "newline" /* sameline | @default newline */,
88
71
  },
89
72
  ],
90
73
  "@html-eslint/element-newline": [
@@ -97,38 +80,33 @@ export const HtmlEnablePlugin = {
97
80
  // "@html-eslint/id-naming-convention": OFF,
98
81
  "@html-eslint/indent": [
99
82
  ON,
100
- 2,
83
+ 2 /* tab | number | @default 4 */,
84
+ // {
85
+ // Attribute: 1 /* number | @default 1 */,
86
+ // tagChildrenIndent: {
87
+ // html: 0 /* number */,
88
+ // } /* @default {} */,
89
+ // },
101
90
  ] /* TBD: @CONFIGURE: indents for specific child tags: https://html-eslint.org/docs/rules/indent */,
102
91
  "@html-eslint/lowercase": ON,
103
92
  "@html-eslint/no-extra-spacing-attrs": [
104
93
  ON,
105
94
  {
106
- enforceBeforeSelfClose: false,
107
- disallowMissing: true,
108
- disallowTabs: true,
109
- disallowInAssignment: true,
110
- },
111
- ],
112
- "@html-eslint/no-extra-spacing-text": [
113
- ON,
114
- {
115
- skip: [],
95
+ // enforceBeforeSelfClose: false /* @default false */,
96
+ disallowMissing: true /* @default false */,
97
+ disallowTabs: true /* @default false */,
98
+ disallowInAssignment: true /* @default false */,
116
99
  },
117
100
  ],
101
+ "@html-eslint/no-extra-spacing-text": ON,
118
102
  "@html-eslint/no-multiple-empty-lines": [
119
103
  ON,
120
104
  {
121
- max: 1,
105
+ max: 1 /* number | @default 2 */,
122
106
  },
123
107
  ],
124
108
  "@html-eslint/no-trailing-spaces": ON,
125
- "@html-eslint/quotes": [
126
- ON,
127
- "double",
128
- {
129
- enforceTemplatedAttrValue: false,
130
- },
131
- ],
109
+ "@html-eslint/quotes": ON,
132
110
  // "@html-eslint/sort-attrs": OFF,
133
111
  // #endregion
134
112
  } as const,
@@ -4,10 +4,6 @@ import {
4
4
  ON,
5
5
  always,
6
6
  consistent,
7
- double,
8
- last,
9
- never,
10
- strict,
11
7
  } from "../../../_strings";
12
8
 
13
9
  export const JsonEnablePluginExtension = {
@@ -15,39 +11,18 @@ export const JsonEnablePluginExtension = {
15
11
  rules: {
16
12
  // DOC: https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#extension-rules
17
13
  // "jsonc/array-bracket-newline": OFF /* @OVERRIDE: BIGGER BUG: i mean this basically just doesn't work, even with multiple lines it will still fail| BUG: the spec says: `requires line breaks if the number of elements is at least the given integer. If this is 0, this condition will act the same as the option "always". If this is null (the default), this condition is disabled`. However, when null, the jsonc plugin actually errors when there are linebreaks with a single item | (was: MUST match @stylistic/array-bracket-newline) */,
18
- "jsonc/array-bracket-spacing": [
19
- ON,
20
- never,
21
- {
22
- singleValue: false,
23
- objectsInArrays: false,
24
- arraysInArrays: false,
25
- },
26
- ] /* MUST match @stylistic/array-bracket-spacing */,
14
+ "jsonc/array-bracket-spacing": ON /* MUST match @stylistic/array-bracket-spacing */,
27
15
  "jsonc/array-element-newline": [
28
16
  ON,
29
17
  consistent,
30
- ],
31
- "jsonc/comma-dangle": [
32
- ON,
33
- never,
34
- ] /* trailing commas are NOT allowed in JSON */,
35
- "jsonc/comma-style": [
36
- ON,
37
- last,
38
- ],
18
+ ] /* WOULD match @stylistic/array-element-newline, but jsonc plugin has slightly different options */,
19
+ "jsonc/comma-dangle": ON /* trailing commas are NOT allowed in JSON */,
20
+ "jsonc/comma-style": ON,
39
21
  "jsonc/indent": [
40
22
  ON,
41
23
  2,
42
24
  ],
43
- "jsonc/key-spacing": [
44
- ON,
45
- {
46
- beforeColon: false,
47
- afterColon: true,
48
- mode: strict,
49
- },
50
- ] /* MUST match @stylistic/key-spacing */,
25
+ "jsonc/key-spacing": ON /* MUST match @stylistic/key-spacing */,
51
26
  // "jsonc/no-dupe-keys": OFF /* ESLint: json/no-duplicate-keys */,
52
27
  "jsonc/no-floating-decimal": ON,
53
28
  "jsonc/no-irregular-whitespace": [
@@ -70,29 +45,16 @@ export const JsonEnablePluginExtension = {
70
45
  {
71
46
  consistent: true,
72
47
  multiline: true,
73
- minProperties: 2,
48
+ minProperties: 2 /* instead of 3 in stylistic */,
74
49
  },
75
- ] /* @OVERRIDE CHILD of @stylistic/object-curly-newline */,
50
+ ] /* @OVERRIDE @stylistic/object-curly-newline */,
76
51
  "jsonc/object-curly-spacing": [
77
52
  ON,
78
53
  always,
79
- {
80
- arraysInObjects: true,
81
- objectsInObjects: true,
82
- },
83
54
  ] /* MUST match @stylistic/object-curly-spacing */,
84
55
  "jsonc/object-property-newline": ON /* MUST match @stylistic/object-property-newline */,
85
- "jsonc/quote-props": [
86
- ON,
87
- always,
88
- ],
89
- "jsonc/quotes": [
90
- ON,
91
- double,
92
- {
93
- avoidEscape: false,
94
- },
95
- ],
56
+ "jsonc/quote-props": ON,
57
+ "jsonc/quotes": ON,
96
58
  "jsonc/space-unary-ops": ON,
97
59
  } as const,
98
60
  };
@@ -12,8 +12,6 @@ export const MochaEnablePluginChai = {
12
12
  {
13
13
  allowShortCircuit: true,
14
14
  allowTernary: true,
15
- allowTaggedTemplates: true,
16
- enforceForJSX: false,
17
15
  },
18
16
  ] /* TSLint */,
19
17
  } as const,
@@ -10,18 +10,8 @@ export const MochaEnable = {
10
10
  // DOC: https://github.com/lo1tuma/eslint-plugin-mocha/tree/main?tab=readme-ov-file#rules
11
11
  // "mocha/consistent-interface": OFF /* unable, must choose BDD or TDD first */,
12
12
  // "mocha/consistent-spacing-between-blocks": OFF,
13
- "mocha/handle-done-callback": [
14
- ON,
15
- {
16
- ignorePending: false,
17
- },
18
- ],
19
- "mocha/max-top-level-suites": [
20
- ON,
21
- {
22
- limit: 1,
23
- },
24
- ],
13
+ "mocha/handle-done-callback": ON,
14
+ "mocha/max-top-level-suites": ON,
25
15
  "mocha/no-async-suite": ON,
26
16
  "mocha/no-empty-title": ON,
27
17
  "mocha/no-exclusive-tests": ON,
@@ -39,13 +29,7 @@ export const MochaEnable = {
39
29
  "mocha/no-sibling-hooks": ON,
40
30
  // "mocha/no-synchronous-tests": OFF,
41
31
  "mocha/no-top-level-hooks": ON,
42
- "mocha/prefer-arrow-callback": [
43
- ON,
44
- {
45
- allowNamedFunctions: false,
46
- allowUnboundThis: true,
47
- },
48
- ] /* MUST match ../js/enable.ts, which is TS-capable -- is this?? */,
32
+ "mocha/prefer-arrow-callback": ON /* MUST match ../js/enable.ts, which is TS-capable -- is this?? */,
49
33
  // "mocha/valid-suite-title": OFF /* preference */,
50
34
  // "mocha/valid-test-title": OFF /* preference */,
51
35
  } as const,
@@ -8,7 +8,7 @@ export const SvelteDisable = {
8
8
  rules: {
9
9
  // ESLint core rules known to cause problems with `.svelte`.
10
10
  // DOC: https://github.com/sveltejs/eslint-plugin-svelte/blob/ca37fbbe82d01019946e12eeb1b57c2a5736c018/packages/eslint-plugin-svelte/src/configs/base.ts
11
- "no-inner-declarations": OFF /* The AST generated by svelte-eslint-parser will false positives in it rule because the root node of the script is not the `Program`. */,
11
+ "no-inner-declarations": OFF /* The AST generated by svelte-eslint-parser will false positive because the root node of the script is not `Program`. */,
12
12
  "no-self-assign": OFF /* Self assign is one of way to update reactive value in Svelte */,
13
13
  "no-unused-vars": OFF /* breaks use of svelte global */,
14
14
  "@typescript-eslint/no-unused-vars": OFF /* TS: breaks use of svelte global */,
@@ -3,10 +3,8 @@ import {
3
3
  // OFF,
4
4
  ON,
5
5
  all,
6
- always,
7
6
  below,
8
7
  double,
9
- ignore,
10
8
  never,
11
9
  } from "../../_strings";
12
10
 
@@ -24,43 +22,22 @@ export const SvelteEnable = {
24
22
  "svelte/no-not-function-handler": ON,
25
23
  "svelte/no-object-in-text-mustaches": ON,
26
24
  "svelte/no-raw-special-elements": ON,
27
- "svelte/no-reactive-reassign": [
28
- ON,
29
- {
30
- props: true,
31
- },
32
- ],
25
+ "svelte/no-reactive-reassign": ON,
33
26
  "svelte/no-shorthand-style-property-overrides": ON,
34
27
  "svelte/no-store-async": ON,
35
28
  "svelte/no-top-level-browser-globals": ON,
36
- "svelte/no-unknown-style-directive-property": [
37
- ON,
38
- {
39
- ignorePrefixed: true,
40
- },
41
- ],
29
+ "svelte/no-unknown-style-directive-property": ON,
42
30
  "svelte/prefer-svelte-reactivity": ON,
43
31
  "svelte/require-store-callbacks-use-set-param": ON,
44
32
  "svelte/require-store-reactive-access": ON,
45
- "svelte/valid-compile": [
46
- ON,
47
- {
48
- ignoreWarnings: false,
49
- },
50
- ],
33
+ "svelte/valid-compile": ON,
51
34
  "svelte/valid-style-parse": ON,
52
35
  // #endregion
53
36
 
54
37
  // #region SECURITY
55
38
  // DOC: http://sveltejs.github.io/eslint-plugin-svelte/rules/#security-vulnerability
56
39
  "svelte/no-at-html-tags": ON,
57
- "svelte/no-target-blank": [
58
- ON,
59
- {
60
- allowReferrer: false,
61
- enforceDynamicLinks: always,
62
- },
63
- ],
40
+ "svelte/no-target-blank": ON,
64
41
  // #endregion
65
42
 
66
43
  // #region BEST PRACTICES
@@ -68,67 +45,34 @@ export const SvelteEnable = {
68
45
  "svelte/block-lang": [
69
46
  ON,
70
47
  {
71
- enforceScriptPresent: true,
72
- enforceStylePresent: false,
73
48
  script: ["ts"],
74
- style: [
75
- "css",
76
- "scss",
77
- ],
49
+ style: ["css"],
78
50
  },
79
51
  ], /* INVESTIGATE: */
80
- "svelte/button-has-type": [
81
- ON,
82
- {
83
- button: true,
84
- submit: true,
85
- reset: true,
86
- },
87
- ],
52
+ "svelte/button-has-type": ON,
88
53
  "svelte/no-add-event-listener": ON,
89
54
  "svelte/no-at-debug-tags": ON,
90
55
  "svelte/no-ignored-unsubscribe": ON,
91
56
  "svelte/no-immutable-reactive-statements": ON,
92
- "svelte/no-inline-styles": [
93
- ON,
94
- {
95
- allowTransitions: false,
96
- },
97
- ],
57
+ "svelte/no-inline-styles": ON,
98
58
  "svelte/no-reactive-functions": ON,
99
59
  "svelte/no-reactive-literals": ON,
100
60
  "svelte/no-svelte-internal": ON,
101
- "svelte/no-unnecessary-state-wrap": [
102
- ON,
103
- {
104
- additionalReactiveClasses: [],
105
- allowReassign: false,
106
- },
107
- ],
61
+ "svelte/no-unnecessary-state-wrap": ON,
108
62
  // "svelte/no-unused-class-name": OFF /* incompatible: breaks if css class is located in another file; BUG: ESLint error if array empty */,
109
63
  "svelte/no-unused-props": [
110
64
  ON,
111
65
  {
112
66
  checkImportedTypes: true,
113
- ignorePropertyPatterns: [],
114
- ignoreTypePatterns: [],
115
- allowUnusedNestedProperties: false,
116
67
  },
117
68
  ],
118
69
  "svelte/no-unused-svelte-ignore": ON,
119
70
  "svelte/no-useless-children-snippet": ON,
120
- "svelte/no-useless-mustaches": [
121
- ON,
122
- {
123
- ignoreIncludesComment: false,
124
- ignoreStringEscape: false,
125
- },
126
- ],
71
+ "svelte/no-useless-mustaches": ON,
127
72
  "svelte/prefer-const": [
128
73
  ON,
129
74
  {
130
75
  destructuring: all,
131
- ignoreReadBeforeAssign: false /* BUG: doc says `ignoreReadonly`, but actually same as ESLint/prefer-const: `ignoreReadBeforeAssign` */,
132
76
  },
133
77
  ] /* same options: prefer-const */,
134
78
  "svelte/prefer-destructured-store-props": ON,
@@ -145,89 +89,36 @@ export const SvelteEnable = {
145
89
  "svelte/consistent-selector-style": [
146
90
  ON,
147
91
  {
148
- checkGlobal: true /* @default: false */,
149
- style: [
150
- "type",
151
- "id",
152
- "class",
153
- ],
92
+ checkGlobal: true /* @default false */,
154
93
  },
155
94
  ],
156
95
  "svelte/derived-has-same-inputs-outputs": ON,
157
96
  "svelte/first-attribute-linebreak": [
158
97
  ON,
159
98
  {
160
- multiline: below,
161
99
  singleline: below,
162
100
  },
163
101
  ],
164
- "svelte/html-closing-bracket-new-line": [
165
- ON,
166
- {
167
- singleline: never,
168
- multiline: always,
169
- selfClosingTag: {
170
- singleline: never,
171
- multiline: always,
172
- },
173
- },
174
- ],
102
+ "svelte/html-closing-bracket-new-line": ON,
175
103
  "svelte/html-closing-bracket-spacing": [
176
104
  ON,
177
105
  {
178
- startTag: never,
179
- endTag: never,
180
106
  selfClosingTag: never,
181
107
  },
182
108
  ],
183
109
  "svelte/html-quotes": [
184
110
  ON,
185
111
  {
186
- prefer: double,
112
+ prefer: double /* @default ? */,
187
113
  dynamic: {
188
- quoted: false,
189
114
  avoidInvalidUnquotedInHTML: true,
190
115
  },
191
116
  },
192
117
  ],
193
- "svelte/html-self-closing": [
194
- ON,
195
- {
196
- "void": always,
197
- component: always,
198
- svelte: always,
199
- normal: ignore,
200
- } /* always | never | ignore */,
201
- ] /* BUG: `foreign` option was deprecated */,
202
- "svelte/indent": [
203
- ON,
204
- {
205
- indent: 2,
206
- indentScript: true,
207
- ignoredNodes: [],
208
- switchCase: 1,
209
- alignAttributesVertically: false,
210
- },
211
- ],
212
- "svelte/max-attributes-per-line": [
213
- ON,
214
- {
215
- multiline: 1,
216
- singleline: 1,
217
- },
218
- ],
219
- "svelte/mustache-spacing": [
220
- ON,
221
- {
222
- textExpressions: never /* or ALWAYS */,
223
- attributesAndProps: never /* or ALWAYS */,
224
- directiveExpressions: never /* or ALWAYS */,
225
- tags: {
226
- openingBrace: never /* or ALWAYS */,
227
- closingBrace: never /* or ALWAYS or "always-after-expression" */,
228
- },
229
- },
230
- ],
118
+ "svelte/html-self-closing": ON,
119
+ "svelte/indent": ON,
120
+ "svelte/max-attributes-per-line": ON,
121
+ "svelte/mustache-spacing": ON,
231
122
  "svelte/no-extra-reactive-curlies": ON,
232
123
  // "svelte/no-restricted-html-elements": OFF,
233
124
  "svelte/no-spaces-around-equal-signs-in-attribute": ON,
@@ -238,29 +129,11 @@ export const SvelteEnable = {
238
129
  },
239
130
  ],
240
131
  "svelte/prefer-style-directive": ON,
241
- "svelte/require-event-prefix": [
242
- ON,
243
- {
244
- checkAsyncFunctions: false,
245
- },
246
- ],
247
- "svelte/shorthand-attribute": [
248
- ON,
249
- {
250
- prefer: always,
251
- },
252
- ],
253
- "svelte/shorthand-directive": [
254
- ON,
255
- {
256
- prefer: always,
257
- },
258
- ],
132
+ "svelte/require-event-prefix": ON,
133
+ "svelte/shorthand-attribute": ON,
134
+ "svelte/shorthand-directive": ON,
259
135
  // "svelte/sort-attributes": OFF /* INVESTIGATE: */,
260
- "svelte/spaced-html-comment": [
261
- ON,
262
- always,
263
- ] /* INFO: does not have third object option (exceptions/markers), unlike @stylistic/spaced-comment */,
136
+ "svelte/spaced-html-comment": ON /* INFO: does not have third object option (exceptions/markers), unlike @stylistic/spaced-comment */,
264
137
  // #endregion
265
138
 
266
139
  // #region SVELTE-KIT
@@ -269,10 +142,7 @@ export const SvelteEnable = {
269
142
  "svelte/no-navigation-without-base": [
270
143
  ON,
271
144
  {
272
- ignoreGoto: false,
273
- ignoreLinks: true /* ignore <a> links | @default: false */,
274
- ignorePushState: false,
275
- ignoreReplaceState: false,
145
+ ignoreLinks: true /* ignore <a> links; @default false */,
276
146
  },
277
147
  ],
278
148
  "svelte/valid-prop-names-in-kit-pages": ON,
@@ -280,12 +150,7 @@ export const SvelteEnable = {
280
150
 
281
151
  // #region REQUIRED
282
152
  // DOC: http://sveltejs.github.io/eslint-plugin-svelte/rules/#system
283
- "svelte/comment-directive": [
284
- ON,
285
- {
286
- reportUnusedDisableDirectives: true,
287
- },
288
- ],
153
+ "svelte/comment-directive": ON,
289
154
  "svelte/system": ON,
290
155
  // #endregion
291
156
  } as const,
@@ -1,7 +1,6 @@
1
1
  import {
2
2
  ID,
3
3
  ON,
4
- allow,
5
4
  both,
6
5
  } from "../../../_strings";
7
6
 
@@ -12,16 +11,7 @@ export const SvelteEnableExtension = {
12
11
  "svelte/no-inner-declarations": [
13
12
  ON,
14
13
  both,
15
- {
16
- blockScopedFunctions: allow,
17
- },
18
14
  ] /* same options: no-inner-declarations */,
19
- "svelte/no-trailing-spaces": [
20
- ON,
21
- {
22
- skipBlankLines: false,
23
- ignoreComments: false,
24
- },
25
- ] /* same options: @stylistic/no-trailing-spaces */,
15
+ "svelte/no-trailing-spaces": ON /* same options: @stylistic/no-trailing-spaces */,
26
16
  } as const,
27
17
  };