{"id":19865,"library":"eslint-plugin-objects","title":"eslint-plugin-objects","description":"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.","status":"maintenance","version":"1.1.1","language":"javascript","source_language":"en","source_url":"git://github.com/davidwaterston/eslint-plugin-objects","tags":["javascript","eslint","eslintplugin","eslint-plugin","object"],"install":[{"cmd":"npm install eslint-plugin-objects","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-plugin-objects","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-plugin-objects","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency, ESLint >=0.8.1 required","package":"eslint","optional":false}],"imports":[{"note":"ESLint plugin prefix 'eslint-plugin-' can be omitted. Configuration is done via rules, not direct import.","wrong":"plugins: ['eslint-plugin-objects']","symbol":"default (plugin)","correct":"plugins: ['objects']"},{"note":"Rule names must be prefixed with plugin short name 'objects/'","wrong":"'no-object-property-split': 'error'","symbol":"Rule: no-object-property-split","correct":"'objects/no-object-property-split': 'error'"},{"note":"ESLint rules accept severity strings or numbers; string form is preferred in config files","wrong":"'objects/no-object-properties-first-line': 1","symbol":"Rule: no-object-properties-first-line","correct":"'objects/no-object-properties-first-line': 'warn'"}],"quickstart":{"code":"// Install locally:\n// npm install --save-dev eslint eslint-plugin-objects\n\n// In .eslintrc.json:\n{\n  \"plugins\": [\"objects\"],\n  \"rules\": {\n    \"objects/no-object-property-split\": 2,\n    \"objects/no-object-properties-first-line\": 1,\n    \"objects/no-object-properties-last-line\": 1,\n    \"objects/no-object-properties-one-line\": 1\n  }\n}\n\n// Example file that will trigger errors:\nconst obj = { a: 1, b: 2 }; // Error: no-object-properties-one-line\nconst obj2 = {\n  a: 1, // Error: no-object-properties-first-line\n  b: 2\n};","lang":"javascript","description":"Configures ESLint with all 4 rules enabled and shows common violation patterns."},"warnings":[{"fix":"Use an alternative plugin like eslint-plugin-object-properties or disable rules.","message":"Plugin unmaintained since 2015; may not work with modern ESLint versions.","severity":"gotcha","affected_versions":">=1.1.1"},{"fix":"Update rule names to the new format, e.g., 'no-object-properties-first-line' instead of 'no-properties-first-line'.","message":"Rules renamed in v1.1.0; configs using old rule names will break.","severity":"breaking","affected_versions":"<1.1.0"},{"fix":"Check compatibility; consider migrating to a maintained plugin.","message":"ESLint 0.x compatibility; not tested with ESLint 1.x+.","severity":"deprecated","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run 'npm install --save-dev eslint-plugin-objects' in your project.","cause":"Plugin not installed locally or globally.","error":"Error: Failed to load plugin 'objects': Cannot find module 'eslint-plugin-objects'"},{"fix":"Ensure plugin is listed in 'plugins' array and rule name matches exactly (includes 'objects/' prefix).","cause":"Rule name misspelled or plugin not properly loaded.","error":"Definition for rule 'objects/no-object-property-split' was not found."},{"fix":"Use 'plugins: [\"objects\"]' and 'rules: { \"objects/rule-name\": ... }'.","cause":"Misplaced configuration: placed rules under 'objects' instead of 'plugins'.","error":"Error: ESLint configuration is invalid: \n\t- Unexpected top-level property \"objects\"."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}