{"id":19539,"library":"eslint-config-lisk-base","title":"Lisk Base ESLint Config","description":"An ESLint configuration package for Lisk blockchain projects, extending eslint-config-airbnb-base with custom overrides. Current stable version is 2.0.1, released with updates for ESLint 7 and TypeScript parser support. It is part of the Lisk ecosystem and is actively maintained alongside other Lisk packages. Key differentiators: tailored for blockchain development, integrates with Prettier, and supports TypeScript via peer dependencies. Release cadence follows Lisk SDK updates, roughly semi-annual.","status":"active","version":"2.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/LiskHQ/eslint-config-lisk-base","tags":["javascript","eslint","lisk","blockchain"],"install":[{"cmd":"npm install eslint-config-lisk-base","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-config-lisk-base","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-config-lisk-base","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency: ESLint is required to use this config","package":"eslint","optional":false},{"reason":"Peer dependency: needed for TypeScript parsing","package":"@typescript-eslint/parser","optional":true},{"reason":"Peer dependency: needed for TypeScript rules","package":"@typescript-eslint/eslint-plugin","optional":true},{"reason":"Peer dependency: jest-specific rules","package":"eslint-plugin-jest","optional":true},{"reason":"Peer dependency: import/export rules","package":"eslint-plugin-import","optional":false}],"imports":[{"note":"Use the short name 'lisk-base' in extends. Adding the full package name also works but is non-standard.","wrong":"extends: ['eslint-config-lisk-base']","symbol":"plugin","correct":"extends: ['lisk-base']"},{"note":"Configuration is done via JSON, not JavaScript imports.","wrong":"// Don't use require() - ESLint config files are JSON","symbol":"config","correct":"// In .eslintrc.json:\n{\n  \"extends\": [\"lisk-base\"]\n}"},{"note":"The config does not automatically include TypeScript support; you must install peer deps and set parser in your own config if needed.","wrong":"// Not using TypeScript parser will cause errors on .ts files","symbol":"typescript","correct":"// Requires both @typescript-eslint/parser and @typescript-eslint/eslint-plugin as peer deps"}],"quickstart":{"code":"// 1. Install\nnpm install --save-dev eslint eslint-config-lisk-base eslint-plugin-import\n\n// 2. Create .eslintrc.json\n{\n  \"extends\": [\"lisk-base\"]\n}\n\n// 3. Run ESLint\nnpx eslint src/","lang":"javascript","description":"Shows basic installation and configuration of eslint-config-lisk-base in a project."},"warnings":[{"fix":"Upgrade ESLint to ^7.22.0 or higher","message":"Breaking change from v1 to v2: requires ESLint 7+ and drops support for ESLint 6","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Use Node 14+","message":"Node.js 12 support ended; Node >=14 is recommended for v2","severity":"deprecated","affected_versions":">=2.0.0"},{"fix":"Review the overrides in the package's rules (available on GitHub)","message":"The config extends eslint-config-airbnb-base but overrides some rules. Check for unexpected linting differences","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 airbnb-base: npm install --save-dev eslint-config-airbnb-base","cause":"Missing peer dependency eslint-config-airbnb-base (installed automatically by eslint-config-lisk-base)","error":"Error: Cannot find module 'eslint-config-airbnb-base'"},{"fix":"Use: {\"extends\": [\"lisk-base\"]}","cause":"Using 'extends' inside an object incorrectly; must be an array","error":"Error: ESLint configuration in .eslintrc.json is invalid: \"lisk-base\" is not a valid configuration key"},{"fix":"Install @typescript-eslint/parser and @typescript-eslint/eslint-plugin as peer deps, and set parserOptions.ecmaVersion in your config","cause":"ESLint not configured for modern JavaScript or TypeScript","error":"Parsing error: The keyword 'const' is reserved"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}