Registry / testing / eslint-plugin-oro

eslint-plugin-oro

JSON →
library0.0.3jsnpmunverified

ESLint plugin providing custom linting rules for OroPlatform, OroCRM, and OroCommerce projects. Current stable version is 0.0.3 (released 2021). It adds a single rule, 'named-constructor', that enforces naming conventions for Backbone.js constructor functions (View, Model, Collection). Requires ESLint >=7.23.0 and has no active development since 0.0.2. Differentiators: specifically targets Oro ecosystem conventions, but otherwise limited in scope and community adoption compared to general Backbone linting tools.

npm install eslint-plugin-oro
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-ORO
E
eslint-plugin-oro
testingjavascriptv0.0.3
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

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

plugin
plugins: ['oro']
plugins: ['eslint-plugin-oro']
ESLint automatically strips the 'eslint-plugin-' prefix. Use 'oro' in the plugins array.
recommended config
extends: ['plugin:oro/recommended']
extends: ['oro/recommended']
Must include the 'plugin:' prefix when referencing a plugin's config.
named-constructor rule
rules: { 'oro/named-constructor': 'warn' }
rules: { 'named-constructor': 'warn' }
Rule names must be prefixed with the plugin name (oro/) to avoid conflicts.

Configures eslint-plugin-oro with recommended settings and the named-constructor rule. Sets Backbone extendable types.

// .eslintrc.json { "plugins": ["oro"], "extends": ["plugin:oro/recommended"], "settings": { "oro": { "backboneExtendablesTypes": ["View", "Model", "Collection"] } }, "rules": { "oro/named-constructor": "error" } } // Example file that may trigger rule: // Non-compliant: const view = BaseView.extend({}); // Compliant: const MyView = BaseView.extend({});
Debug
Known issues
breakingrequires eslint >=7.23.0, incompatible with older versions
fix
upgrade eslint to >=7.23.0
affects: <7.23.0
gotchaplugin contains only one rule: named-constructor
fix
check documentation for other plugins if more rules are needed
affects: all
gotchasettings.oro.backboneExtendablesTypes must be an array of strings, otherwise plugin may fail silently
fix
provide array with Backbone class name suffixes (e.g., ['View','Model','Collection'])
affects: all
gotchaplugin is not actively maintained (last release 0.0.2, no updates since 2021)
fix
consider forking or using alternative eslint plugins for Backbone
affects: all
Errors
Common errors & fixes
Error: Failed to load plugin 'oro': Cannot find module 'eslint-plugin-oro'
plugin not installed or missing from node_modules
fix
run 'npm install eslint-plugin-oro --save-dev'
Configuration for rule "oro/named-constructor" is invalid: Value "1" is not a valid severity.
using numeric severity 1 instead of string 'warn' or 'error'
fix
use string severity: 'off', 'warn', or 'error'
Upgrade
Version history
0.0.3latest on npm
Audit
Dependencies
eslintrequiredPeer dependency required for the plugin to function. Must be >=7.23.0.
Agent activity
2 hits · last 30 days
node
2
Resources
eslint-plugin-oro — npm install eslint-plugin-oro · libregistry