41 lines
1.1 KiB
JavaScript
41 lines
1.1 KiB
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
node: true,
|
|
browser: true,
|
|
},
|
|
parser: 'vue-eslint-parser',
|
|
parserOptions: {
|
|
parser: '@babel/eslint-parser',
|
|
requireConfigFile: false,
|
|
},
|
|
extends: ['plugin:vue/essential', 'eslint:recommended', 'plugin:prettier/recommended'],
|
|
plugins: ['prettier'],
|
|
rules: {
|
|
'linebreak-style': ['error', 'unix'],
|
|
'prettier/prettier': 'error',
|
|
'no-console': 'off',
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
'no-unused-vars': 'off',
|
|
'vue/multi-word-component-names': 'off',
|
|
'vue/attributes-order': [
|
|
'error',
|
|
{
|
|
order: [
|
|
'DEFINITION',
|
|
'LIST_RENDERING',
|
|
'CONDITIONALS',
|
|
'RENDER_MODIFIERS',
|
|
'GLOBAL',
|
|
'UNIQUE',
|
|
'TWO_WAY_BINDING',
|
|
'OTHER_DIRECTIVES',
|
|
'OTHER_ATTR',
|
|
'EVENTS',
|
|
'CONTENT',
|
|
],
|
|
},
|
|
],
|
|
},
|
|
};
|