style(eslint): 🎨 Add eslint (#298)

pull/288/head^2
北雁云依 2024-04-10 03:30:02 +08:00 committed by GitHub
parent a2e535f2d2
commit 8cea374cb1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2109 additions and 16 deletions

12
eslint.config.js 100644
View File

@ -0,0 +1,12 @@
import antfu from '@antfu/eslint-config'
export default antfu({
formatters: true,
unocss: true,
vue: true,
ignores: [
'**/*/md',
'**/*.yaml',
'**/*.yml',
],
})

View File

@ -34,11 +34,15 @@
"vitepress": "1.0.0-rc.42",
"vitepress-sidebar": "^1.19.0",
"vue": "^3.4.19",
"wrangler": "^3.32.0"
"wrangler": "^3.32.0",
"@antfu/eslint-config": "^2.12.2",
"eslint": "^9.0.0",
"eslint-plugin-format": "^0.1.0",
"@unocss/eslint-plugin": "^0.59.0"
},
"pnpm": {
"overrides": {
"hasown": "npm:@nolyfill/hasown@latest"
}
}
}
}

File diff suppressed because it is too large Load Diff