{"id":19538,"library":"eslint-config-landr","title":"eslint-config-landr","description":"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.","status":"active","version":"2.0.0","language":"javascript","source_language":"en","source_url":"https://github.com/LandrAudio/linting-and-formatting#master","tags":["javascript","ecmascript","typescript","eslint","lint","config","prettier"],"install":[{"cmd":"npm install eslint-config-landr","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-config-landr","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-config-landr","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Required by the TypeScript parser for linting JS/TS files","package":"typescript","optional":false},{"reason":"Peer dependency for ESLint functionality","package":"eslint","optional":false},{"reason":"Peer dependency for prettier integration via eslint-config-prettier and eslint-plugin-prettier","package":"prettier","optional":false}],"imports":[{"note":"Use shorthand 'landr' in extends array, not full package name.","wrong":"extends: ['eslint-config-landr']","symbol":"landr config","correct":"extends: ['landr']"},{"note":"React framework config extends base landr config.","wrong":"extends: ['landr'] (missing react-specific rules)","symbol":"landr/react","correct":"extends: ['landr/react']"},{"note":"Test framework config extends base landr config.","wrong":"extends: ['landr'] (missing test-specific rules)","symbol":"landr/test","correct":"extends: ['landr/test']"}],"quickstart":{"code":"// .eslintrc.js\nmodule.exports = {\n  extends: ['landr'],\n};\n\n// Install peer dependencies\nyarn add -D eslint-config-landr eslint prettier typescript eslint-plugin-prettier eslint-config-prettier @typescript-eslint/parser @typescript-eslint/eslint-plugin","lang":"javascript","description":"Shows how to install and configure eslint-config-landr base config with required peer dependencies."},"warnings":[{"fix":"Update eslint and prettier to compatible versions.","message":"Version 2.0.0 requires eslint >=8 and prettier >=3. Older versions may not work.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Install typescript as a devDependency.","message":"TypeScript parser is used even for JS files; typescript must be installed as a peer dependency.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Create a .prettierrc.js file or use prettier-config-landr.","message":"Prettier configuration is expected from a .prettierrc.js file in the project root; if missing, default prettier options are used.","severity":"gotcha","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":"Install @typescript-eslint/parser and @typescript-eslint/eslint-plugin.","cause":"Missing @typescript-eslint plugins as dependencies","error":"Error: Failed to load plugin '@typescript-eslint' declared in 'eslint-config-landr'"},{"fix":"Add prettier as a devDependency.","cause":"prettier not installed","error":"Error: Cannot find module 'prettier'"},{"fix":"Ensure eslint-config-landr is installed and correctly listed in extends.","cause":"Extension shorthand not recognized","error":"Error: ESLint configuration in .eslintrc.js is invalid: \"landr\" is not a valid configuration"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}