{"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,"search_vec":"'2.0.0':19 '3':28 '8':25 'config':3,32,50,85 'configur':9 'current':15 'depend':23,67 'ecmascript':81 'error':45 'eslint':2,8,24,31,36,44,83 'eslint-config-landr':1 'eslint-config-pretti':30 'eslint-plugin-pretti':35 'extend':29 'file':55 'format':41 'framework':48 'framework-specif':47 'i18n':79 'import':71 'includ':68 'issu':42 'javascript':11,80 'js/ts':60 'landr':4,5 'lingui':78 'lint':61,84 'order':72 'parser':58 'path':75 'pattern':76 'peer':22,66 'plugin':37 'prettier':27,33,38,86 'project':14 'react':52 'releas':20 'requir':56 'rule':69 'shareabl':7 'show':40 'specif':49 'stabl':16 'support':46 'test':54 'typescript':13,57,63,74,82 'version':17","created_at":"2026-04-25T11:18:19.640562+00:00","updated_at":"2026-04-25T11:18:19.640562+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/LandrAudio/linting-and-formatting.git#master","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/eslint-config-landr","openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-07-24","install_tag":null}}