Skip to content
Snippets Groups Projects
Commit 267e809a authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala: Committed by David Trattnig
Browse files

fix(test): respect .prettierignore file when linting

parent 904c18de
No related branches found
Tags 1.0.0-alpha1
No related merge requests found
Pipeline #2953 passed
...@@ -7,13 +7,13 @@ ...@@ -7,13 +7,13 @@
"build": "vite build", "build": "vite build",
"lint": "npm run lint-eslint && npm run lint-prettier", "lint": "npm run lint-eslint && npm run lint-prettier",
"lint-eslint": "eslint --color --ext .js,.vue --ignore-path .gitignore --ignore-path .eslintignore src/", "lint-eslint": "eslint --color --ext .js,.vue --ignore-path .gitignore --ignore-path .eslintignore src/",
"lint-prettier": "prettier . --check --ignore-path .gitignore", "lint-prettier": "prettier . --check --ignore-path .gitignore --ignore-path .prettierignore",
"format": "npm run lint-prettier -- --write && npm run lint-eslint -- --fix", "format": "npm run lint-prettier -- --write && npm run lint-eslint -- --fix",
"spell": "npx cspell -c cspell.json **/*.{txt,js,ts,md}", "spell": "npx cspell -c cspell.json **/*.{txt,js,ts,md}",
"prepare": "husky install" "prepare": "husky install"
}, },
"lint-staged": { "lint-staged": {
"*": "prettier --check --ignore-path .gitignore", "*": "prettier --check --ignore-path .gitignore --ignore-path .prettierignore",
"*.{js,ts,vue}": "eslint --color --ignore-path .gitignore --ignore-path .eslintignore" "*.{js,ts,vue}": "eslint --color --ignore-path .gitignore --ignore-path .eslintignore"
}, },
"dependencies": { "dependencies": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment