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
muslnode 18–226 runs
build_error
glibcnode 18–226 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
default (plugin)
✓ plugins: ['objects']
✗ plugins: ['eslint-plugin-objects']
ESLint plugin prefix 'eslint-plugin-' can be omitted. Configuration is done via rules, not direct import.
Rule: no-object-property-split
✓ 'objects/no-object-property-split': 'error'
✗ 'no-object-property-split': 'error'
Rule names must be prefixed with plugin short name 'objects/'
Rule: no-object-properties-first-line
✓ 'objects/no-object-properties-first-line': 'warn'
✗ 'objects/no-object-properties-first-line': 1
ESLint rules accept severity strings or numbers; string form is preferred in config files
Configures ESLint with all 4 rules enabled and shows common violation patterns.
// Install locally:
// npm install --save-dev eslint eslint-plugin-objects
// In .eslintrc.json:
{
"plugins": ["objects"],
"rules": {
"objects/no-object-property-split": 2,
"objects/no-object-properties-first-line": 1,
"objects/no-object-properties-last-line": 1,
"objects/no-object-properties-one-line": 1
}
}
// Example file that will trigger errors:
const obj = { a: 1, b: 2 }; // Error: no-object-properties-one-line
const obj2 = {
a: 1, // Error: no-object-properties-first-line
b: 2
};
Errors
Common errors & fixes
Error: Failed to load plugin 'objects': Cannot find module 'eslint-plugin-objects'
Plugin not installed locally or globally.
fixRun 'npm install --save-dev eslint-plugin-objects' in your project.
Definition for rule 'objects/no-object-property-split' was not found.
Rule name misspelled or plugin not properly loaded.
fixEnsure plugin is listed in 'plugins' array and rule name matches exactly (includes 'objects/' prefix).
Error: ESLint configuration is invalid:
- Unexpected top-level property "objects".
Misplaced configuration: placed rules under 'objects' instead of 'plugins'.
fixUse 'plugins: ["objects"]' and 'rules: { "objects/rule-name": ... }'. Audit
Dependencies
eslintrequiredpeer dependency, ESLint >=0.8.1 required