ESLint shareable config for @kevinoid's style (based on Airbnb).
MIT License
Bot releases are hidden (Show)
eslint-plugin-unicorn
rules:
eslint-plugin-unicorn@^32.0.0
eslint-plugin-jsdoc@^34.0.0
unicorn/prefer-node-protocol
until node:
is supported by eslint-plugin-node
.parserOptions.ecmaVersion: 2020
, since ecmaVersion: 2019
set by plugin:node/recommended
lacks support for import()
and import.meta.url
, while ecmaVersion: 2021
would not warn about ?.
and ??
on Node.js versions which don't support them.unicorn/prefer-module
and unicorn/prefer-node-protocol
rules.import/no-unused-modules
rule for ESM packages.node
env for node to avoid defining globals which are only available in CommonJS modules.parserOptions
for node are now set by plugin:node/recommended
based on package.json#type
.import/extensions
rule.eslint-plugin-node
to set parserOptions
based on package.json#type
.eslint-plugin-unicorn
from 28.0.0 to 29.0.0. See Release Notes.eslint-plugin-jsdoc
from 31.6.1 to 32.0.0. See Release Notes.prefer-destructuring
for Array assignment (488c10a)env
and parserOptions
from eslint-plugin-unicorn
, unless overridden.parserOptions
ecmaVersion: 2020
and sourceType: script
for node
.eslint-plugin-unicorn
from 27.0.0 to 28.0.0. See Release Notes.airbnb-base
(since this package already depends on the requisite version of ESLint):
default-case-last
.grouped-accessor-pairs
.no-constructor-return
.no-dupe-else-if
.no-import-assign
.no-loss-of-precision
.no-nonoctal-decimal-escape
.no-promise-executor-return
.no-setter-return
.no-unreachable-loop
.no-unsafe-optional-chaining
.no-useless-backreference
.prefer-regex-literals
.package.json
for depcheck.eslint-plugin-unicorn
from 26.0.0 to 27.0.0. See Release Notes.jsdoc/require-yields-check
which conflicts with a common parameter checking idiom.object
in no-restricted-globals
config to fix IE-specific overrides of Airbnb configuration. (04d9ef9)unicorn/no-array-for-each
for IE, which lacks support for for-of
.eslint-plugin-unicorn
from 25.0.1 to 26.0.0. See Release Notes.eslint-plugin-jsdoc
from 30.7.13 to 31.0.7. See Release Notes.eslint-plugin-unicorn
from 21.0.0 to 25.0.1. See Release Notes.for...of
loops (a6de803)unicorn/custom-error-definition
(bcbb98e)unicorn/prefer-ternary
(e6d6432)unicorn/prefer-string-trim-start-end
(cc70995)@template
(and other) tags along with module:
type syntax. (3a14edd)eslint-plugin-jsdoc
from 28.7.0 to 29.2.0 (2f2f8e5)eslint-plugin-jsdoc
now adds spaces between union items and removes JSDuck support (unions with "/" instead of "|").promise/no-return-in-finally
(07efe5c)unicorn/catch-error-name
configuration to use ignore
instead of caughtErrorsIgnorePattern
for 19.0.0 (as a result of sindresorhus/eslint-plugin-unicorn#661) (06bf7f6)unicorn/no-fn-reference-in-iterator
(898069d)arguments.callee
from no-restricted-properties
since it is already covered by no-caller
(8460214)capIsNew: true
for new-cap
rule (15740f2), see airbnb/javascript#2200.eslint-plugin-unicorn@^18.0.0
(745b8ed):
prefer-number-properties
and prefer-set-has
rules.