diff --git a/assets/.editorconfig b/assets/.editorconfig new file mode 100644 index 000000000..78b36ca08 --- /dev/null +++ b/assets/.editorconfig @@ -0,0 +1 @@ +root = true diff --git a/package.json b/package.json index bf0a8bf78..d1617d8f4 100644 --- a/package.json +++ b/package.json @@ -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": { "*": [