34 lines
669 B
JavaScript
34 lines
669 B
JavaScript
|
|
module.exports = {
|
||
|
|
root: true,
|
||
|
|
env: {
|
||
|
|
browser: true,
|
||
|
|
es2021: true,
|
||
|
|
node: true
|
||
|
|
},
|
||
|
|
extends: [
|
||
|
|
'eslint:recommended',
|
||
|
|
'plugin:vue/vue3-recommended',
|
||
|
|
'plugin:prettier/recommended'
|
||
|
|
],
|
||
|
|
parserOptions: {
|
||
|
|
ecmaVersion: 'latest',
|
||
|
|
sourceType: 'module'
|
||
|
|
},
|
||
|
|
globals: {
|
||
|
|
uni: 'readonly',
|
||
|
|
wx: 'readonly',
|
||
|
|
plus: 'readonly'
|
||
|
|
},
|
||
|
|
rules: {
|
||
|
|
'vue/multi-word-component-names': 'off',
|
||
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||
|
|
'prettier/prettier': [
|
||
|
|
'error',
|
||
|
|
{
|
||
|
|
endOfLine: 'auto'
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
}
|