Skip to content

Commit

Permalink
style(Eslint): 配置 @nuxt/eslint-config 依赖包
Browse files Browse the repository at this point in the history
  • Loading branch information
baiwumm committed Apr 1, 2024
1 parent 9f3cd60 commit 439e9f5
Show file tree
Hide file tree
Showing 4 changed files with 243 additions and 513 deletions.
5 changes: 1 addition & 4 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ module.exports = {
es2021: true, // 支持es2021语法的检测
node: true // 支持node环境的检测
},
extends: [
'eslint:recommended', // 使用eslint推荐的配置进行检测
'plugin:vue/vue3-essential' // 支持vue3相关语法的检测
],
extends: ['@nuxt/eslint-config'],
overrides: [],
parserOptions: {
ecmaVersion: 'latest', // 解析文件的时候使用最新的ecmaVersion
Expand Down
7 changes: 0 additions & 7 deletions .prettierrc

This file was deleted.

11 changes: 3 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"preview": "nuxt preview",
"postinstall": "nuxt prepare",
"prepare": "husky",
"checklint": "eslint --ext .js,.vue --ignore-path .gitignore .",
"reviselint": "eslint --fix --ext .js,.vue --ignore-path .gitignore .",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"pre-commit": "lint-staged",
"commitlint": "commitlint --config commitlint.config.cjs -e -V",
"release": "release-it"
Expand All @@ -24,16 +24,11 @@
"devDependencies": {
"@commitlint/cli": "^19.2.1",
"@commitlint/config-conventional": "^19.1.0",
"@nuxt/eslint-config": "^0.2.0",
"@release-it/conventional-changelog": "^8.0.1",
"babel-eslint": "^10.1.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-loader": "^4.0.2",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-vue": "^9.24.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
"release-it": "^17.1.1"
}
}
Loading

0 comments on commit 439e9f5

Please sign in to comment.