@eslinted/defaults 21.1.0 → 21.1.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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
4
4
  "$schema": "https://json.schemastore.org/package",
5
5
  "name": "@eslinted/defaults",
6
- "version": "21.1.0",
6
+ "version": "21.1.1",
7
7
  "repository": "github:jimmy-zhening-luo/linted-defaults",
8
8
  "description": "Default scopes for `linted`",
9
9
  "keywords": [],
package/src/rules/css.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { State } from "./_state";
2
2
 
3
- // DOC: https://github.com/eslint/css/tree/main/docs/rules
3
+ //@doc https://github.com/eslint/css/tree/main/docs/rules
4
4
  export default {
5
5
  rules: {
6
6
  "css/font-family-fallbacks": State.WARN,
@@ -11,12 +11,12 @@ export default {
11
11
  "css/no-invalid-at-rule-placement": State.ON,
12
12
  "css/no-invalid-at-rules": State.ON,
13
13
  "css/no-invalid-named-grid-areas": State.ON,
14
- // "css/no-invalid-properties": State.OFF /* BUG: this is still way too broken, it doens't recognize actual rules. in future if it recognizes actual rules, turn on allow unknown values btw */,
14
+ // "css/no-invalid-properties": State.OFF /* @BUG this is still way too broken, it doens't recognize actual rules. in future if it recognizes actual rules, turn on allow unknown values btw */,
15
15
  "css/no-unmatchable-selectors": State.WARN,
16
16
  "css/prefer-logical-properties": State.WARN,
17
17
  "css/relative-font-units": State.WARN,
18
18
  // "css/selector-complexity": State.OFF /* @preference: or rather too lazy to configure because its default state is literally infinitely permissable */,
19
19
  "css/use-baseline": State.WARN,
20
- // "css/use-layers": State.OFF /* not recommended by docs: https://github.com/eslint/css?tab=readme-ov-file#rules | BUG: ESLint config inspector: css/use-layers: Invalid rule has no description [INVALID] */,
20
+ // "css/use-layers": State.OFF /* not recommended by docs: https://github.com/eslint/css?tab=readme-ov-file#rules | @BUG ESLint config inspector: css/use-layers: Invalid rule has no description [INVALID] */,
21
21
  } as const,
22
22
  };
package/src/rules/html.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { State } from "./_state";
2
2
 
3
- // DOC: https://html-eslint.org/docs/rules
3
+ //@doc https://html-eslint.org/docs/rules
4
4
  export default {
5
5
  rules: {
6
- // #region BEST PRACTICE
7
- // DOC: https://html-eslint.org/docs/rules#best-practice
6
+ //#region BEST PRACTICE
7
+ //@doc https://html-eslint.org/docs/rules#best-practice
8
8
  "html/css-no-empty-blocks": State.WARN,
9
9
  "html/head-order": State.ON,
10
10
  // "html/max-element-depth": State.OFF /* @preference: simply do not care */,
@@ -33,19 +33,19 @@ export default {
33
33
  "html/require-li-container": State.WARN,
34
34
  "html/require-meta-charset": State.WARN,
35
35
  "html/use-baseline": State.WARN,
36
- // #endregion
36
+ //#endregion
37
37
 
38
- // #region SEO
39
- // DOC: https://html-eslint.org/docs/rules#seo
38
+ //#region SEO
39
+ //@doc https://html-eslint.org/docs/rules#seo
40
40
  "html/no-multiple-h1": State.WARN,
41
41
  "html/require-lang": State.WARN,
42
42
  // "html/require-meta-description": State.OFF /* @CONFLICT: breaks Svelte which leaves meta descriptions to route leaves */,
43
43
  // "html/require-open-graph-protocol": State.OFF /* @CONFLICT: idk what this is, also it probably breaks Svelte */,
44
44
  // "html/require-title": State.OFF /* @CONFLICT: breaks Svelte which leaves title to route leaves */,
45
- // #endregion
45
+ //#endregion
46
46
 
47
- // #region ACCESSIBILITY
48
- // DOC: https://html-eslint.org/docs/rules#accessibility
47
+ //#region ACCESSIBILITY
48
+ //@doc https://html-eslint.org/docs/rules#accessibility
49
49
  "html/no-abstract-roles": State.WARN,
50
50
  "html/no-accesskey-attrs": State.WARN,
51
51
  "html/no-aria-hidden-body": State.WARN,
@@ -62,10 +62,10 @@ export default {
62
62
  "html/require-img-alt": State.WARN,
63
63
  "html/require-input-label": State.WARN,
64
64
  "html/require-meta-viewport": State.WARN,
65
- // #endregion
65
+ //#endregion
66
66
 
67
- // #region STYLE
68
- // DOC: https://html-eslint.org/docs/rules#style
67
+ //#region STYLE
68
+ //@doc https://html-eslint.org/docs/rules#style
69
69
  // "html/attrs-newline": State.OFF,
70
70
  // "html/element-newline": State.OFF,
71
71
  // "html/id-naming-convention": State.OFF,
@@ -77,6 +77,6 @@ export default {
77
77
  // "html/no-trailing-spaces": State.OFF,
78
78
  // "html/quotes": State.OFF,
79
79
  // "html/sort-attrs": State.OFF,
80
- // #endregion
80
+ //#endregion
81
81
  } as const,
82
82
  };
package/src/rules/js.ts CHANGED
@@ -1,15 +1,15 @@
1
1
  import { State } from "./_state";
2
2
 
3
- // DOC: https://eslint.org/docs/latest/rules/
3
+ //@doc https://eslint.org/docs/latest/rules/
4
4
  export default {
5
5
  rules: {
6
- // #region PROBLEMS
7
- // DOC: https://eslint.org/docs/latest/rules/#possible-problems
6
+ //#region PROBLEMS
7
+ //@doc https://eslint.org/docs/latest/rules/#possible-problems
8
8
  "array-callback-return": [
9
9
  State.ON,
10
10
  {
11
11
  checkForEach: true,
12
- allowVoid: true /* INFO: only works if checkForEach */,
12
+ allowVoid: true /* @info only works if checkForEach */,
13
13
  },
14
14
  ],
15
15
  "constructor-super": State.ON /* @tsc */,
@@ -27,7 +27,7 @@ export default {
27
27
  {
28
28
  checkLoops: "all",
29
29
  },
30
- ] /* BUG: incorrect option description (claims "all" is ok): https://eslint.org/docs/latest/rules/no-constant-condition */,
30
+ ] /* @BUG incorrect option description (claims "all" is ok): https://eslint.org/docs/latest/rules/no-constant-condition */,
31
31
  "no-constructor-return": State.ON,
32
32
  "no-control-regex": State.ON,
33
33
  "no-debugger": State.ON,
@@ -114,9 +114,9 @@ export default {
114
114
  requireStringLiterals: true,
115
115
  },
116
116
  ],
117
- // #endregion
117
+ //#endregion
118
118
 
119
- // #region SUGGESTIONS
119
+ //#region SUGGESTIONS
120
120
  // [ https://eslint.org/docs/latest/rules/#suggestions ]
121
121
  "accessor-pairs": [
122
122
  State.ON,
@@ -144,7 +144,7 @@ export default {
144
144
  // "func-name-matching": State.OFF,
145
145
  // "func-names": State.OFF,
146
146
  // "func-style": State.OFF /* supports TypeScript */,
147
- // "grouped-accessor-pairs": State.OFF /* BUG: requires adjacency, not as described in documentation */,
147
+ // "grouped-accessor-pairs": State.OFF /* @BUG requires adjacency, not as described in documentation */,
148
148
  // "guard-for-in": State.OFF /* @preference: not helpful because using for-in on non-literal objects is bad practice and this rule doesn't guard against that anyway, while adding a pointless check to known object literals */,
149
149
  // "id-denylist": State.OFF,
150
150
  // "id-length": State.OFF,
@@ -338,15 +338,15 @@ export default {
338
338
  // "symbol-description": State.OFF,
339
339
  "vars-on-top": State.WARN,
340
340
  yoda: State.WARN,
341
- // #endregion
341
+ //#endregion
342
342
 
343
- // #region FORMATTING
343
+ //#region FORMATTING
344
344
  // [ https://eslint.org/docs/latest/rules/#layout--formatting ]
345
345
  "unicode-bom": State.WARN,
346
- // #endregion
346
+ //#endregion
347
347
 
348
- // #region STYLISTIC
349
- // DOC: https://eslint.style/rules
348
+ //#region STYLISTIC
349
+ //@doc https://eslint.style/rules
350
350
 
351
351
  "stylistic/eol-last": State.WARN,
352
352
  "stylistic/linebreak-style": State.WARN,
@@ -394,7 +394,7 @@ export default {
394
394
  "stylistic/function-paren-newline": [
395
395
  State.WARN,
396
396
  "multiline-arguments",
397
- ] /* BUG: https://github.com/eslint-stylistic/eslint-stylistic/issues/290 */,
397
+ ] /* @BUG https://github.com/eslint-stylistic/eslint-stylistic/issues/290 */,
398
398
  "stylistic/generator-star-spacing": State.WARN,
399
399
  "stylistic/implicit-arrow-linebreak": State.WARN,
400
400
  "stylistic/indent": [
@@ -488,7 +488,7 @@ export default {
488
488
  {
489
489
  max: 1,
490
490
  maxBOF: 0,
491
- maxEOF: 0 /* INFO: combine with `eol-last` to ensure file still ends with a single line-break (eol character) */,
491
+ maxEOF: 0 /* @info combine with `eol-last` to ensure file still ends with a single line-break (eol character) */,
492
492
  },
493
493
  ],
494
494
  "stylistic/no-tabs": State.WARN,
@@ -529,7 +529,7 @@ export default {
529
529
  allowSingleLineBlocks: true,
530
530
  },
531
531
  ],
532
- // "stylistic/padding-line-between-statements": State.OFF /* BUG: when in editor, always removes too many lines and ends up crushing two lines into one statement, which then cannot be autofixed */,
532
+ // "stylistic/padding-line-between-statements": State.OFF /* @BUG when in editor, always removes too many lines and ends up crushing two lines into one statement, which then cannot be autofixed */,
533
533
  "stylistic/quote-props": [
534
534
  State.WARN,
535
535
  "as-needed",
@@ -596,7 +596,7 @@ export default {
596
596
  after: true,
597
597
  },
598
598
  },
599
- } /* BUG: non-overriden rule affects all type annotations (arrows, "as" keyword, "satisfies" keyword) except colons */,
599
+ } /* @BUG non-overriden rule affects all type annotations (arrows, "as" keyword, "satisfies" keyword) except colons */,
600
600
  ],
601
601
  "stylistic/type-generic-spacing": State.WARN,
602
602
  "stylistic/type-named-tuple-spacing": State.WARN,
package/src/rules/json.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { State } from "./_state";
2
2
 
3
- // DOC: https://ota-meshi.github.io/eslint-plugin-jsonc/rules/
3
+ //@doc https://ota-meshi.github.io/eslint-plugin-jsonc/rules/
4
4
  export default {
5
5
  rules: {
6
6
  // "json/no-duplicate-keys": State.OFF /* jsonc/no-dupe-keys */,
@@ -32,7 +32,7 @@ export default {
32
32
  // "jsonc/sort-keys": State.OFF /* ESLint: json/sort-keys */,
33
33
  // "jsonc/valid-json-number": State.OFF,
34
34
  // "jsonc/vue-custom-block/no-parsing-error": State.OFF,
35
- // "jsonc/array-bracket-newline": State.OFF /* BUG: DO NOT CONFIGURE */,
35
+ // "jsonc/array-bracket-newline": State.OFF /* @BUG DO NOT CONFIGURE */,
36
36
  "jsonc/array-bracket-spacing": State.WARN,
37
37
  "jsonc/array-element-newline": [
38
38
  State.WARN,
@@ -1,11 +1,11 @@
1
1
  import { State } from "./_state";
2
2
 
3
- // DOC: https://github.com/sveltejs/eslint-plugin-svelte/blob/ca37fbbe82d01019946e12eeb1b57c2a5736c018/packages/eslint-plugin-svelte/src/configs/base.ts
3
+ //@doc https://github.com/sveltejs/eslint-plugin-svelte/blob/ca37fbbe82d01019946e12eeb1b57c2a5736c018/packages/eslint-plugin-svelte/src/configs/base.ts
4
4
  export default {
5
5
  rules: {
6
- // #region DISABLE
6
+ //#region DISABLE
7
7
  // ESLint core rules known to cause problems with `.svelte`.
8
- "no-inner-declarations": State.OFF /* The AST generated by svelte-eslint-parser will false positive because the root node of the script is not `Program`. INFO: also extended by svelte */,
8
+ "no-inner-declarations": State.OFF /* The AST generated by svelte-eslint-parser will false positive because the root node of the script is not `Program`. @info also extended by svelte */,
9
9
  "no-self-assign": State.OFF /* Self assign is one of way to update reactive value in Svelte. */,
10
10
  "no-unused-vars": State.OFF /* breaks use of svelte global */,
11
11
  "ts/no-unused-vars": State.OFF /* breaks use of svelte global */,
@@ -17,20 +17,20 @@ export default {
17
17
  "stylistic/member-delimiter-style": State.OFF,
18
18
  "stylistic/object-curly-spacing": State.OFF,
19
19
  "stylistic/semi": State.OFF,
20
- // #endregion
20
+ //#endregion
21
21
 
22
- // #region EXTEND
23
- // DOC: http://sveltejs.github.io/eslint-plugin-svelte/rules/#extension-rules
22
+ //#region EXTEND
23
+ //@doc http://sveltejs.github.io/eslint-plugin-svelte/rules/#extension-rules
24
24
  "svelte/no-inner-declarations": [
25
25
  State.ON,
26
26
  "both",
27
27
  ] /* same options: no-inner-declarations */,
28
28
  /* @OVERRIDE */ "stylistic/no-trailing-spaces": State.OFF /* replaces `no-trailing-spaces` */,
29
29
  // "svelte/no-trailing-spaces": State.OFF,
30
- // #endregion
30
+ //#endregion
31
31
 
32
- // #region ERRORS
33
- // DOC: http://sveltejs.github.io/eslint-plugin-svelte/rules/#possible-errors
32
+ //#region ERRORS
33
+ //@doc http://sveltejs.github.io/eslint-plugin-svelte/rules/#possible-errors
34
34
  "svelte/infinite-reactive-loop": State.ON,
35
35
  "svelte/no-dom-manipulating": State.ON,
36
36
  "svelte/no-dupe-else-if-blocks": State.ON,
@@ -50,16 +50,16 @@ export default {
50
50
  "svelte/require-store-reactive-access": State.ON,
51
51
  "svelte/valid-compile": State.ON,
52
52
  "svelte/valid-style-parse": State.ON,
53
- // #endregion
53
+ //#endregion
54
54
 
55
- // #region SECURITY
56
- // DOC: http://sveltejs.github.io/eslint-plugin-svelte/rules/#security-vulnerability
55
+ //#region SECURITY
56
+ //@doc http://sveltejs.github.io/eslint-plugin-svelte/rules/#security-vulnerability
57
57
  "svelte/no-at-html-tags": State.ON,
58
58
  "svelte/no-target-blank": State.ON,
59
- // #endregion
59
+ //#endregion
60
60
 
61
- // #region BEST PRACTICES
62
- // DOC: http://sveltejs.github.io/eslint-plugin-svelte/rules/#best-practices
61
+ //#region BEST PRACTICES
62
+ //@doc http://sveltejs.github.io/eslint-plugin-svelte/rules/#best-practices
63
63
  "svelte/block-lang": [
64
64
  State.WARN,
65
65
  {
@@ -77,7 +77,7 @@ export default {
77
77
  "svelte/no-reactive-literals": State.ON,
78
78
  "svelte/no-svelte-internal": State.ON,
79
79
  "svelte/no-unnecessary-state-wrap": State.ON,
80
- // "svelte/no-unused-class-name": State.OFF /* incompatible: breaks if css class is located in another file; BUG: ESLint error if array empty */,
80
+ // "svelte/no-unused-class-name": State.OFF /* incompatible: breaks if css class is located in another file; @BUG ESLint error if array empty */,
81
81
  "svelte/no-unused-props": [
82
82
  State.WARN,
83
83
  {
@@ -100,10 +100,10 @@ export default {
100
100
  "svelte/require-optimized-style-attribute": State.ON,
101
101
  "svelte/require-stores-init": State.ON,
102
102
  "svelte/valid-each-key": State.ON,
103
- // #endregion
103
+ //#endregion
104
104
 
105
- // #region STYLE
106
- // DOC: http://sveltejs.github.io/eslint-plugin-svelte/rules/#stylistic-issues
105
+ //#region STYLE
106
+ //@doc http://sveltejs.github.io/eslint-plugin-svelte/rules/#stylistic-issues
107
107
  "svelte/consistent-selector-style": [
108
108
  State.WARN,
109
109
  {
@@ -114,7 +114,7 @@ export default {
114
114
  // "svelte/first-attribute-linebreak": State.OFF,
115
115
  // "svelte/html-closing-bracket-new-line": State.OFF,
116
116
  // "svelte/html-closing-bracket-spacing": State.OFF,
117
- // "svelte/html-quotes": State.OFF /* BUG: incompatible with object props, which should not be stringified */,
117
+ // "svelte/html-quotes": State.OFF /* @BUG incompatible with object props, which should not be stringified */,
118
118
  // "svelte/html-self-closing": State.OFF,
119
119
  // "svelte/indent": State.OFF,
120
120
  // "svelte/max-attributes-per-line": State.OFF,
@@ -134,23 +134,23 @@ export default {
134
134
  "svelte/shorthand-directive": State.WARN,
135
135
  // "svelte/sort-attributes": State.OFF,
136
136
  // "svelte/spaced-html-comment": State.OFF,
137
- // #endregion
137
+ //#endregion
138
138
 
139
- // #region SVELTE-KIT
140
- // DOC: http://sveltejs.github.io/eslint-plugin-svelte/rules/#svelte-kit
139
+ //#region SVELTE-KIT
140
+ //@doc http://sveltejs.github.io/eslint-plugin-svelte/rules/#svelte-kit
141
141
  "svelte/no-export-load-in-svelte-module-in-kit-pages": State.ON,
142
142
  "svelte/no-navigation-without-resolve": State.ON,
143
143
  "svelte/valid-prop-names-in-kit-pages": State.ON,
144
- // #endregion
144
+ //#endregion
145
145
 
146
- // #region REQUIRED
147
- // DOC: http://sveltejs.github.io/eslint-plugin-svelte/rules/#system
146
+ //#region REQUIRED
147
+ //@doc http://sveltejs.github.io/eslint-plugin-svelte/rules/#system
148
148
  "svelte/comment-directive": State.ON,
149
149
  "svelte/system": State.ON,
150
- // #endregion
150
+ //#endregion
151
151
 
152
152
  //#region Future (HTML)
153
- // DOC: https://html-eslint.org/docs/svelte/rules
153
+ //@doc https://html-eslint.org/docs/svelte/rules
154
154
  // "html/svelte/class-spacing": State.OFF,
155
155
  // "html/svelte/use-baseline": State.WARN,
156
156
  // "html/svelte/no-obsolete-tags": State.WARN,
package/src/rules/ts.ts CHANGED
@@ -25,8 +25,8 @@ export default {
25
25
  "no-unsafe-negation": State.OFF,
26
26
  //#endregion
27
27
 
28
- // #region EXTEND
29
- // DOC: https://typescript-eslint.io/rules/?=extension-xdeprecated#rules
28
+ //#region EXTEND
29
+ //@doc https://typescript-eslint.io/rules/?=extension-xdeprecated#rules
30
30
  /* @OVERRIDE */ "dot-notation": State.OFF,
31
31
  "ts/dot-notation": [
32
32
  State.WARN,
@@ -62,10 +62,10 @@ export default {
62
62
  ],
63
63
  /* @OVERRIDE */ "require-await": State.OFF,
64
64
  "ts/require-await": State.ON,
65
- // #endregion
65
+ //#endregion
66
66
 
67
- // #region ...
68
- // DOC: https://typescript-eslint.io/rules/?=xextension-xdeprecated#rules
67
+ //#region ...
68
+ //@doc https://typescript-eslint.io/rules/?=xextension-xdeprecated#rules
69
69
 
70
70
  // "ts/adjacent-overload-signatures": State.OFF,
71
71
  // "ts/array-type": State.OFF /* @preference: ideally, I'd like to don't-care mutable arrays while requiring readonly [] syntax for immutable arrays, but there is no way to do that with the current rule options */,
@@ -242,7 +242,7 @@ export default {
242
242
  allowRegExp: false,
243
243
  },
244
244
  ],
245
- "ts/return-await": State.ON /* BUG: doc incorrectly states that this extends the DEPRECATED (since 8.46) no-return-await: https://typescript-eslint.io/rules/return-await */,
245
+ "ts/return-await": State.ON /* @BUG doc incorrectly states that this extends the DEPRECATED (since 8.46) no-return-await: https://typescript-eslint.io/rules/return-await */,
246
246
  "ts/strict-boolean-expressions": [
247
247
  State.ON,
248
248
  {
@@ -268,8 +268,8 @@ export default {
268
268
  ignoreStatic: true,
269
269
  },
270
270
  ],
271
- // "ts/unified-signatures": State.OFF /* BUG: https://github.com/typescript-eslint/typescript-eslint/issues/11732 */,
271
+ // "ts/unified-signatures": State.OFF /* @BUG https://github.com/typescript-eslint/typescript-eslint/issues/11732 */,
272
272
  "ts/use-unknown-in-catch-callback-variable": State.ON,
273
- // #endregion
273
+ //#endregion
274
274
  } as const,
275
275
  };
package/src/rules/yml.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { State } from "./_state";
2
2
 
3
- // DOC: https://ota-meshi.github.io/eslint-plugin-yml/rules/#yaml-rules
3
+ //@doc https://ota-meshi.github.io/eslint-plugin-yml/rules/#yaml-rules
4
4
  export default {
5
5
  rules: {
6
6
  //#region Custom