You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.4 KiB

/* eslint-env node */
module.exports = {
root: true,
extends: [
'plugin:vue/vue3-strongly-recommended',
'eslint:recommended',
'airbnb-base',
],
parserOptions: {
ecmaVersion: 'latest',
},
settings: {
'import/resolver': {
alias: [['@', './src']],
},
},
rules: {
'no-console': 'warn',
'no-debugger': 'warn',
'vue/max-attributes-per-line': ['error', {
singleline: {
max: 6,
},
multiline: {
max: 6,
},
}],
'max-len': ['error', { code: 180 }],
indent: ['error', 4, {
SwitchCase: 1,
}],
'object-curly-newline': ['error', {
ObjectPattern: { multiline: true },
}],
'no-use-before-define': ['error', {
functions: false,
}],
'vue/script-indent': ['error', 4, {
baseIndent: 1,
switchCase: 1,
}],
'vue/html-indent': ['error', 4],
'vue/singleline-html-element-content-newline': 'off',
},
overrides: [
{
files: ['*.vue'],
rules: {
indent: 'off',
},
},
{
files: ['vite.config.js'],
rules: {
'import/no-extraneous-dependencies': 'off',
},
},
],
};