
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
eslint-config-le0nik
Advanced tools
This package provides opinionated sensible shareable Eslint configs.
NOTE: This package is in active development. Each change in minor version probably breaks API. Post 1.0 will indicate stability and will adhere to Semantic Versioning.
This package exports the following ESLint configurations for your usage.
Our default export contains all of our ESLint rules for ES6+.
It does not include rules for node
, react
, lodash
or jsdoc
.
You need to add those from
respectively, if you need.
It requires:
eslint
babel-eslint
eslint-plugin-babel
eslint-plugin-import
You can extend/override the rules for this config. You can find the list of rules:
Installation:
npm install --save-dev eslint-config-le0nik eslint-plugin-import eslint-plugin-babel babel-eslint eslint
"extends": ["le0nik"]
to your .eslintrc.*
config.Lints ES5 and below.
It does not include rules for node
, react
, lodash
or jsdoc
.
You need to add those from
respectively, if you need.
It requires:
eslint
eslint-plugin-import
You can extend/override the rules for this config. You can find the list of rules:
Installation:
npm install --save-dev eslint-config-le0nik eslint-plugin-import eslint
"extends": ["le0nik/legacy"]
to your .eslintrc.*
config.Lints Node.js code.
It includes Node.js
rules only.
It requires:
eslint
You can extend/override the rules for this config. You can find the list of rules here.
Installation:
npm install --save-dev eslint-config-le0nik eslint
"extends": ["le0nik/node"]
to your .eslintrc.*
config.Lints React.js/JSX code.
It includes React
/JSX
rules only.
It requires:
eslint
eslint-plugin-react
You can extend/override the rules for this config. You can find the list of rules here.
Installation:
npm install --save-dev eslint-config-le0nik eslint-plugin-react eslint
"extends": ["le0nik/react"]
to your .eslintrc.*
config.Lints lodash
v4 code.
It includes lodash
rules only.
It requires:
eslint
eslint-plugin-lodash
It only supports the default import of lodash, e.g.
var _ = require('lodash')
or import _ from 'lodash'
It does not support the usage of:
lodash/fp
var map = require('lodash/map')
orvar map = require('lodash').map
_
as your lodash
identifier (can be changed, read below)In your .eslintrc.*
config you can change the lodash
identifier, that this config
is going to look for, like this:
{
"extends": ["le0nik/lodash"],
"settings": {
"lodash": {
"pragma": "_" // default
}
}
}
You can extend/override the rules for this config. You can find the list of rules here.
Installation:
npm install --save-dev eslint-config-le0nik eslint-plugin-lodash eslint
"extends": ["le0nik/lodash"]
to your .eslintrc.*
config.Enables requirement for valid JSDoc
comments.
It includes JSDoc
rules only.
It requires:
eslint
You can extend/override the rules for this config. You can find the list of rules here.
Installation:
npm install --save-dev eslint-config-le0nik eslint
"extends": ["le0nik/jsdoc"]
to your .eslintrc.*
config.{
"extends": ["le0nik", "le0nik/node" "le0nik/react"]
}
{
"extends": ["le0nik", "le0nik/jsdoc", le0nik/lodash"]
}
{
"extends": ["le0nik/legacy", "le0nik/node" "le0nik/react]
}
Overrides quotes: [2, "single"]
{
"extends": ["le0nik"],
"rules": {
"quotes": [2, "double"],
}
}
eslint-plugin-import
rule, if you use default
or legacy
config.It has import/no-unresolved
rule enabled and by default uses Node.js
resolver.
If you are going to use webpack with loaders specified in require/import, then you might want to install eslint-import-resolver-webpack.
If you use another module bundler, that lets you use custom
paths in require/import, then you might
want to read this.
Or you can disable this rule entirely, although I find it very useful.
{
"extends": [
"le0nik" // or "le0nik/legacy"
],
"rules": {
"import/no-unresolved": 0
}
}
FAQs
Eslint config with sensible defaults
The npm package eslint-config-le0nik receives a total of 1 weekly downloads. As such, eslint-config-le0nik popularity was classified as not popular.
We found that eslint-config-le0nik demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.