1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Renaming NODE_ENV to ENV

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2021-08-16 10:08:01 +03:00
parent 1d62e8dc27
commit 1f0c132ba8
2 changed files with 3 additions and 3 deletions

View File

@ -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.NODE_ENV === "production" ? "error" : "warning",
"unused-imports/no-unused-imports-ts": process.env.ENV === "production" ? "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.NODE_ENV === "production" ? "error" : "warning",
"unused-imports/no-unused-imports-ts": process.env.ENV === "production" ? "error" : "warning",
"unused-imports/no-unused-vars-ts": [
"warn", {
"vars": "all",

View File

@ -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": "NODE_ENV=production yarn run eslint --ext js,ts,tsx --max-warnings=0 .",
"lint": "ENV=production 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",