mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-06 18:24:07 +08:00
调整lint-staged配置
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
module.exports = {
|
||||
'src/**/*.js': ['eslint --fix'],
|
||||
'src/**/*.vue': ['eslint --fix', 'stylelint --fix'],
|
||||
'src/**/*.{scss,less}': ['stylelint --fix']
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
pnpm lint-staged -c ./.husky/lintstagedrc.js
|
||||
pnpm lint-staged
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"src/**/*.js": "eslint --fix",
|
||||
"src/**/*.{css,scss}": "stylelint --fix",
|
||||
"src/**/*.vue": ["eslint --fix", "stylelint --fix"]
|
||||
}
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
"svgo": "svgo -f src/assets/icons",
|
||||
"new": "plop",
|
||||
"lint:eslint": "eslint src/**/*.{js,vue} --fix",
|
||||
"lint:stylelint": "stylelint src/**/*.{vue,scss,less} --fix",
|
||||
"lint:stylelint": "stylelint src/**/*.{css,scss,vue} --fix",
|
||||
"prepare": "husky install",
|
||||
"preinstall": "npx only-allow pnpm"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user