@nexus_js/eslint-plugin-bridge
v0.9.21
Published
Nexus Bridge ESLint rules — enforce tenant isolation helpers (withTenant)
Maintainers
Readme
@nexus_js/eslint-plugin-bridge
ESLint rules for Nexus Bridge tenancy isolation.
Install
pnpm add -D eslint @nexus_js/eslint-plugin-bridgeUsage
In your ESLint config:
import bridge from '@nexus_js/eslint-plugin-bridge'
export default [
{
plugins: { bridge },
rules: {
'bridge/require-with-tenant': 'error',
},
},
]Rules
bridge/require-with-tenant: requiresctx.db.*(...)calls to wrap the first argument withwithTenant(ctx, ...).
