You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
451 B
22 lines
451 B
// .eslintrc.js
|
|
module.exports = {
|
|
root: true,
|
|
env: {
|
|
browser: true,
|
|
node: true,
|
|
es6: true
|
|
},
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:vue/essential'
|
|
],
|
|
parserOptions: {
|
|
ecmaVersion: 2018, // 改为 2018(兼容 Vue 2)
|
|
sourceType: 'module',
|
|
parser: 'babel-eslint'
|
|
},
|
|
rules: {
|
|
'vue/multi-word-component-names': 'off',
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
|
|
}
|
|
}
|