it-tools/.eslintrc.cjs

31 lines
656 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',
'plugin:vue/vue3-recommended',
'@vue/eslint-config-typescript/recommended',
'@vue/eslint-config-prettier',
],
2022-03-31 06:33:29 +08:00
env: {
'vue/setup-compiler-macros': true,
},
rules: {
'vue/multi-word-component-names': ['off'],
2022-04-23 05:31:40 +08:00
'prettier/prettier': [
'error',
{
singleQuote: true,
semi: true,
tabWidth: 2,
trailingComma: 'all',
printWidth: 120,
},
],
2022-03-31 06:33:29 +08:00
},
};