You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-11
Original file line number
Diff line number
Diff line change
@@ -188,12 +188,6 @@ See also <https://github.com/ota-meshi/svelte-eslint-parser#readme>.
188
188
189
189
You can change the behavior of this plugin with some settings.
190
190
191
-
-`ignoreWarnings` (optional) ... Specifies an array of rules that ignore reports in the template.
192
-
For example, set rules on the template that cannot avoid false positives.
193
-
-`compileOptions` (optional) ... Specifies options for Svelte compile. Effects rules that use Svelte compile. The target rules are [svelte/valid-compile](https://ota-meshi.github.io/eslint-plugin-svelte/rules/valid-compile/) and [svelte/no-unused-svelte-ignore](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-unused-svelte-ignore/). **Note that it has no effect on ESLint's custom parser**.
194
-
-`postcss` (optional) ... Specifies options related to PostCSS. You can disable the PostCSS process by specifying `false`.
195
-
-`configFilePath` (optional) ... Specifies the path of the directory containing the PostCSS configuration.
196
-
197
191
e.g.
198
192
199
193
```js
@@ -210,13 +204,30 @@ module.exports = {
210
204
configFilePath:"./path/to/my/postcss.config.js",
211
205
},
212
206
},
207
+
kit: {
208
+
files: {
209
+
routes:"src/routes",
210
+
},
211
+
},
213
212
},
214
213
},
215
214
// ...
216
215
}
217
216
```
218
217
219
-
#### settings.kit
218
+
#### settings.svelte.ignoreWarnings
219
+
220
+
Specifies an array of rules that ignore reports in the template.
221
+
For example, set rules on the template that cannot avoid false positives.
222
+
223
+
#### settings.svelte.compileOptions
224
+
225
+
Specifies options for Svelte compile. Effects rules that use Svelte compile. The target rules are [svelte/valid-compile](https://ota-meshi.github.io/eslint-plugin-svelte/rules/valid-compile/) and [svelte/no-unused-svelte-ignore](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-unused-svelte-ignore/). **Note that it has no effect on ESLint's custom parser**.
226
+
227
+
-`postcss` ... Specifies options related to PostCSS. You can disable the PostCSS process by specifying `false`.
228
+
-`configFilePath` ... Specifies the path of the directory containing the PostCSS configuration.
229
+
230
+
#### settings.svelte.kit
220
231
221
232
If you use SvelteKit with not default configuration, you need to set below configurations.
222
233
The schema is subset of SvelteKit's configuration.
@@ -228,9 +239,11 @@ e.g.
228
239
module.exports= {
229
240
// ...
230
241
settings: {
231
-
kit: {
232
-
files: {
233
-
routes:"src/routes",
242
+
svelte: {
243
+
kit: {
244
+
files: {
245
+
routes:"src/routes",
246
+
},
234
247
},
235
248
},
236
249
},
@@ -294,7 +307,7 @@ These rules relate to possible syntax or logic errors in Svelte code:
294
307
|[svelte/no-shorthand-style-property-overrides](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-shorthand-style-property-overrides/)| disallow shorthand style properties that override related longhand properties |:star:|
295
308
|[svelte/no-store-async](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-store-async/)| disallow using async/await inside svelte stores because it causes issues with the auto-unsubscribing features ||
|[svelte/require-store-callbacks-use-set-param](https://ota-meshi.github.io/eslint-plugin-svelte/rules/require-store-callbacks-use-set-param/)|store callbacks must use `set` param||
298
311
|[svelte/valid-compile](https://ota-meshi.github.io/eslint-plugin-svelte/rules/valid-compile/)| disallow warnings when compiling. |:star:|
Copy file name to clipboardExpand all lines: docs/rules.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ These rules relate to possible syntax or logic errors in Svelte code:
25
25
|[svelte/no-shorthand-style-property-overrides](./rules/no-shorthand-style-property-overrides.md)| disallow shorthand style properties that override related longhand properties |:star:|
26
26
|[svelte/no-store-async](./rules/no-store-async.md)| disallow using async/await inside svelte stores because it causes issues with the auto-unsubscribing features ||
Copy file name to clipboardExpand all lines: docs/user-guide.md
+23-10
Original file line number
Diff line number
Diff line change
@@ -140,12 +140,6 @@ See also <https://github.com/ota-meshi/svelte-eslint-parser#readme>.
140
140
141
141
You can change the behavior of this plugin with some settings.
142
142
143
-
-`ignoreWarnings` (optional) ... Specifies an array of rules that ignore reports in the template.
144
-
For example, set rules on the template that cannot avoid false positives.
145
-
-`compileOptions` (optional) ... Specifies options for Svelte compile. Effects rules that use Svelte compile. The target rules are [svelte/valid-compile](./rules/valid-compile.md) and [svelte/no-unused-svelte-ignore](./rules/no-unused-svelte-ignore.md). **Note that it has no effect on ESLint's custom parser**.
146
-
-`postcss` (optional) ... Specifies options related to PostCSS. You can disable the PostCSS process by specifying `false`.
147
-
-`configFilePath` (optional) ... Specifies the path of the directory containing the PostCSS configuration.
148
-
149
143
e.g.
150
144
151
145
```js
@@ -162,13 +156,30 @@ module.exports = {
162
156
configFilePath:"./path/to/my/postcss.config.js",
163
157
},
164
158
},
159
+
kit: {
160
+
files: {
161
+
routes:"src/routes",
162
+
},
163
+
},
165
164
},
166
165
},
167
166
// ...
168
167
}
169
168
```
170
169
171
-
#### settings.kit
170
+
#### settings.svelte.ignoreWarnings
171
+
172
+
Specifies an array of rules that ignore reports in the template.
173
+
For example, set rules on the template that cannot avoid false positives.
174
+
175
+
#### settings.svelte.compileOptions
176
+
177
+
Specifies options for Svelte compile. Effects rules that use Svelte compile. The target rules are [svelte/valid-compile](./rules/valid-compile.md) and [svelte/no-unused-svelte-ignore](./rules/no-unused-svelte-ignore.md). **Note that it has no effect on ESLint's custom parser**.
178
+
179
+
-`postcss` ... Specifies options related to PostCSS. You can disable the PostCSS process by specifying `false`.
180
+
-`configFilePath` ... Specifies the path of the directory containing the PostCSS configuration.
181
+
182
+
#### settings.svelte.kit
172
183
173
184
If you use SvelteKit with not default configuration, you need to set below configurations.
174
185
The schema is subset of SvelteKit's configuration.
0 commit comments