mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
7 lines
272 B
JavaScript
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."
|
|
}
|
|
}
|