Registry / devops / eslint-config-lisk-base

eslint-config-lisk-base

JSON →
library2.0.1jsnpmunverified

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.

npm install eslint-config-lisk-base
INSTALL
IMPORT
SIG · ESLINT-CONFIG-LISK
E
eslint-config-lisk-base
devopsjavascriptv2.0.1
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

plugin
extends: ['lisk-base']
extends: ['eslint-config-lisk-base']
Use the short name 'lisk-base' in extends. Adding the full package name also works but is non-standard.
config
// In .eslintrc.json: { "extends": ["lisk-base"] }
// Don't use require() - ESLint config files are JSON
Configuration is done via JSON, not JavaScript imports.
typescript
// Requires both @typescript-eslint/parser and @typescript-eslint/eslint-plugin as peer deps
// Not using TypeScript parser will cause errors on .ts files
The config does not automatically include TypeScript support; you must install peer deps and set parser in your own config if needed.

Shows basic installation and configuration of eslint-config-lisk-base in a project.

// 1. Install npm install --save-dev eslint eslint-config-lisk-base eslint-plugin-import // 2. Create .eslintrc.json { "extends": ["lisk-base"] } // 3. Run ESLint npx eslint src/
Debug
Known issues
breakingBreaking change from v1 to v2: requires ESLint 7+ and drops support for ESLint 6
fix
Upgrade ESLint to ^7.22.0 or higher
affects: >=2.0.0
deprecatedNode.js 12 support ended; Node >=14 is recommended for v2
fix
Use Node 14+
affects: >=2.0.0
gotchaThe config extends eslint-config-airbnb-base but overrides some rules. Check for unexpected linting differences
fix
Review the overrides in the package's rules (available on GitHub)
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'eslint-config-airbnb-base'
Missing peer dependency eslint-config-airbnb-base (installed automatically by eslint-config-lisk-base)
fix
Install airbnb-base: npm install --save-dev eslint-config-airbnb-base
Error: ESLint configuration in .eslintrc.json is invalid: "lisk-base" is not a valid configuration key
Using 'extends' inside an object incorrectly; must be an array
fix
Use: {"extends": ["lisk-base"]}
Parsing error: The keyword 'const' is reserved
ESLint not configured for modern JavaScript or TypeScript
fix
Install @typescript-eslint/parser and @typescript-eslint/eslint-plugin as peer deps, and set parserOptions.ecmaVersion in your config
Upgrade
Version history
2.0.1latest on npm
Audit
Dependencies
eslintrequiredPeer dependency: ESLint is required to use this config
@typescript-eslint/parseroptionalPeer dependency: needed for TypeScript parsing
@typescript-eslint/eslint-pluginoptionalPeer dependency: needed for TypeScript rules
eslint-plugin-jestoptionalPeer dependency: jest-specific rules
eslint-plugin-importrequiredPeer dependency: import/export rules
Agent activity
4 hits · last 30 days
node
4
Resources
eslint-config-lisk-base — npm install eslint-config-lisk-base · libregistry