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: packages/svelte-check/README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,8 @@ Usage:
60
60
61
61
`--fail-on-warnings` Will also exit with error code when there are warnings
62
62
63
+
`--compiler-warnings <code1:error|ignore,code2:error|ignore>` A list of Svelte compiler warning codes. Each entry defines whether that warning should be ignored or treated as an error. Warnings are comma-separated, between warning code and error level is a colon; all inside quotes. Example: --compiler-warnings "css-unused-selector:ignore,unused-export-let:error"
64
+
63
65
### More docs, preprocessor setup and troubleshooting
Copy file name to clipboardExpand all lines: packages/svelte-vscode/package.json
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -188,6 +188,19 @@
188
188
"title": "Svelte: Diagnostics",
189
189
"description": "Enable diagnostic messages for Svelte"
190
190
},
191
+
"svelte.plugin.svelte.compilerWarnings": {
192
+
"type": "object",
193
+
"additionalProperties": {
194
+
"type": "string",
195
+
"enum": [
196
+
"ignore",
197
+
"error"
198
+
]
199
+
},
200
+
"default": {},
201
+
"title": "Svelte: Compiler Warnings Settings",
202
+
"description": "Svelte compiler warning codes to ignore or to treat as errors. Example: { 'css-unused-selector': 'ignore', 'unused-export-let': 'error'}"
0 commit comments