@navinc/eslint-plugin
v1.1.0
Published
Nav's custom eslint rules
Downloads
310
Maintainers
Keywords
Readme
@navinc/eslint-plugin
Custom eslint rules
no-process-env
Copied and modified from https://github.com/eslint/eslint/blob/main/lib/rules/no-process-env.js
This version also checks for instances of window.process.env
and global.process.env
Options
message
Customize error message. Default: "Unexpected use of process.env."
"rules": {
"nav/no-process-env": ["error", { "message": "custom error message" }]
}