From d99acd818b2ed05e9212b7077d349ea6ffb17afb Mon Sep 17 00:00:00 2001 From: Oscar Hinton Date: Fri, 22 Jul 2022 11:15:10 +0200 Subject: [PATCH] Change eslint settings to error instead of warn (#3128) --- .eslintrc.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 93477eebf7a..161bc9ec744 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -14,7 +14,7 @@ ], "rules": { "@typescript-eslint/no-explicit-any": "off", // TODO: This should be re-enabled - "@typescript-eslint/no-unused-vars": ["warn", { "args": "none" }], + "@typescript-eslint/no-unused-vars": ["error", { "args": "none" }], "@typescript-eslint/explicit-member-accessibility": [ "error", { @@ -27,7 +27,7 @@ "allowedNames": ["self"] } ], - "no-console": "warn", + "no-console": "error", "import/no-unresolved": "off", // TODO: Look into turning off once each package is an actual package. "import/order": [ "error", diff --git a/package.json b/package.json index 10e1d9f76ca..4663cd082aa 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "homepage": "https://bitwarden.com", "scripts": { "prepare": "husky install", - "lint": "eslint . && prettier --check .", + "lint": "eslint . || prettier --check .", "lint:fix": "eslint . --fix", "prettier": "prettier --write .", "test": "jest",