34 lines
870 B
JavaScript
34 lines
870 B
JavaScript
module.exports = {
|
|
root: true,
|
|
parser: 'vue-eslint-parser',
|
|
parserOptions: {
|
|
parser: '@typescript-eslint/parser',
|
|
},
|
|
extends: [
|
|
// "plugin:vue/strongly-recommended",
|
|
// 'eslint:recommended',
|
|
'plugin:vue/vue3-recommended',
|
|
'@vue/typescript/recommended',
|
|
'prettier',
|
|
],
|
|
plugins: ['@typescript-eslint', 'prettier'],
|
|
rules: {
|
|
'prettier/prettier': ['error', { endOfLine: 'auto' }],
|
|
|
|
// not needed for vue 3
|
|
'vue/no-multiple-template-root': 'off',
|
|
'vue/multi-word-component-names': 'off',
|
|
},
|
|
env: {
|
|
browser: true,
|
|
es6: true,
|
|
node: true,
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ['layouts/default.vue', 'error.vue', 'pages/index.vue'],
|
|
rules: { 'vue/multi-word-component-names': 'off' },
|
|
},
|
|
],
|
|
};
|