From cedffd40f2ce5663933ca42d6416e00e405e90fd Mon Sep 17 00:00:00 2001 From: rejas Date: Sat, 29 May 2021 16:11:25 +0200 Subject: [PATCH] Lint all files, exclude others --- .prettierignore | 11 +++++++---- package.json | 4 ++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.prettierignore b/.prettierignore index b829fa7c..eeaa248d 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,5 +1,8 @@ -package-lock.json -/config/**/* -/vendor/**/* +/config +/coverage +/vendor !/vendor/vendor.js -.github/**/* +.github +.nyc_output +package-lock.json +*.ts diff --git a/package.json b/package.json index 622c3fd1..098b6efb 100644 --- a/package.json +++ b/package.json @@ -14,12 +14,12 @@ "test:coverage": "NODE_ENV=test nyc --reporter=lcov --reporter=text mocha tests --recursive --timeout=3000", "test:e2e": "NODE_ENV=test mocha tests/e2e --recursive", "test:unit": "NODE_ENV=test mocha tests/unit --recursive", - "test:prettier": "prettier --check **/*.{js,css,json,md,yml}", + "test:prettier": "prettier . --check", "test:js": "eslint js/**/*.js modules/default/**/*.js clientonly/*.js serveronly/*.js translations/*.js vendor/*.js tests/**/*.js config/* --config .eslintrc.json --quiet", "test:css": "stylelint css/main.css modules/default/**/*.css --config .stylelintrc.json", "test:calendar": "node ./modules/default/calendar/debug.js", "config:check": "node js/check_config.js", - "lint:prettier": "prettier --write **/*.{js,css,json,md,yml}", + "lint:prettier": "prettier . --write", "lint:js": "eslint js/**/*.js modules/default/**/*.js clientonly/*.js serveronly/*.js translations/*.js vendor/*.js tests/**/*.js config/* --config .eslintrc.json --fix", "lint:css": "stylelint css/main.css modules/default/**/*.css --config .stylelintrc.json --fix", "lint:staged": "pretty-quick --staged",