Shareable ESLint configuration for LoopBack projects. Version 14.0.0 provides a set of predefined rules consistent with LoopBack's coding standards. This package is maintained by the LoopBack team and is primarily used in Node.js server-side applications. It integrates with ESLint and allows easy extension and overriding of rules. Release cadence is tied to LoopBack releases. Unlike generic ESLint configs, this one is tailored specifically for LoopBack projects, ensuring code style consistency across the ecosystem.
npm install eslint-config-loopbackVerified import paths — ran on the pinned version, not inferred.
Shows how to install and configure eslint-config-loopback in a LoopBack project, with optional override of rules.
Check peer dependency requirements in package.json; use compatible ESLint version.
Override deprecated rules in .eslintrc with appropriate replacements or set to 'off'.
Add 'parser' field to .eslintrc (e.g., '@typescript-eslint/parser') and install corresponding packages.
Add 'env' object to .eslintrc: { "env": { "node": true } }.Ensure eslint-config-loopback is installed: npm install -D eslint eslint-config-loopback.
Update .eslintrc to use the correct rule name (e.g., '@stylistic/comma-dangle') or set to 'off'.
Use appropriate ESLint version or adjust ecmaVersion/env in .eslintrc.