mirror of
https://github.com/CorentinTh/it-tools.git
synced 2024-12-28 19:23:42 +08:00
37 lines
968 B
JavaScript
37 lines
968 B
JavaScript
/* eslint-env node */
|
|
require('@rushstack/eslint-patch/modern-module-resolution');
|
|
|
|
module.exports = {
|
|
root: true,
|
|
extends: [
|
|
'plugin:vue/vue3-essential',
|
|
'eslint:recommended',
|
|
'plugin:vue/vue3-recommended',
|
|
'@vue/eslint-config-typescript/recommended',
|
|
'@vue/eslint-config-prettier',
|
|
'plugin:import/recommended',
|
|
],
|
|
|
|
settings: {
|
|
'import/resolver': { typescript: { project: './tsconfig.app.json' } },
|
|
},
|
|
env: {
|
|
'vue/setup-compiler-macros': true,
|
|
},
|
|
rules: {
|
|
'vue/multi-word-component-names': ['off'],
|
|
'prettier/prettier': ['error'],
|
|
'import/no-duplicates': ['error', { considerQueryString: true }],
|
|
'import/order': ['error', { groups: [['builtin', 'external', 'internal']] }],
|
|
'import/extensions': [
|
|
'error',
|
|
'ignorePackages',
|
|
{
|
|
js: 'never',
|
|
ts: 'never',
|
|
tsx: 'never',
|
|
},
|
|
],
|
|
'import/no-unresolved': ['error', { ignore: ['^virtual:'] }],
|
|
},
|
|
};
|