Created
November 23, 2024 05:20
-
-
Save crashmax-dev/aedfaddd7cc81cfdaa13636d608ea5b6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import antfu from '@antfu/eslint-config' | |
export default antfu({ | |
typescript: true, | |
markdown: true, | |
yaml: true, | |
rules: { | |
'antfu/no-top-level-await': 'off', | |
'curly': 'off', | |
'no-console': 'off', | |
'no-unused-vars': 'warn', | |
'antfu/if-newline': 'off', | |
'unused-imports/no-unused-imports': 'warn', | |
'eslint-comments/no-unlimited-disable': 'off', | |
'no-alert': 'off', | |
'perfectionist/sort-imports': ['error', { | |
groups: [ | |
'builtin', | |
'external', | |
['internal', 'internal-type'], | |
['parent', 'sibling', 'index'], | |
'type', | |
['parent-type', 'sibling-type', 'index-type'], | |
'side-effect', | |
'object', | |
'unknown', | |
], | |
newlinesBetween: 'ignore', | |
order: 'asc', | |
type: 'natural', | |
}], | |
}, | |
vue: { | |
overrides: { | |
'vue/block-order': ['warn', { | |
order: [['template', 'script'], 'style'], | |
}], | |
'vue/custom-event-name-casing': ['error', 'kebab-case'], | |
}, | |
}, | |
stylistic: { | |
overrides: { | |
'style/brace-style': ['warn', '1tbs'], | |
'style/arrow-parens': 'off', | |
}, | |
}, | |
}) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment