Separate linting and formatting

This commit is contained in:
Linus Groh
2019-12-16 21:16:33 +00:00
parent d3e3b82a13
commit 04f0b65480
2 changed files with 8 additions and 4 deletions
+4 -2
View File
@@ -95,8 +95,10 @@ See [`docs/config.md`](docs/config.md) for all available options.
- Run `yarn install` to install dependencies
- Run `yarn serve` to compile for development and start the hot-reload server
- Run `yarn lint:js` to lint and fix JavaScript/Vue files
- Run `yarn lint:md` to lint and fix Markdown files
- Run `yarn lint:js` to lint JavaScript/Vue files
- Run `yarn lint:md` to lint Markdown files
- Run `yarn format:js` to format JavaScript/Vue files
- Run `yarn format:md` to format Markdown files
- Run `yarn test` to run unit tests
### CORS-Proxy
+4 -2
View File
@@ -8,8 +8,10 @@
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint:js": "vue-cli-service lint",
"lint:md": "prettier --write '{*.md,docs/**/*.md,src/**/*.md}'",
"lint:js": "vue-cli-service lint --no-fix",
"lint:md": "prettier --check '{*.md,docs/**/*.md,src/**/*.md}'",
"format:js": "vue-cli-service lint",
"format:md": "prettier --write '{*.md,docs/**/*.md,src/**/*.md}'",
"cors-proxy": "node scripts/corsProxy.js",
"i18n:report": "vue-cli-service i18n:report --src './src/**/*.?(js|vue)' --locales './src/locales/**/*.json'",
"test": "vue-cli-service test:unit"