|
| 1 | +import antfu from '@antfu/eslint-config' |
| 2 | + |
| 3 | +export default antfu( |
| 4 | + // Configures for antfu's config |
| 5 | + { |
| 6 | + stylistic: true, // enable stylistic formatting rules |
| 7 | + typescript: true, |
| 8 | + vue: true, |
| 9 | + jsonc: true, |
| 10 | + yml: false, |
| 11 | + }, |
| 12 | + // From the second arguments they are ESLint Flat Configs |
| 13 | + // you can have multiple configs |
| 14 | + { |
| 15 | + rules: { |
| 16 | + '@typescript-eslint/brace-style': ['error', '1tbs', { allowSingleLine: true }], |
| 17 | + 'brace-style': ['error', '1tbs', { allowSingleLine: true }], |
| 18 | + 'curly': ['error', 'multi-line'], |
| 19 | + 'no-console': 'off', |
| 20 | + 'vue/attribute-hyphenation': 'off', |
| 21 | + 'vue/component-tags-order': ['error', { order: [['script', 'template'], 'style'] }], |
| 22 | + 'vue/custom-event-name-casing': 'off', |
| 23 | + 'vue/max-attributes-per-line': ['error', { singleline: 1, multiline: 1 }], |
| 24 | + 'vue/no-deprecated-v-bind-sync': 'off', |
| 25 | + 'vue/no-deprecated-v-on-native-modifier': 'off', |
| 26 | + 'vue/no-deprecated-destroyed-lifecycle': 'off', |
| 27 | + 'vue/no-deprecated-dollar-listeners-api': 'off', |
| 28 | + 'vue/no-deprecated-dollar-scopedslots-api': 'off', |
| 29 | + 'vue/singleline-html-element-content-newline': 'off', |
| 30 | + }, |
| 31 | + }, |
| 32 | +) |
0 commit comments