Browse Source

chore: 🔨 add eslint rules

pull/1/head
jiangx 3 years ago
parent
commit
096f1fe0e9
  1. 21
      .eslintrc.js

21
.eslintrc.js

@ -25,6 +25,27 @@ module.exports = {
plugins: ['vue', '@typescript-eslint', 'prettier'],
rules: {
'no-undef': 'off',
'vue/attributes-order': [
'error',
{
order: [
'DEFINITION',
'LIST_RENDERING',
'CONDITIONALS',
'RENDER_MODIFIERS',
'GLOBAL',
['UNIQUE', 'SLOT'],
'TWO_WAY_BINDING',
'OTHER_DIRECTIVES',
'OTHER_ATTR',
'EVENTS',
'CONTENT'
],
alphabetical: false
}
],
'vue/no-watch-after-await': 'error',
'vue/attribute-hyphenation': ['error', 'always'],
'vue/multi-word-component-names': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/no-unused-vars': 'warn',

Loading…
Cancel
Save