svelte-check
Advanced tools
Comparing version 1.0.58 to 1.0.59
{ | ||
"name": "svelte-check", | ||
"description": "Svelte Code Checker Terminal Interface", | ||
"version": "1.0.58", | ||
"version": "1.0.59", | ||
"main": "./dist/src/index.js", | ||
@@ -6,0 +6,0 @@ "bin": "./bin/svelte-check", |
@@ -52,21 +52,14 @@ # Check your code with svelte-check | ||
### Args: | ||
|Flag|Description| | ||
|---|---| | ||
|`--workspace <path>`| Path to your workspace. All subdirectories except node_modules and those listed in `--ignore` are checked | ||
|`--output <human\|human-verbose\|machine>`| | ||
|`--watch`| Will not exit after one pass but keep watching files for changes and rerun diagnostics | ||
|`--ignore <path1,path2>`| Files/folders to ignore - relative to workspace root, comma-separated, inside quotes. Example: `--ignore "dist,build"` | ||
|`--fail-on-warnings`| Will also exit with error code when there are warnings | ||
|`--fail-on-hints`| Will also exit with error code when there are hints | ||
|`--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"` | ||
|`--diagnostic-sources <js,svelte,css>`| A list of diagnostic sources which should run diagnostics on your code. Possible values are `js` (includes TS), `svelte`, `css`. Comma-separated, inside quotes. By default all are active. Example: `--diagnostic-sources "js,svelte"` | ||
|`--threshold <error\|warning>`| Filters the diagnostics to display. `error` will output only errors while `warning` will output warnings and errors. | ||
`--workspace <path>` Path to your workspace. All subdirectories except node_modules and those listed in --ignore are checked | ||
`--output <human|human-verbose|machine>` | ||
`--watch` Will not exit after one pass but keep watching files for changes and rerun diagnostics | ||
`--ignore <path1,path2>` Files/folders to ignore - relative to workspace root, comma-separated, inside quotes. Example: --ignore "dist,build" | ||
`--fail-on-warnings` Will also exit with error code when there are warnings | ||
`--fail-on-hints` Will also exit with error code when there are hints | ||
`--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" | ||
`--diagnostic-sources <js,svelte,css>` A list of diagnostic sources which should run diagnostics on your code. Possible values are `js` (includes TS), `svelte`, `css`. Comma-separated, inside quotes. By default all are active. Example: --diagnostic-sources "js,svelte" | ||
`--threshold <error|warning>` Filters the diagnostics to display. `error` will output only errors while `warning` will output warnings and errors. | ||
### More docs, preprocessor setup and troubleshooting | ||
@@ -73,0 +66,0 @@ |
232632
116