It seems that default error level for all eslint rules are "error". This is annoying as my app doesn't compile even for an omitted semicolon.
How can I set it to "warn" so that my app compiles but shows warnings?
I know I can set each rule to warn manually but I'd prefer to do it globally. In the official docs I haven't found such option.
This my config in .eslingtrc.js:
// http://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
env: {
browser: true,
},
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
extends: 'standard',
// required to lint *.vue files
plugins: [
'html'
],
// add your custom rules here
'rules': {
// allow paren-less arrow functions
'arrow-parens': 0,
'indent': 1,
// allow async-await
'generator-star-spacing': 0,
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'padded-blocks': [1, {classes: 'always'}],
'semi': 1
}
}