From b1d485e6a9896246a2cfd5aea34a0a28c8be3d24 Mon Sep 17 00:00:00 2001 From: Alex Andreev Date: Mon, 16 Aug 2021 16:55:51 +0300 Subject: [PATCH] Renaming ENV to PROD Signed-off-by: Alex Andreev --- .eslintrc.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 266dc6650b..8bdc4d473e 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -114,7 +114,7 @@ module.exports = { "@typescript-eslint/ban-ts-comment": "off", "@typescript-eslint/no-empty-interface": "off", "@typescript-eslint/no-unused-vars": "off", - "unused-imports/no-unused-imports-ts": process.env.ENV === "production" ? "error" : "warning", + "unused-imports/no-unused-imports-ts": process.env.PROD === "true" ? "error" : "warning", "unused-imports/no-unused-vars-ts": [ "warn", { "vars": "all", @@ -182,7 +182,7 @@ module.exports = { "@typescript-eslint/no-empty-function": "off", "react/display-name": "off", "@typescript-eslint/no-unused-vars": "off", - "unused-imports/no-unused-imports-ts": process.env.ENV === "production" ? "error" : "warning", + "unused-imports/no-unused-imports-ts": process.env.PROD === "true" ? "error" : "warning", "unused-imports/no-unused-vars-ts": [ "warn", { "vars": "all", diff --git a/package.json b/package.json index 53b47df082..86998e4bee 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "download:kubectl": "yarn run ts-node build/download_kubectl.ts", "download:helm": "yarn run ts-node build/download_helm.ts", "build:tray-icons": "yarn run ts-node build/build_tray_icon.ts", - "lint": "ENV=production yarn run eslint --ext js,ts,tsx --max-warnings=0 .", + "lint": "PROD=true yarn run eslint --ext js,ts,tsx --max-warnings=0 .", "lint:fix": "yarn run lint --fix", "mkdocs-serve-local": "docker build -t mkdocs-serve-local:latest mkdocs/ && docker run --rm -it -p 8000:8000 -v ${PWD}:/docs mkdocs-serve-local:latest", "verify-docs": "docker build -t mkdocs-serve-local:latest mkdocs/ && docker run --rm -v ${PWD}:/docs mkdocs-serve-local:latest build --strict",