Registry / testing / eslint-plugin-rv-lint-rules

eslint-plugin-rv-lint-rules

JSON →
library0.0.4jsnpmunverified

Custom ESLint plugin enforcing project-specific coding standards for RV backend. Version 0.0.4, peer dependency on eslint >=8.0.0. Key differentiator: provides an @AuthorizedFor annotation rule to ensure resolver methods have required role/permission decorators. Limited in scope compared to broader lint plugins, tailored for specific project conventions.

npm install eslint-plugin-rv-lint-rules
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-RV-L
E
eslint-plugin-rv-lint-rules
testingjavascriptv0.0.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

plugin
✓ import plugin from 'rv-lint-rules'
✗ const plugin = require('rv-lint-rules')
ESM import; CommonJS require may work depending on project config
config
✓ const config = require('rv-lint-rules'); module.exports = config;
✗ import config from 'rv-lint-rules'
If using .eslintrc.js, CommonJS module.exports is typical, but ESM also possible
rules
✓ rules: { 'rv-lint-rules/authorized-for-decorator-required': 'error' }
✗ rules: { 'authorized-for-decorator-required': 'error' }
Rule names must be prefixed with 'rv-lint-rules/'

Shows how to configure ESLint to use the plugin and enable the custom rule.

// .eslintrc.cjs module.exports = { extends: ['rv-lint-rules'], rules: { 'rv-lint-rules/authorized-for-decorator-required': 'error', }, }; // Or for .eslintrc.json { "extends": ["rv-lint-rules"], "rules": { "rv-lint-rules/authorized-for-decorator-required": "error" } }
Debug
Known issues
gotchaRule 'authorized-for-decorator-required' only applies to resolver methods; may not fire for non-resolver files.
fix
Ensure files are recognized as resolvers (e.g., by filename pattern).
affects: 0.0.4
gotchaConfiguration via extends may not load rules if plugin name mismatch occurs.
fix
Verify package is installed as 'rv-lint-rules' and extends string matches exactly.
affects: >=0.0.0
gotchaPlugin only provides one rule currently; extending the plugin does not enable rules automatically.
fix
Manually add rule to 'rules' section in ESLint config.
affects: 0.0.4
Errors
Common errors & fixes
Error: Failed to load plugin 'rv-lint-rules'
Plugin not installed or name mismatch in extends.
fix
Run 'npm install --save-dev rv-lint-rules' and verify package.json.
ESLint couldn't find the rule 'rv-lint-rules/authorized-for-decorator-required'
Rule not enabled or plugin not configured correctly.
fix
Add 'extends: ["rv-lint-rules"]' and 'rules: { "rv-lint-rules/authorized-for-decorator-required": "error" }'.
Upgrade
Version history
0.0.4latest on npm
Audit
Dependencies
eslintrequiredPeer dependency required for ESLint plugin to function
Agent activity
2 hits · last 30 days
node
2
Resources
eslint-plugin-rv-lint-rules — npm install eslint-plugin-rv-lint-rules · libregistry