24 lines
544 B
JavaScript
24 lines
544 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
node: true,
|
|
},
|
|
extends: [
|
|
'plugin:vue/essential',
|
|
'eslint:recommended',
|
|
'plugin:prettier/recommended',
|
|
],
|
|
parserOptions: {
|
|
parser: '@babel/eslint-parser',
|
|
},
|
|
rules: {
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
'no-alert': 0,
|
|
'no-var': 0,
|
|
semi: [0, 'always'],
|
|
quotes: [0, 'single'],
|
|
'prettier/prettier': ['error', { endOfLine: 'auto' }],
|
|
},
|
|
}
|