mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-04-24 13:58:49 -05:00
docs: Document lintOnSave: 'error' option (#1755)
* Document lintOnSave: 'error' option fix #1719 * Missing dot
This commit is contained in:
committed by
Guillaume Chau
parent
d8b06bbaea
commit
d5fc24f707
@@ -106,10 +106,12 @@ module.exports = {
|
||||
|
||||
### lintOnSave
|
||||
|
||||
- Type: `boolean`
|
||||
- Type: `boolean | 'error'`
|
||||
- Default: `true`
|
||||
|
||||
Whether to perform lint-on-save during development using [eslint-loader](https://github.com/webpack-contrib/eslint-loader). This value is respected only when [`@vue/cli-plugin-eslint`](https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-eslint) is installed.
|
||||
|
||||
When set to `true`, eslint-loader will only emit warnings during webpack's compilation process in order not to break the flow during development. If you want it to emit errors instead (i.e. when building for production), set it like this: `lintOnSave: 'error'`.
|
||||
|
||||
### runtimeCompiler
|
||||
|
||||
|
||||
Reference in New Issue
Block a user