Commit f93b6b1e authored by nwindis's avatar nwindis
Browse files

Merge branch 'feature/lint-and-fix-before-commit' into 'develop'

lint and fix before commit

See merge request subugoe/emo/Qviewer!99
parents 7927b580 b4d756de
Pipeline #155841 passed with stages
in 2 minutes and 59 seconds
......@@ -79,7 +79,14 @@
"scripts": {
"build": "quasar build --modern",
"dev": "quasar dev --modern",
"lint": "eslint --ext .js,.vue src",
"lint": "npm run lint:vue && npm run lint:js && npm run lint:scss && npm run lint:markdown",
"test": "npm run test:unit",
"fix": "npm run fix:vue && npm run fix:js && npm run fix:scss",
"fix:vue": "eslint --fix --ext .vue src",
"fix:js": "eslint --fix --ext .js src",
"fix:scss": "node_modules/.bin/stylelint --fix 'src/**/*.scss'",
"lint:vue": "eslint --ext .vue src",
"lint:js": "eslint --ext .js src",
"lint:scss": "node_modules/.bin/stylelint 'src/**/*.{scss,vue}'",
"lint:markdown": "node_modules/.bin/markdownlint '**/*.{md,markdown}'",
"test:unit": "jest --updateSnapshot"
......@@ -89,7 +96,7 @@
},
"husky": {
"hooks": {
"pre-commit": "npm run lint:scss && npm run lint:markdown && npm run lint && npm run test:unit",
"pre-commit": "npm run lint && npm run test",
"prepare-commit-msg": "exec < /dev/tty && git cz --hook || true"
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment