chore: fix linting scripts for windows; eclint use .gitignore

This commit is contained in:
Joren Broekema 2019-06-04 14:04:25 +02:00 committed by Mikhail Bashkirov
parent 6f515e6000
commit 47514a393a
2 changed files with 4 additions and 3 deletions

1
assets/.editorconfig Normal file
View file

@ -0,0 +1 @@
root = true

View file

@ -43,12 +43,12 @@
"test:prune-snapshots": "karma start --prune-snapshots",
"test:bs": "karma start karma.bs.config.js --coverage",
"lint": "run-p lint:*",
"lint:eclint": "eclint check $(find . \\( -name '*.html' -o -name '*.js' -o -name '*.css' \\) -type f -not -path '*/\\.*' -not -path '*node_modules/*' -not -path '*assets/*' -not -path '*coverage/*')",
"lint:eclint": "git ls-files | xargs eclint check",
"lint:eslint": "eslint --ext .js,.html .",
"lint:prettier": "prettier '**/*.js' --list-different || (echo '↑↑ these files are not prettier formatted ↑↑' && exit 1)",
"lint:prettier": "prettier \"**/*.js\" --list-different || (echo '↑↑ these files are not prettier formatted ↑↑' && exit 1)",
"format": "npm run format:eslint && npm run format:prettier",
"format:eslint": "eslint --ext .js,.html . --fix",
"format:prettier": "prettier '**/*.js' --write"
"format:prettier": "prettier \"**/*.js\" --write"
},
"lint-staged": {
"*": [