From 6b99e259b816399b0961d1bcf7dcfb1feeb82e9e Mon Sep 17 00:00:00 2001 From: dweinholz Date: Fri, 11 Feb 2022 12:29:10 +0100 Subject: [PATCH] test precommit --- .prettierignore | 5 +++++ .prettierrc | 11 +++++++++++ package-lock.json | 19 +++++++++++++++++++ package.json | 23 ++++++++++++----------- 4 files changed, 47 insertions(+), 11 deletions(-) create mode 100644 .prettierignore create mode 100644 .prettierrc diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000000..961203b0a6 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,5 @@ +node_modules +build +dist +res +coverage diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000000..9cf2737a17 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,11 @@ +{ + "printWidth": 120, + "tabWidth": 2, + "proseWrap": "preserve", + "semi": false, + "singleQuote": true, + "useTabs": false, + "tabWidth": 2, + "arrowParens": "avoid", + "trailingComma": "es5" +} diff --git a/package-lock.json b/package-lock.json index cc0d683d9d..33432b43fd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -106,6 +106,7 @@ "lint-staged": "^12.3.3", "ngx-spec": "2.1.5", "npm-run-all": "4.1.5", + "prettier": "^2.5.1", "raw-loader": "4.0.2", "sass-loader": "12.4.0", "script-loader": "0.7.2", @@ -15298,6 +15299,18 @@ "node": ">= 0.8.0" } }, + "node_modules/prettier": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.5.1.tgz", + "integrity": "sha512-vBZcPRUR5MZJwoyi3ZoyQlc1rXeEck8KgeC9AwwOn+exuxLxq5toTRDTSaVrXHxelDMHy9zlicw8u66yxoSUFg==", + "dev": true, + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + } + }, "node_modules/pretty-bytes": { "version": "5.6.0", "dev": true, @@ -29047,6 +29060,12 @@ "prelude-ls": { "version": "1.2.1" }, + "prettier": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.5.1.tgz", + "integrity": "sha512-vBZcPRUR5MZJwoyi3ZoyQlc1rXeEck8KgeC9AwwOn+exuxLxq5toTRDTSaVrXHxelDMHy9zlicw8u66yxoSUFg==", + "dev": true + }, "pretty-bytes": { "version": "5.6.0", "dev": true diff --git a/package.json b/package.json index 1fe9b1d3c2..0f9a2e5bb3 100644 --- a/package.json +++ b/package.json @@ -123,6 +123,7 @@ "lint-staged": "^12.3.3", "ngx-spec": "2.1.5", "npm-run-all": "4.1.5", + "prettier": "^2.5.1", "raw-loader": "4.0.2", "sass-loader": "12.4.0", "script-loader": "0.7.2", @@ -134,15 +135,15 @@ "url-loader": "4.1.1", "webpack-cli": "4.9.2" }, - "lint-staged": { - "*.{js,jsx,ts}": [ - "prettier --write", - "eslint --fix" - ], - "*.{html,css,less,ejs}": [ - "prettier --write" - ], - "*.js": "eslint --cache --fix", - "*.{js,css,md}": "prettier --write" - } + "lint-staged": { + "*.{js,jsx,ts}": [ + "prettier --write", + "eslint --fix" + ], + "*.{html,css,less,ejs}": [ + "prettier --write" + ], + "*.js": "eslint --cache --fix", + "*.{js,css,md}": "prettier --write" + } }