2020-04-27 19:20:51 +00:00
|
|
|
module.exports = {
|
|
|
|
env: {
|
|
|
|
'browser': true,
|
2020-12-10 12:05:20 +00:00
|
|
|
'node': true,
|
2020-04-27 19:20:51 +00:00
|
|
|
},
|
|
|
|
extends: [
|
|
|
|
'eslint:recommended',
|
|
|
|
'plugin:vue/recommended',
|
|
|
|
],
|
|
|
|
parserOptions: {
|
2022-02-04 21:10:20 +00:00
|
|
|
parser: '@babel/eslint-parser',
|
2020-04-27 19:20:51 +00:00
|
|
|
ecmaVersion: 2018,
|
|
|
|
sourceType: 'module',
|
2022-02-04 21:10:20 +00:00
|
|
|
requireConfigFile: false,
|
2020-04-27 19:20:51 +00:00
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
'linebreak-style': ['error', 'unix'],
|
|
|
|
semi: ['error', 'always'],
|
|
|
|
quotes: ['error', 'single'],
|
|
|
|
'comma-dangle': ['error', 'always-multiline'],
|
|
|
|
'vue/require-v-for-key': 0,
|
|
|
|
'vue/require-default-prop': 0,
|
|
|
|
'vue/no-v-html': 0,
|
|
|
|
'vue/max-attributes-per-line': 0,
|
|
|
|
'vue/html-indent': ['error', 4],
|
|
|
|
'vue/script-indent': ['error', 4, {
|
|
|
|
baseIndent: 1,
|
|
|
|
}],
|
|
|
|
'vue/no-unused-vars': 0,
|
|
|
|
'vue/html-self-closing': 0,
|
2022-02-04 21:10:20 +00:00
|
|
|
'vue/multi-word-component-names': 0,
|
2022-07-12 11:58:54 +00:00
|
|
|
'vue/no-reserved-component-names': 0,
|
2022-11-14 15:37:44 +00:00
|
|
|
'eol-last': ['error', 'always'],
|
2020-04-27 19:20:51 +00:00
|
|
|
},
|
2020-12-22 17:06:52 +00:00
|
|
|
globals: {
|
|
|
|
'describe': true,
|
|
|
|
'expect': true,
|
|
|
|
'it': true,
|
|
|
|
'test': true,
|
|
|
|
},
|
2020-04-27 19:20:51 +00:00
|
|
|
};
|