Merge pull request #85 from ing-bank/chore/lintScripts

Fix linting scripts
This commit is contained in:
Mikhail Bashkirov 2019-06-04 16:33:02 +02:00 committed by GitHub
commit 0096758b90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 13 deletions

View file

@ -8,7 +8,7 @@ end_of_line = lf
insert_final_newline = true insert_final_newline = true
trim_trailing_whitespace = true trim_trailing_whitespace = true
[*.{html,js}] [*.{html,js,md}]
block_comment_start = /** block_comment_start = /**
block_comment = * block_comment = *
block_comment_end = */ block_comment_end = */

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:prune-snapshots": "karma start --prune-snapshots",
"test:bs": "karma start karma.bs.config.js --coverage", "test:bs": "karma start karma.bs.config.js --coverage",
"lint": "run-p lint:*", "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: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": "npm run format:eslint && npm run format:prettier",
"format:eslint": "eslint --ext .js,.html . --fix", "format:eslint": "eslint --ext .js,.html . --fix",
"format:prettier": "prettier '**/*.js' --write" "format:prettier": "prettier \"**/*.js\" --write"
}, },
"lint-staged": { "lint-staged": {
"*": [ "*": [