2023-11-11 15:23:04 +01:00
|
|
|
/* eslint-env node */
|
|
|
|
require('@rushstack/eslint-patch/modern-module-resolution')
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
'extends': [
|
|
|
|
'plugin:vue/vue3-essential',
|
|
|
|
'eslint:recommended',
|
|
|
|
'@vue/eslint-config-typescript',
|
2023-11-11 18:44:07 +01:00
|
|
|
'@vue/eslint-config-prettier/skip-formatting',
|
|
|
|
'plugin:import/recommended',
|
|
|
|
'plugin:import/typescript'
|
2023-11-11 15:23:04 +01:00
|
|
|
],
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 'latest'
|
|
|
|
},
|
2023-11-11 18:44:07 +01:00
|
|
|
settings: {
|
|
|
|
'import/resolver': {
|
|
|
|
typescript: {
|
|
|
|
alwaysTryTypes: true,
|
|
|
|
project: 'tsconfig.json'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
'import/order': [
|
|
|
|
'error',
|
|
|
|
{
|
|
|
|
'newlines-between': 'always',
|
|
|
|
alphabetize: {
|
|
|
|
order: 'asc',
|
|
|
|
caseInsensitive: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
'import/no-unresolved': ['off', { ignore: ['^@/'] }],
|
|
|
|
'vue/multi-word-component-names': 'off'
|
2023-11-11 15:23:04 +01:00
|
|
|
}
|
|
|
|
}
|