Skip to content

Instantly share code, notes, and snippets.

@crashmax-dev
Created November 23, 2024 05:20
Show Gist options
  • Save crashmax-dev/aedfaddd7cc81cfdaa13636d608ea5b6 to your computer and use it in GitHub Desktop.
Save crashmax-dev/aedfaddd7cc81cfdaa13636d608ea5b6 to your computer and use it in GitHub Desktop.
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