@ljharb/eslint-config
My shareable eslint
config.
Usage
See http://eslint.org/docs/developer-guide/shareable-configs
Tests
Simply clone the repo, npm install
, and run npm test
My shareable eslint config
My shareable eslint
config.
See http://eslint.org/docs/developer-guide/shareable-configs
Simply clone the repo, npm install
, and run npm test
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
npmignore
to autogenerate an npmignore file 8750f38
node/18
and node/20
entrypoints 9e563e5
tape
56f8a69
eslint-scope
, since v7.1.1+ breaks ES3 strict mode parsing 3f418db
0b5505c
eslint
to < v8.9
, since it breaks ES3 strict mode parsing a6efbad
eslint
3bdaab5
auto-changelog
, tape
72c6591
eclint
check 81616c3
node/0.4
config e51f8b5
eslint
d0d2e19
aud
, eslint-find-rules
7829d6a
eslint
0014084
node/4
: set ecmaVersion
to 2015 9ee53d8
tape
44371fb
0396dc4
ignorePatterns
b8f3a45
eslint
6d84b1a
eslint
, add allowReserved: true
ea09dc0
no-buffer-constructor
b475f75
node/4
, node/6
, node/8
, node/10
, node/12
, node/14
, node/16
configs 434696a
77555f4
operator-linebreak
: upstream "before" overrides from tons of my packages c2407eb
eslint
a82cfa5
no-invalid-regexp
: allow u
and y
as constructor flags 41119d0
tape
643f300
0de82b6
auto-changelog
10da95e
eslint
8 e5518a8
533ce96
node/latest
: quote fewer properties 622c2d1
safe-publish-latest
666329a
no-div-regex
, no-else-return
node/latest
: inherit from base, enable lots of "prefer" ruleseslint
, tape
node/latest
: add es2021eslint
prepublishOnly
script for npm 7+node/install
instead of node/run
; use codecov
actionaud
, tape
eslint
to v7.19.0node/latest
: set up proper globalsnode/latest
configeslint
to v7.18.0, enable no-unsafe-optional-chaining
tape
v7.14.0
, enable no-nonoctal-decimal-escape
aud
, eslint-find-rules
eslint
v7.7.0
tape
node
v10.22
esm
and tests
entrypoints, for easier compositionaud
on prod depsaud
eslint
v7eslint-find-rules
, in-publish
, tape
arrow-parens
: switch to always requiring arg parens, for consistencybin
overrides to allow node stuff.mjs
fileseslint
tape
eslint
and add new rulesmax-params
for testsprefer-regex-literals
in testssafe-publish-latest
eslint
to v6.6
funding
fieldeslint
to v6.3replace
, safe-publish-latest
node
v12.9
, v11.15
, v10.16
, v8.16
; drop nodes below 8, per eslintmax-nested-callbacks
in testssymbol-description
in testsprefer-named-capture-group
ruletape
, semver
, replace
, eslint
eclint
over editorconfig-tools
(#28)npx aud
instead of nsp
or npm audit
with hoopsfunc-names
; too noisyeslint
eslint
, replace
, safe-publish-latest
, semver
npm audit
instead of nsp
node
v11.6
, v10.15
, v8.15
, v6.16
eslint
nsp
, semver
eslint
; tighten no-underscore-dangle
eslint
; enable getter-return
dot-notation
: allowKeywords
should be false
(#21)eslint
to v4eslint
, nsp
; enable no-compare-neg-zero
, nonblock-body-statement-position
, loosen max-len
eslint-find-rules
node
v8.1
, v7.10
, v6.11
, v4.8
; improve test matrixtemplate-tag-spacing
, update eslint
eslint
; enable no-await-in-loop
, no-multi-assign
, prefer-promise-reject-errors
func-name-matching
should be set to “never”eslint
to v3.11
eslint-find-rules
, nsp
, safe-publish-latest
safe-publish-latest
does not need to be a runtime depnode
v7.2
,v6.9
, v4.6
; improve test matrixnpm run find-unused
eslint
to v3.4
eslint
to v3.3
eslint-find-rules
, safe-publish-latest
, nsp
, semver
node
v6.3
, v5.12
eslint
to v3rest-spread-spacing
object-curly-spacing
ruleno-mixed-operators
rulemax-lines
ruleeslint-find-rules
on prepublish
safe-publish-latest
prepublish checkeslint
, eslint-find-rules
, nsp
, semver
no-prototype-builtins
, no-useless-rename
, unicode-bom
eslint
eslint
to v2.10eslint-find-rules
, nsp
node
v6.1
eslint
, eslint-find-rules
, nsp
no-extra-parens
ruledot-location
, indent
, no-empty-function
, + disabled no-var
, require-jsdoc
ruleseslint
, nsp
, add eslint
to peer depsnode
v5.10
, v4.4
max-statements-per-line
no-duplicate-imports
no-useless-escape
eslint
spaced-comment
for docblockseslint
to v2eslint
, semver
, nsp
node
v5.3
nsp
, eslint
no-case-declarations
, enable radix
rulensp
, eslint
no-arrow-condition
, arrow-body-style
"as-needed", "maxEOF" option to no-multiple-empty-lines
, enable no-plusplus
with "allowForLoopAfterthoughts" option, add defaults to no-shadow
no-magic-numbers
only a warningv1.7.1
v1.6.0
eslint
v1.4.1
semver
v1.3.0
v1.1.0
and v1.2.0
releaseio.js
v3.0
v1.0.0
releaseeslint
on npm test
v1.0.0-rc-2
.eslintrc
is exported.