it-tools/.eslintrc.cjs

36 lines
880 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',
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',
},
],
2022-03-31 06:33:29 +08:00
},
};