eslint-config-lion is a shareable ESLint configuration preset by itsmelion, providing a unified linting style for JavaScript, React, React Native, TypeScript, and Node.js projects. The current stable version is 2.2.7. It relies on peer dependencies installed via install-peerdeps and offers presets for various environments: 'lion' for base, 'lion/react-native' for React Native, 'lion/typescript' for TypeScript web, 'lion/typescript-node' for TypeScript Node, and 'lion/node' for Node. It also includes additional dependency groups for React, TypeScript, and Node. Key differentiator: modular presets with explicit environment-specific configurations.
npm install eslint-config-lionNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Install eslint-config-lion and its peer dependencies, then configure ESLint for a TypeScript project.
Run npx install-peerdeps --dev eslint-config-lion
Set extends to ["lion", "react-app"] and install eslint-config-react-app and eslint-plugin-flowtype.
Add "type": "module" in package.json for ES modules, or "type": "commonjs" for CommonJS.
Run npm install --save-dev eslint-import-resolver-alias
Run install-peerdeps to install all peer dependencies: npx install-peerdeps --dev eslint-config-lion
Use "extends": "lion/typescript" (short name).
Reinstall peer dependencies with install-peerdeps to match versions.