Registry / testing / eslint-plugin-objects

eslint-plugin-objects

JSON →
library1.1.1jsnpmunverified

ESLint plugin enforcing stylistic conventions for multi-property objects. Version 1.1.1 (last release 2015), stable but unmaintained since 2015. Provides 4 rules: no-object-properties-first-line, no-object-properties-last-line, no-object-properties-one-line, no-object-property-split. Requires ESLint >=0.8.1. Unlike other object formatting plugins, focuses solely on property placement across lines, not sorting or grouping. No TypeScript support.

npm install eslint-plugin-objects
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-OBJE
E
eslint-plugin-objects
testingjavascriptv1.1.1
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
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 18–226 runs
build_error
glibc
node 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 };
Debug
Known issues
gotchaPlugin unmaintained since 2015; may not work with modern ESLint versions.
fix
Use an alternative plugin like eslint-plugin-object-properties or disable rules.
affects: >=1.1.1
breakingRules renamed in v1.1.0; configs using old rule names will break.
fix
Update rule names to the new format, e.g., 'no-object-properties-first-line' instead of 'no-properties-first-line'.
affects: <1.1.0
deprecatedESLint 0.x compatibility; not tested with ESLint 1.x+.
fix
Check compatibility; consider migrating to a maintained plugin.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Failed to load plugin 'objects': Cannot find module 'eslint-plugin-objects'
Plugin not installed locally or globally.
fix
Run '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.
fix
Ensure 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'.
fix
Use 'plugins: ["objects"]' and 'rules: { "objects/rule-name": ... }'.
Upgrade
Version history
1.1.1latest on npm
Audit
Dependencies
eslintrequiredpeer dependency, ESLint >=0.8.1 required
Agent activity
6 hits · last 30 days
node
6
Resources
eslint-plugin-objects — npm install eslint-plugin-objects · libregistry