2022-03-31 06:33:29 +08:00
|
|
|
/* eslint-env node */
|
|
|
|
require('@rushstack/eslint-patch/modern-module-resolution');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
root: true,
|
2022-04-23 05:31:40 +08:00
|
|
|
extends: [
|
|
|
|
'plugin:vue/vue3-essential',
|
|
|
|
'eslint:recommended',
|
|
|
|
'plugin:vue/vue3-recommended',
|
|
|
|
'@vue/eslint-config-typescript/recommended',
|
|
|
|
'@vue/eslint-config-prettier',
|
2022-08-05 04:46:50 +08:00
|
|
|
'plugin:import/recommended',
|
2023-04-07 00:49:06 +08:00
|
|
|
'./.eslintrc-auto-import.json',
|
2023-04-07 01:36:30 +08:00
|
|
|
'@unocss',
|
2022-04-23 05:31:40 +08:00
|
|
|
],
|
2022-08-05 04:46:50 +08:00
|
|
|
|
|
|
|
settings: {
|
|
|
|
'import/resolver': { typescript: { project: './tsconfig.app.json' } },
|
|
|
|
},
|
2022-03-31 06:33:29 +08:00
|
|
|
env: {
|
|
|
|
'vue/setup-compiler-macros': true,
|
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
'vue/multi-word-component-names': ['off'],
|
2022-08-03 19:59:23 +08:00
|
|
|
'prettier/prettier': ['error'],
|
2022-08-05 04:46:50 +08: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 06:10:31 +08:00
|
|
|
tsx: 'never',
|
2022-08-05 04:46:50 +08:00
|
|
|
},
|
|
|
|
],
|
2023-03-02 04:46:23 +08:00
|
|
|
'import/no-unresolved': ['error', { ignore: ['^virtual:'] }],
|
2022-03-31 06:33:29 +08:00
|
|
|
},
|
|
|
|
};
|