it-tools/.eslintrc.cjs

40 lines
1,019 B
JavaScript
Raw Normal View History

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',
'@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'],
'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',
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
},
};