From f64f1b3bd9bec4036748b98ff8ac0f0431749f30 Mon Sep 17 00:00:00 2001 From: Markus Hatvan Date: Thu, 2 Dec 2021 23:57:13 +0100 Subject: chore: upgrade commitlint and eslint-plugin-unicorn to latest (#2295) - upgrade commitlint and eslint-plugin-unicorn dependencies - update prepare-code script to run lint:fix instead of lint - fix unicorn/no-await-expression-member lint issues - various whitespace formatting fixes due to lint:fix --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index 87046aed1..f01fd0d40 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "reformat-files": "./node_modules/.bin/prettier --ignore-path .eslintignore --write --require-pragma \"**/*.{js,jsx,scss}\"", "apply-branding": "ts-node ./src/i18n/apply-branding.ts", "update-submodules": "git submodule update --remote --force", - "prepare-code": "npm run lint && npm run reformat-files && npm run manage-translations && npm run apply-branding", + "prepare-code": "npm run lint:fix && npm run reformat-files && npm run manage-translations && npm run apply-branding", "link-readme": "ts-node scripts/link-readme.ts", "minify-images": "./scripts/minify-images.sh", "start:server": "ts-node src/internal-server/test.ts", @@ -128,8 +128,8 @@ "@babel/preset-env": "^7.16.0", "@babel/preset-react": "^7.14.5", "@babel/register": "^7.15.3", - "@commitlint/cli": "^14.1.0", - "@commitlint/config-conventional": "^14.1.0", + "@commitlint/cli": "^15.0.0", + "@commitlint/config-conventional": "^15.0.0", "@formatjs/cli": "^4.4.0", "@types/color": "^3.0.2", "@types/expect.js": "^0.3.29", @@ -167,7 +167,7 @@ "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-react": "^7.27.0", "eslint-plugin-react-hooks": "^4.3.0", - "eslint-plugin-unicorn": "^38.0.1", + "eslint-plugin-unicorn": "^39.0.0", "expect.js": "^0.3.1", "gulp": "^4.0.2", "gulp-babel": "^8.0.0", -- cgit v1.2.3-70-g09d2