Skip to content

Commit

Permalink
chore: eslint use formatters (#43)
Browse files Browse the repository at this point in the history
* chore: eslint use formatters

* chore: upgrade deps
  • Loading branch information
liweijie0812 authored Nov 6, 2024
1 parent d18691e commit a1b1ae4
Show file tree
Hide file tree
Showing 3 changed files with 487 additions and 524 deletions.
11 changes: 1 addition & 10 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
import antfu from '@antfu/eslint-config'

export default antfu({
// Enable stylistic formatting rules
// stylistic: true,

// Or customize the stylistic rules
stylistic: {
indent: 2, // 4, or 'tab'
quotes: 'single', // or 'double'
},
yaml: true,
typescript: true,
formatters: true,
})
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,15 @@
"devDependencies": {
"@antfu/eslint-config": "^3.8.0",
"@octokit/plugin-rest-endpoint-methods": "^13.2.6",
"@types/node": "^22.7.9",
"@types/node": "^22.9.0",
"@vercel/ncc": "^0.38.2",
"eslint": "^9.13.0",
"eslint": "^9.14.0",
"eslint-plugin-format": "^0.1.2",
"lint-staged": "^15.2.10",
"rimraf": "^6.0.1",
"simple-git-hooks": "^2.11.1",
"typescript": "^5.6.3",
"vitest": "^2.1.3"
"vitest": "^2.1.4"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
Expand Down
Loading

0 comments on commit a1b1ae4

Please sign in to comment.