From 4582b7310268bd5fc2619446be223e1ffbbc8f9f Mon Sep 17 00:00:00 2001 From: Fine Date: Thu, 15 Dec 2022 13:28:46 +0800 Subject: [PATCH] build: update rules --- .husky/pre-commit | 1 - package.json | 27 +-------------------------- 2 files changed, 1 insertion(+), 27 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 4bbf162b..b519fdce 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -29,4 +29,3 @@ PATH="/usr/local/bin:$PATH" npm run lint npm run lint:prettier npm run lint:stylelint -npm run lint:lint-staged diff --git a/package.json b/package.json index 979273b9..4d30be52 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,6 @@ "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", "lint:prettier": "prettier --write \"src/**/*.{js,json,tsx,css,less,scss,vue,html,md}\"", "lint:stylelint": "stylelint --cache --fix \"**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/", - "lint:lint-staged": "lint-staged", "prepare": "husky install" }, "dependencies": { @@ -82,29 +81,5 @@ "> 1%", "last 2 versions", "not dead" - ], - "lint-staged": { - "*.{js,jsx,ts,tsx}": [ - "eslint --fix", - "prettier --write" - ], - "*.vue": [ - "eslint --fix", - "prettier --write", - "stylelint --fix --custom-syntax postcss-html" - ], - "{!(package)*.json,*.code-snippets,.!(browserslist)*rc}": [ - "prettier --write--parser json" - ], - "package.json": [ - "prettier --write" - ], - "*.{scss,less,styl}": [ - "stylelint --fix", - "prettier --write" - ], - "*.md": [ - "prettier --write" - ] - } + ] }