LANDR's shareable ESLint configuration for JavaScript and TypeScript projects. Current stable version is 2.0.0, released with peer dependencies eslint >=8 and prettier >=3. Extends eslint-config-prettier and eslint-plugin-prettier to show formatting issues as ESLint errors. Supports framework-specific configs for React and test files. Requires TypeScript parser for JS/TS linting, with typescript as a peer dependency. Includes rules for import ordering with TypeScript path patterns and Lingui i18n.
npm install eslint-config-landrVerified import paths — ran on the pinned version, not inferred.
Shows how to install and configure eslint-config-landr base config with required peer dependencies.
Update eslint and prettier to compatible versions.
Install typescript as a devDependency.
Create a .prettierrc.js file or use prettier-config-landr.
Install @typescript-eslint/parser and @typescript-eslint/eslint-plugin.
Add prettier as a devDependency.
Ensure eslint-config-landr is installed and correctly listed in extends.