@kazupon/eslint-config 0.17.0 → 0.19.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.
- package/README.md +8 -1
- package/dist/index.cjs +267 -257
- package/dist/index.d.cts +14216 -3
- package/dist/index.d.ts +14216 -3
- package/dist/index.js +242 -144
- package/package.json +27 -22
- package/dist/config.d.cts +0 -9
- package/dist/config.d.ts +0 -9
- package/dist/configs/comments.d.cts +0 -15
- package/dist/configs/comments.d.ts +0 -15
- package/dist/configs/imports.d.cts +0 -21
- package/dist/configs/imports.d.ts +0 -21
- package/dist/configs/index.d.cts +0 -16
- package/dist/configs/index.d.ts +0 -16
- package/dist/configs/javascript.d.cts +0 -15
- package/dist/configs/javascript.d.ts +0 -15
- package/dist/configs/jsdoc.d.cts +0 -27
- package/dist/configs/jsdoc.d.ts +0 -27
- package/dist/configs/jsonc.d.cts +0 -39
- package/dist/configs/jsonc.d.ts +0 -39
- package/dist/configs/prettier.d.cts +0 -15
- package/dist/configs/prettier.d.ts +0 -15
- package/dist/configs/promise.d.cts +0 -15
- package/dist/configs/promise.d.ts +0 -15
- package/dist/configs/react.d.cts +0 -26
- package/dist/configs/react.d.ts +0 -26
- package/dist/configs/regexp.d.cts +0 -15
- package/dist/configs/regexp.d.ts +0 -15
- package/dist/configs/svelte.d.cts +0 -21
- package/dist/configs/svelte.d.ts +0 -21
- package/dist/configs/toml.d.cts +0 -15
- package/dist/configs/toml.d.ts +0 -15
- package/dist/configs/typescript.d.cts +0 -38
- package/dist/configs/typescript.d.ts +0 -38
- package/dist/configs/unicorn.d.cts +0 -20
- package/dist/configs/unicorn.d.ts +0 -20
- package/dist/configs/vitest.d.cts +0 -22
- package/dist/configs/vitest.d.ts +0 -22
- package/dist/configs/vue.d.cts +0 -36
- package/dist/configs/vue.d.ts +0 -36
- package/dist/configs/yml.d.cts +0 -22
- package/dist/configs/yml.d.ts +0 -22
- package/dist/globs.d.cts +0 -13
- package/dist/globs.d.ts +0 -13
- package/dist/types/gens/comments.d.cts +0 -65
- package/dist/types/gens/comments.d.ts +0 -65
- package/dist/types/gens/eslint.d.cts +0 -22
- package/dist/types/gens/eslint.d.ts +0 -22
- package/dist/types/gens/imports.d.cts +0 -519
- package/dist/types/gens/imports.d.ts +0 -519
- package/dist/types/gens/javascript.d.cts +0 -3158
- package/dist/types/gens/javascript.d.ts +0 -3158
- package/dist/types/gens/jsdoc.d.cts +0 -796
- package/dist/types/gens/jsdoc.d.ts +0 -796
- package/dist/types/gens/jsonc.d.cts +0 -513
- package/dist/types/gens/jsonc.d.ts +0 -513
- package/dist/types/gens/prettier.d.cts +0 -2
- package/dist/types/gens/prettier.d.ts +0 -2
- package/dist/types/gens/promise.d.cts +0 -113
- package/dist/types/gens/promise.d.ts +0 -113
- package/dist/types/gens/react.d.cts +0 -1053
- package/dist/types/gens/react.d.ts +0 -1053
- package/dist/types/gens/regexp.d.cts +0 -553
- package/dist/types/gens/regexp.d.ts +0 -553
- package/dist/types/gens/svelte.d.cts +0 -491
- package/dist/types/gens/svelte.d.ts +0 -491
- package/dist/types/gens/toml.d.cts +0 -256
- package/dist/types/gens/toml.d.ts +0 -256
- package/dist/types/gens/typescript.d.cts +0 -1578
- package/dist/types/gens/typescript.d.ts +0 -1578
- package/dist/types/gens/unicorn.d.cts +0 -910
- package/dist/types/gens/unicorn.d.ts +0 -910
- package/dist/types/gens/vitest.d.cts +0 -377
- package/dist/types/gens/vitest.d.ts +0 -377
- package/dist/types/gens/vue.d.cts +0 -2746
- package/dist/types/gens/vue.d.ts +0 -2746
- package/dist/types/gens/yml.d.cts +0 -375
- package/dist/types/gens/yml.d.ts +0 -375
- package/dist/types/index.d.cts +0 -18
- package/dist/types/index.d.ts +0 -18
- package/dist/types/overrides.d.cts +0 -8
- package/dist/types/overrides.d.ts +0 -8
- package/dist/utils.d.cts +0 -18
- package/dist/utils.d.ts +0 -18
|
@@ -1,491 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
export interface SvelteRules {
|
|
3
|
-
/**
|
|
4
|
-
* disallow conditionals where the type is always truthy or always falsy
|
|
5
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/@typescript-eslint/no-unnecessary-condition/
|
|
6
|
-
* @deprecated
|
|
7
|
-
*/
|
|
8
|
-
'svelte/@typescript-eslint/no-unnecessary-condition'?: Linter.RuleEntry<SvelteTypescriptEslintNoUnnecessaryCondition>;
|
|
9
|
-
/**
|
|
10
|
-
* disallows the use of languages other than those specified in the configuration for the lang attribute of `<script>` and `<style>` blocks.
|
|
11
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/block-lang/
|
|
12
|
-
*/
|
|
13
|
-
'svelte/block-lang'?: Linter.RuleEntry<SvelteBlockLang>;
|
|
14
|
-
/**
|
|
15
|
-
* disallow usage of button without an explicit type attribute
|
|
16
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/button-has-type/
|
|
17
|
-
*/
|
|
18
|
-
'svelte/button-has-type'?: Linter.RuleEntry<SvelteButtonHasType>;
|
|
19
|
-
/**
|
|
20
|
-
* support comment-directives in HTML template
|
|
21
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/comment-directive/
|
|
22
|
-
*/
|
|
23
|
-
'svelte/comment-directive'?: Linter.RuleEntry<SvelteCommentDirective>;
|
|
24
|
-
/**
|
|
25
|
-
* derived store should use same variable names between values and callback
|
|
26
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/derived-has-same-inputs-outputs/
|
|
27
|
-
*/
|
|
28
|
-
'svelte/derived-has-same-inputs-outputs'?: Linter.RuleEntry<[]>;
|
|
29
|
-
/**
|
|
30
|
-
* require slot type declaration using the `$$Slots` interface
|
|
31
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/experimental-require-slot-types/
|
|
32
|
-
*/
|
|
33
|
-
'svelte/experimental-require-slot-types'?: Linter.RuleEntry<[]>;
|
|
34
|
-
/**
|
|
35
|
-
* require the strictEvents attribute on `<script>` tags
|
|
36
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/experimental-require-strict-events/
|
|
37
|
-
*/
|
|
38
|
-
'svelte/experimental-require-strict-events'?: Linter.RuleEntry<[]>;
|
|
39
|
-
/**
|
|
40
|
-
* enforce the location of first attribute
|
|
41
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/first-attribute-linebreak/
|
|
42
|
-
*/
|
|
43
|
-
'svelte/first-attribute-linebreak'?: Linter.RuleEntry<SvelteFirstAttributeLinebreak>;
|
|
44
|
-
/**
|
|
45
|
-
* require or disallow a space before tag's closing brackets
|
|
46
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/html-closing-bracket-spacing/
|
|
47
|
-
*/
|
|
48
|
-
'svelte/html-closing-bracket-spacing'?: Linter.RuleEntry<SvelteHtmlClosingBracketSpacing>;
|
|
49
|
-
/**
|
|
50
|
-
* enforce quotes style of HTML attributes
|
|
51
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/html-quotes/
|
|
52
|
-
*/
|
|
53
|
-
'svelte/html-quotes'?: Linter.RuleEntry<SvelteHtmlQuotes>;
|
|
54
|
-
/**
|
|
55
|
-
* enforce self-closing style
|
|
56
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/html-self-closing/
|
|
57
|
-
*/
|
|
58
|
-
'svelte/html-self-closing'?: Linter.RuleEntry<SvelteHtmlSelfClosing>;
|
|
59
|
-
/**
|
|
60
|
-
* enforce consistent indentation
|
|
61
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/indent/
|
|
62
|
-
*/
|
|
63
|
-
'svelte/indent'?: Linter.RuleEntry<SvelteIndent>;
|
|
64
|
-
/**
|
|
65
|
-
* Svelte runtime prevents calling the same reactive statement twice in a microtask. But between different microtask, it doesn't prevent.
|
|
66
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/infinite-reactive-loop/
|
|
67
|
-
*/
|
|
68
|
-
'svelte/infinite-reactive-loop'?: Linter.RuleEntry<[]>;
|
|
69
|
-
/**
|
|
70
|
-
* enforce the maximum number of attributes per line
|
|
71
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/max-attributes-per-line/
|
|
72
|
-
*/
|
|
73
|
-
'svelte/max-attributes-per-line'?: Linter.RuleEntry<SvelteMaxAttributesPerLine>;
|
|
74
|
-
/**
|
|
75
|
-
* enforce unified spacing in mustache
|
|
76
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/mustache-spacing/
|
|
77
|
-
*/
|
|
78
|
-
'svelte/mustache-spacing'?: Linter.RuleEntry<SvelteMustacheSpacing>;
|
|
79
|
-
/**
|
|
80
|
-
* disallow the use of `{@debug}`
|
|
81
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-at-debug-tags/
|
|
82
|
-
*/
|
|
83
|
-
'svelte/no-at-debug-tags'?: Linter.RuleEntry<[]>;
|
|
84
|
-
/**
|
|
85
|
-
* disallow use of `{@html}` to prevent XSS attack
|
|
86
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-at-html-tags/
|
|
87
|
-
*/
|
|
88
|
-
'svelte/no-at-html-tags'?: Linter.RuleEntry<[]>;
|
|
89
|
-
/**
|
|
90
|
-
* disallow DOM manipulating
|
|
91
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-dom-manipulating/
|
|
92
|
-
*/
|
|
93
|
-
'svelte/no-dom-manipulating'?: Linter.RuleEntry<[]>;
|
|
94
|
-
/**
|
|
95
|
-
* disallow duplicate conditions in `{#if}` / `{:else if}` chains
|
|
96
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-dupe-else-if-blocks/
|
|
97
|
-
*/
|
|
98
|
-
'svelte/no-dupe-else-if-blocks'?: Linter.RuleEntry<[]>;
|
|
99
|
-
/**
|
|
100
|
-
* disallow duplicate `on:` directives
|
|
101
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-dupe-on-directives/
|
|
102
|
-
*/
|
|
103
|
-
'svelte/no-dupe-on-directives'?: Linter.RuleEntry<[]>;
|
|
104
|
-
/**
|
|
105
|
-
* disallow duplicate style properties
|
|
106
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-dupe-style-properties/
|
|
107
|
-
*/
|
|
108
|
-
'svelte/no-dupe-style-properties'?: Linter.RuleEntry<[]>;
|
|
109
|
-
/**
|
|
110
|
-
* disallow duplicate `use:` directives
|
|
111
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-dupe-use-directives/
|
|
112
|
-
*/
|
|
113
|
-
'svelte/no-dupe-use-directives'?: Linter.RuleEntry<[]>;
|
|
114
|
-
/**
|
|
115
|
-
* disallow dynamic slot name
|
|
116
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-dynamic-slot-name/
|
|
117
|
-
*/
|
|
118
|
-
'svelte/no-dynamic-slot-name'?: Linter.RuleEntry<[]>;
|
|
119
|
-
/**
|
|
120
|
-
* disallow exporting load functions in `*.svelte` module in SvelteKit page components.
|
|
121
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-export-load-in-svelte-module-in-kit-pages/
|
|
122
|
-
*/
|
|
123
|
-
'svelte/no-export-load-in-svelte-module-in-kit-pages'?: Linter.RuleEntry<[]>;
|
|
124
|
-
/**
|
|
125
|
-
* disallow wrapping single reactive statements in curly braces
|
|
126
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-extra-reactive-curlies/
|
|
127
|
-
*/
|
|
128
|
-
'svelte/no-extra-reactive-curlies'?: Linter.RuleEntry<[]>;
|
|
129
|
-
/**
|
|
130
|
-
* disallow using goto() without the base path
|
|
131
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-goto-without-base/
|
|
132
|
-
*/
|
|
133
|
-
'svelte/no-goto-without-base'?: Linter.RuleEntry<[]>;
|
|
134
|
-
/**
|
|
135
|
-
* disallow ignoring the unsubscribe method returned by the `subscribe()` on Svelte stores.
|
|
136
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-ignored-unsubscribe/
|
|
137
|
-
*/
|
|
138
|
-
'svelte/no-ignored-unsubscribe'?: Linter.RuleEntry<[]>;
|
|
139
|
-
/**
|
|
140
|
-
* disallow reactive statements that don't reference reactive values.
|
|
141
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-immutable-reactive-statements/
|
|
142
|
-
*/
|
|
143
|
-
'svelte/no-immutable-reactive-statements'?: Linter.RuleEntry<[]>;
|
|
144
|
-
/**
|
|
145
|
-
* disallow attributes and directives that produce inline styles
|
|
146
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-inline-styles/
|
|
147
|
-
*/
|
|
148
|
-
'svelte/no-inline-styles'?: Linter.RuleEntry<SvelteNoInlineStyles>;
|
|
149
|
-
/**
|
|
150
|
-
* disallow variable or `function` declarations in nested blocks
|
|
151
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-inner-declarations/
|
|
152
|
-
*/
|
|
153
|
-
'svelte/no-inner-declarations'?: Linter.RuleEntry<SvelteNoInnerDeclarations>;
|
|
154
|
-
/**
|
|
155
|
-
* disallow use of not function in event handler
|
|
156
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-not-function-handler/
|
|
157
|
-
*/
|
|
158
|
-
'svelte/no-not-function-handler'?: Linter.RuleEntry<[]>;
|
|
159
|
-
/**
|
|
160
|
-
* disallow objects in text mustache interpolation
|
|
161
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-object-in-text-mustaches/
|
|
162
|
-
*/
|
|
163
|
-
'svelte/no-object-in-text-mustaches'?: Linter.RuleEntry<[]>;
|
|
164
|
-
/**
|
|
165
|
-
* it's not necessary to define functions in reactive statements
|
|
166
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-reactive-functions/
|
|
167
|
-
*/
|
|
168
|
-
'svelte/no-reactive-functions'?: Linter.RuleEntry<[]>;
|
|
169
|
-
/**
|
|
170
|
-
* don't assign literal values in reactive statements
|
|
171
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-reactive-literals/
|
|
172
|
-
*/
|
|
173
|
-
'svelte/no-reactive-literals'?: Linter.RuleEntry<[]>;
|
|
174
|
-
/**
|
|
175
|
-
* disallow reassigning reactive values
|
|
176
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-reactive-reassign/
|
|
177
|
-
*/
|
|
178
|
-
'svelte/no-reactive-reassign'?: Linter.RuleEntry<SvelteNoReactiveReassign>;
|
|
179
|
-
/**
|
|
180
|
-
* disallow specific HTML elements
|
|
181
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-restricted-html-elements/
|
|
182
|
-
*/
|
|
183
|
-
'svelte/no-restricted-html-elements'?: Linter.RuleEntry<SvelteNoRestrictedHtmlElements>;
|
|
184
|
-
/**
|
|
185
|
-
* disallow shorthand style properties that override related longhand properties
|
|
186
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-shorthand-style-property-overrides/
|
|
187
|
-
*/
|
|
188
|
-
'svelte/no-shorthand-style-property-overrides'?: Linter.RuleEntry<[]>;
|
|
189
|
-
/**
|
|
190
|
-
* disallow spaces around equal signs in attribute
|
|
191
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-spaces-around-equal-signs-in-attribute/
|
|
192
|
-
*/
|
|
193
|
-
'svelte/no-spaces-around-equal-signs-in-attribute'?: Linter.RuleEntry<[]>;
|
|
194
|
-
/**
|
|
195
|
-
* disallow using async/await inside svelte stores because it causes issues with the auto-unsubscribing features
|
|
196
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-store-async/
|
|
197
|
-
*/
|
|
198
|
-
'svelte/no-store-async'?: Linter.RuleEntry<[]>;
|
|
199
|
-
/**
|
|
200
|
-
* svelte/internal will be removed in Svelte 6.
|
|
201
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-svelte-internal/
|
|
202
|
-
*/
|
|
203
|
-
'svelte/no-svelte-internal'?: Linter.RuleEntry<[]>;
|
|
204
|
-
/**
|
|
205
|
-
* disallow `target="_blank"` attribute without `rel="noopener noreferrer"`
|
|
206
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-target-blank/
|
|
207
|
-
*/
|
|
208
|
-
'svelte/no-target-blank'?: Linter.RuleEntry<SvelteNoTargetBlank>;
|
|
209
|
-
/**
|
|
210
|
-
* disallow trailing whitespace at the end of lines
|
|
211
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-trailing-spaces/
|
|
212
|
-
*/
|
|
213
|
-
'svelte/no-trailing-spaces'?: Linter.RuleEntry<SvelteNoTrailingSpaces>;
|
|
214
|
-
/**
|
|
215
|
-
* disallow unknown `style:property`
|
|
216
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-unknown-style-directive-property/
|
|
217
|
-
*/
|
|
218
|
-
'svelte/no-unknown-style-directive-property'?: Linter.RuleEntry<SvelteNoUnknownStyleDirectiveProperty>;
|
|
219
|
-
/**
|
|
220
|
-
* disallow the use of a class in the template without a corresponding style
|
|
221
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-unused-class-name/
|
|
222
|
-
*/
|
|
223
|
-
'svelte/no-unused-class-name'?: Linter.RuleEntry<SvelteNoUnusedClassName>;
|
|
224
|
-
/**
|
|
225
|
-
* disallow unused svelte-ignore comments
|
|
226
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-unused-svelte-ignore/
|
|
227
|
-
*/
|
|
228
|
-
'svelte/no-unused-svelte-ignore'?: Linter.RuleEntry<[]>;
|
|
229
|
-
/**
|
|
230
|
-
* disallow unnecessary mustache interpolations
|
|
231
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-useless-mustaches/
|
|
232
|
-
*/
|
|
233
|
-
'svelte/no-useless-mustaches'?: Linter.RuleEntry<SvelteNoUselessMustaches>;
|
|
234
|
-
/**
|
|
235
|
-
* require class directives instead of ternary expressions
|
|
236
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-class-directive/
|
|
237
|
-
*/
|
|
238
|
-
'svelte/prefer-class-directive'?: Linter.RuleEntry<SveltePreferClassDirective>;
|
|
239
|
-
/**
|
|
240
|
-
* destructure values from object stores for better change tracking & fewer redraws
|
|
241
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-destructured-store-props/
|
|
242
|
-
*/
|
|
243
|
-
'svelte/prefer-destructured-store-props'?: Linter.RuleEntry<[]>;
|
|
244
|
-
/**
|
|
245
|
-
* require style directives instead of style attribute
|
|
246
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-style-directive/
|
|
247
|
-
*/
|
|
248
|
-
'svelte/prefer-style-directive'?: Linter.RuleEntry<[]>;
|
|
249
|
-
/**
|
|
250
|
-
* require keyed `{#each}` block
|
|
251
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/require-each-key/
|
|
252
|
-
*/
|
|
253
|
-
'svelte/require-each-key'?: Linter.RuleEntry<[]>;
|
|
254
|
-
/**
|
|
255
|
-
* require type parameters for `createEventDispatcher`
|
|
256
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/require-event-dispatcher-types/
|
|
257
|
-
*/
|
|
258
|
-
'svelte/require-event-dispatcher-types'?: Linter.RuleEntry<[]>;
|
|
259
|
-
/**
|
|
260
|
-
* require style attributes that can be optimized
|
|
261
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/require-optimized-style-attribute/
|
|
262
|
-
*/
|
|
263
|
-
'svelte/require-optimized-style-attribute'?: Linter.RuleEntry<[]>;
|
|
264
|
-
/**
|
|
265
|
-
* store callbacks must use `set` param
|
|
266
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/require-store-callbacks-use-set-param/
|
|
267
|
-
*/
|
|
268
|
-
'svelte/require-store-callbacks-use-set-param'?: Linter.RuleEntry<[]>;
|
|
269
|
-
/**
|
|
270
|
-
* disallow to use of the store itself as an operand. Need to use $ prefix or get function.
|
|
271
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/require-store-reactive-access/
|
|
272
|
-
*/
|
|
273
|
-
'svelte/require-store-reactive-access'?: Linter.RuleEntry<[]>;
|
|
274
|
-
/**
|
|
275
|
-
* require initial value in store
|
|
276
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/require-stores-init/
|
|
277
|
-
*/
|
|
278
|
-
'svelte/require-stores-init'?: Linter.RuleEntry<[]>;
|
|
279
|
-
/**
|
|
280
|
-
* enforce use of shorthand syntax in attribute
|
|
281
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/shorthand-attribute/
|
|
282
|
-
*/
|
|
283
|
-
'svelte/shorthand-attribute'?: Linter.RuleEntry<SvelteShorthandAttribute>;
|
|
284
|
-
/**
|
|
285
|
-
* enforce use of shorthand syntax in directives
|
|
286
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/shorthand-directive/
|
|
287
|
-
*/
|
|
288
|
-
'svelte/shorthand-directive'?: Linter.RuleEntry<SvelteShorthandDirective>;
|
|
289
|
-
/**
|
|
290
|
-
* enforce order of attributes
|
|
291
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/sort-attributes/
|
|
292
|
-
*/
|
|
293
|
-
'svelte/sort-attributes'?: Linter.RuleEntry<SvelteSortAttributes>;
|
|
294
|
-
/**
|
|
295
|
-
* enforce consistent spacing after the `<!--` and before the `-->` in a HTML comment
|
|
296
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/spaced-html-comment/
|
|
297
|
-
*/
|
|
298
|
-
'svelte/spaced-html-comment'?: Linter.RuleEntry<SvelteSpacedHtmlComment>;
|
|
299
|
-
/**
|
|
300
|
-
* system rule for working this plugin
|
|
301
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/system/
|
|
302
|
-
*/
|
|
303
|
-
'svelte/system'?: Linter.RuleEntry<[]>;
|
|
304
|
-
/**
|
|
305
|
-
* disallow warnings when compiling.
|
|
306
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/valid-compile/
|
|
307
|
-
*/
|
|
308
|
-
'svelte/valid-compile'?: Linter.RuleEntry<SvelteValidCompile>;
|
|
309
|
-
/**
|
|
310
|
-
* enforce keys to use variables defined in the `{#each}` block
|
|
311
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/valid-each-key/
|
|
312
|
-
*/
|
|
313
|
-
'svelte/valid-each-key'?: Linter.RuleEntry<[]>;
|
|
314
|
-
/**
|
|
315
|
-
* disallow props other than data or errors in SvelteKit page components.
|
|
316
|
-
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/valid-prop-names-in-kit-pages/
|
|
317
|
-
*/
|
|
318
|
-
'svelte/valid-prop-names-in-kit-pages'?: Linter.RuleEntry<[]>;
|
|
319
|
-
}
|
|
320
|
-
type SvelteTypescriptEslintNoUnnecessaryCondition = [] | [
|
|
321
|
-
{
|
|
322
|
-
allowConstantLoopConditions?: boolean;
|
|
323
|
-
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
|
|
324
|
-
}
|
|
325
|
-
];
|
|
326
|
-
type SvelteBlockLang = [] | [
|
|
327
|
-
{
|
|
328
|
-
enforceScriptPresent?: boolean;
|
|
329
|
-
enforceStylePresent?: boolean;
|
|
330
|
-
script?: ((string | null) | [(string | null), ...((string | null))[]]);
|
|
331
|
-
style?: ((string | null) | [(string | null), ...((string | null))[]]);
|
|
332
|
-
}
|
|
333
|
-
];
|
|
334
|
-
type SvelteButtonHasType = [] | [
|
|
335
|
-
{
|
|
336
|
-
button?: boolean;
|
|
337
|
-
submit?: boolean;
|
|
338
|
-
reset?: boolean;
|
|
339
|
-
}
|
|
340
|
-
];
|
|
341
|
-
type SvelteCommentDirective = [] | [
|
|
342
|
-
{
|
|
343
|
-
reportUnusedDisableDirectives?: boolean;
|
|
344
|
-
}
|
|
345
|
-
];
|
|
346
|
-
type SvelteFirstAttributeLinebreak = [] | [
|
|
347
|
-
{
|
|
348
|
-
multiline?: ("below" | "beside");
|
|
349
|
-
singleline?: ("below" | "beside");
|
|
350
|
-
}
|
|
351
|
-
];
|
|
352
|
-
type SvelteHtmlClosingBracketSpacing = [] | [
|
|
353
|
-
{
|
|
354
|
-
startTag?: ("always" | "never" | "ignore");
|
|
355
|
-
endTag?: ("always" | "never" | "ignore");
|
|
356
|
-
selfClosingTag?: ("always" | "never" | "ignore");
|
|
357
|
-
}
|
|
358
|
-
];
|
|
359
|
-
type SvelteHtmlQuotes = [] | [
|
|
360
|
-
{
|
|
361
|
-
prefer?: ("double" | "single");
|
|
362
|
-
dynamic?: {
|
|
363
|
-
quoted?: boolean;
|
|
364
|
-
avoidInvalidUnquotedInHTML?: boolean;
|
|
365
|
-
};
|
|
366
|
-
}
|
|
367
|
-
];
|
|
368
|
-
type SvelteHtmlSelfClosing = [] | [
|
|
369
|
-
({
|
|
370
|
-
void?: ("never" | "always" | "ignore");
|
|
371
|
-
normal?: ("never" | "always" | "ignore");
|
|
372
|
-
component?: ("never" | "always" | "ignore");
|
|
373
|
-
svelte?: ("never" | "always" | "ignore");
|
|
374
|
-
} | ("all" | "html" | "none"))
|
|
375
|
-
];
|
|
376
|
-
type SvelteIndent = [] | [
|
|
377
|
-
{
|
|
378
|
-
indent?: (number | "tab");
|
|
379
|
-
indentScript?: boolean;
|
|
380
|
-
switchCase?: number;
|
|
381
|
-
alignAttributesVertically?: boolean;
|
|
382
|
-
ignoredNodes?: (string & {
|
|
383
|
-
[k: string]: unknown | undefined;
|
|
384
|
-
} & {
|
|
385
|
-
[k: string]: unknown | undefined;
|
|
386
|
-
})[];
|
|
387
|
-
}
|
|
388
|
-
];
|
|
389
|
-
type SvelteMaxAttributesPerLine = [] | [
|
|
390
|
-
{
|
|
391
|
-
multiline?: number;
|
|
392
|
-
singleline?: number;
|
|
393
|
-
}
|
|
394
|
-
];
|
|
395
|
-
type SvelteMustacheSpacing = [] | [
|
|
396
|
-
{
|
|
397
|
-
textExpressions?: ("never" | "always");
|
|
398
|
-
attributesAndProps?: ("never" | "always");
|
|
399
|
-
directiveExpressions?: ("never" | "always");
|
|
400
|
-
tags?: {
|
|
401
|
-
openingBrace?: ("never" | "always");
|
|
402
|
-
closingBrace?: ("never" | "always" | "always-after-expression");
|
|
403
|
-
};
|
|
404
|
-
}
|
|
405
|
-
];
|
|
406
|
-
type SvelteNoInlineStyles = [] | [
|
|
407
|
-
{
|
|
408
|
-
allowTransitions?: boolean;
|
|
409
|
-
}
|
|
410
|
-
];
|
|
411
|
-
type SvelteNoInnerDeclarations = [] | [("functions" | "both")] | [
|
|
412
|
-
("functions" | "both"),
|
|
413
|
-
{
|
|
414
|
-
blockScopedFunctions?: ("allow" | "disallow");
|
|
415
|
-
}
|
|
416
|
-
];
|
|
417
|
-
type SvelteNoReactiveReassign = [] | [
|
|
418
|
-
{
|
|
419
|
-
props?: boolean;
|
|
420
|
-
}
|
|
421
|
-
];
|
|
422
|
-
type SvelteNoRestrictedHtmlElements = [
|
|
423
|
-
(string | {
|
|
424
|
-
elements?: [string, ...(string)[]];
|
|
425
|
-
message?: string;
|
|
426
|
-
}),
|
|
427
|
-
...((string | {
|
|
428
|
-
elements?: [string, ...(string)[]];
|
|
429
|
-
message?: string;
|
|
430
|
-
}))[]
|
|
431
|
-
];
|
|
432
|
-
type SvelteNoTargetBlank = [] | [
|
|
433
|
-
{
|
|
434
|
-
allowReferrer?: boolean;
|
|
435
|
-
enforceDynamicLinks?: ("always" | "never");
|
|
436
|
-
}
|
|
437
|
-
];
|
|
438
|
-
type SvelteNoTrailingSpaces = [] | [
|
|
439
|
-
{
|
|
440
|
-
skipBlankLines?: boolean;
|
|
441
|
-
ignoreComments?: boolean;
|
|
442
|
-
}
|
|
443
|
-
];
|
|
444
|
-
type SvelteNoUnknownStyleDirectiveProperty = [] | [
|
|
445
|
-
{
|
|
446
|
-
ignoreProperties?: [string, ...(string)[]];
|
|
447
|
-
ignorePrefixed?: boolean;
|
|
448
|
-
}
|
|
449
|
-
];
|
|
450
|
-
type SvelteNoUnusedClassName = [] | [
|
|
451
|
-
{
|
|
452
|
-
allowedClassNames?: string[];
|
|
453
|
-
}
|
|
454
|
-
];
|
|
455
|
-
type SvelteNoUselessMustaches = [] | [
|
|
456
|
-
{
|
|
457
|
-
ignoreIncludesComment?: boolean;
|
|
458
|
-
ignoreStringEscape?: boolean;
|
|
459
|
-
}
|
|
460
|
-
];
|
|
461
|
-
type SveltePreferClassDirective = [] | [
|
|
462
|
-
{
|
|
463
|
-
prefer?: ("always" | "empty");
|
|
464
|
-
}
|
|
465
|
-
];
|
|
466
|
-
type SvelteShorthandAttribute = [] | [
|
|
467
|
-
{
|
|
468
|
-
prefer?: ("always" | "never");
|
|
469
|
-
}
|
|
470
|
-
];
|
|
471
|
-
type SvelteShorthandDirective = [] | [
|
|
472
|
-
{
|
|
473
|
-
prefer?: ("always" | "never");
|
|
474
|
-
}
|
|
475
|
-
];
|
|
476
|
-
type SvelteSortAttributes = [] | [
|
|
477
|
-
{
|
|
478
|
-
order?: (string | [string, ...(string)[]] | {
|
|
479
|
-
match: (string | [string, ...(string)[]]);
|
|
480
|
-
sort: ("alphabetical" | "ignore");
|
|
481
|
-
})[];
|
|
482
|
-
alphabetical?: boolean;
|
|
483
|
-
}
|
|
484
|
-
];
|
|
485
|
-
type SvelteSpacedHtmlComment = [] | [("always" | "never")];
|
|
486
|
-
type SvelteValidCompile = [] | [
|
|
487
|
-
{
|
|
488
|
-
ignoreWarnings?: boolean;
|
|
489
|
-
}
|
|
490
|
-
];
|
|
491
|
-
export {};
|