style: lint code

This commit is contained in:
Sun-ZhenXing
2026-02-23 17:41:05 +08:00
parent ced072de66
commit 7e14b01b78
240 changed files with 4301 additions and 1539 deletions

26
eslint.config.mjs Normal file
View File

@@ -0,0 +1,26 @@
import antfu from '@antfu/eslint-config'
export default antfu({
// Enable YAML support
yaml: true,
// Disable other language support we don't need
typescript: false,
vue: false,
react: false,
svelte: false,
astro: false,
toml: false,
// Enable stylistic formatting
stylistic: {
indent: 2,
quotes: 'single',
semi: false,
},
// Files to ignore
ignores: [
'**/node_modules/**',
'**/.git/**',
],
// Lint readme files
markdown: true,
})