eslint-plugin-lazy-init
v6.0.0
Published
Eslint plugin for use with lazy-init.
Downloads
4
Maintainers
Readme
eslint-plugin-lazy-init
Eslint plugin for use with lazy-init
.
This plugin is only necessary if you want to use the lz.async
method while
using @typescript-eslint with a configuration
that extends rules which require type checking.
Installation
Installing plugin for @typescript-eslint
version ^6
or greater:
# using npm
npm install --save-dev eslint-plugin-lazy-init
# using pnpm
pnpm add -D eslint-plugin-lazy-init
Installing plugin for @typescript-eslint
version ^5
:
# using npm
npm install --save-dev eslint-plugin-lazy-init@^5.0.0
# using pnpm
pnpm add -D eslint-plugin-lazy-init@^5.0.0
Setup
// .eslintrc.js
module.exports = {
extends: {
'plugin:@typescript-eslint/recommended-requiring-type-checking',
// must come after
'plugin:lazy-init/recommended'
}
}
License
See license.