feat(eslint): add eslint-plugin-unused-imports plugin to check and fix unused imports

This commit is contained in:
WanQuanXie 2024-05-08 14:36:24 +08:00
parent d9ba36794a
commit ddaa40a210
6 changed files with 41 additions and 9 deletions

View file

@ -8,6 +8,7 @@
"build": "next build",
"start": "next start",
"lint": "next lint",
"lint:fix": "next lint --fix",
"format:write": "prettier . --write"
},
"dependencies": {
@ -36,9 +37,10 @@
"autoprefixer": "^10.0.1",
"eslint": "^8",
"eslint-config-next": "14.1.4",
"eslint-plugin-unused-imports": "^3.2.0",
"postcss": "^8",
"prettier": "^3.2.5",
"tailwindcss": "^3.3.0",
"typescript": "^5"
}
}
}