mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:01:42 +08:00
feat: add ESLint and update linting errors (#26)
* Install ESLint and Astro ESLint plugin * Configure 2 plugins * Improve ignore files * Add lint script * Install astro-eslint-parser * Add parser and fix linting errors
This commit is contained in:
+6
-1
@@ -12,7 +12,8 @@
|
||||
"format:check": "prettier --check .",
|
||||
"format": "prettier --write .",
|
||||
"cz": "cz",
|
||||
"prepare": "husky install"
|
||||
"prepare": "husky install",
|
||||
"lint": "eslint ."
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/rss": "^2.1.0",
|
||||
@@ -31,8 +32,12 @@
|
||||
"@tailwindcss/typography": "^0.5.9",
|
||||
"@types/github-slugger": "^1.3.0",
|
||||
"@types/react": "^18.0.27",
|
||||
"@typescript-eslint/parser": "^5.50.0",
|
||||
"astro-eslint-parser": "^0.11.0",
|
||||
"commitizen": "^4.3.0",
|
||||
"cz-conventional-changelog": "^3.3.0",
|
||||
"eslint": "^8.33.0",
|
||||
"eslint-plugin-astro": "^0.23.0",
|
||||
"husky": "^8.0.3",
|
||||
"lint-staged": "^13.1.0",
|
||||
"prettier": "^2.8.3",
|
||||
|
||||
Reference in New Issue
Block a user