2022-03-31 00:33:29 +02:00
|
|
|
/* eslint-env node */
|
|
|
|
require('@rushstack/eslint-patch/modern-module-resolution');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
root: true,
|
2022-04-22 23:31:40 +02:00
|
|
|
extends: [
|
|
|
|
'plugin:vue/vue3-essential',
|
|
|
|
'eslint:recommended',
|
|
|
|
'plugin:vue/vue3-recommended',
|
|
|
|
'@vue/eslint-config-typescript/recommended',
|
|
|
|
'@vue/eslint-config-prettier',
|
2022-08-04 22:46:50 +02:00
|
|
|
'plugin:import/recommended',
|
2023-04-06 18:49:06 +02:00
|
|
|
'./.eslintrc-auto-import.json',
|
2023-04-06 19:36:30 +02:00
|
|
|
'@unocss',
|
2022-04-22 23:31:40 +02:00
|
|
|
],
|
2022-08-04 22:46:50 +02:00
|
|
|
|
|
|
|
settings: {
|
|
|
|
'import/resolver': { typescript: { project: './tsconfig.app.json' } },
|
|
|
|
},
|
2022-03-31 00:33:29 +02:00
|
|
|
env: {
|
|
|
|
'vue/setup-compiler-macros': true,
|
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
'vue/multi-word-component-names': ['off'],
|
2022-08-03 13:59:23 +02:00
|
|
|
'prettier/prettier': ['error'],
|
2022-08-04 22:46:50 +02:00
|
|
|
'import/no-duplicates': ['error', { considerQueryString: true }],
|
|
|
|
'import/order': ['error', { groups: [['builtin', 'external', 'internal']] }],
|
|
|
|
'import/extensions': [
|
|
|
|
'error',
|
|
|
|
'ignorePackages',
|
|
|
|
{
|
|
|
|
js: 'never',
|
|
|
|
ts: 'never',
|
2022-08-24 00:10:31 +02:00
|
|
|
tsx: 'never',
|
2022-08-04 22:46:50 +02:00
|
|
|
},
|
|
|
|
],
|
2023-03-01 21:46:23 +01:00
|
|
|
'import/no-unresolved': ['error', { ignore: ['^virtual:'] }],
|
2022-03-31 00:33:29 +02:00
|
|
|
},
|
|
|
|
};
|