stack/configs/eslint/extra-rules.js
2025-04-28 21:26:52 -07:00

7 lines
272 B
JavaScript

module.exports = {
'no-next-public-env': {
selector: "MemberExpression[object.name='process'][property.name='env'][parent.property.name=/^NEXT_PUBLIC_/]",
message: "Direct access to process.env.NEXT_PUBLIC_* is not allowed. Use getPublicEnvVar() instead."
}
}