mt-qj-wms-ui/.eslintrc.js

26 lines
576 B
JavaScript
Raw Permalink Normal View History

2021-11-15 08:22:01 +08:00
// https://eslint.org/docs/user-guide/configuring
2021-09-27 10:01:12 +08:00
module.exports = {
root: true,
2021-11-15 08:22:01 +08:00
parser: 'babel-eslint',
2021-09-27 10:01:12 +08:00
parserOptions: {
sourceType: 'module'
},
env: {
browser: true,
},
2021-11-15 08:22:01 +08:00
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
extends: 'standard',
// required to lint *.vue files
plugins: [
'html'
],
2021-09-27 10:01:12 +08:00
// add your custom rules here
rules: {
2021-11-15 08:22:01 +08:00
// allow async-await
'generator-star-spacing': 'off',
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
2021-09-27 10:01:12 +08:00
}
}