This repository has been archived by the owner on Jan 19, 2024. It is now read-only.
Releases: xpring-eng/eslint-config-base
Releases · xpring-eng/eslint-config-base
v0.11.0
Moved eslint-plugin-mocha
and the chai-as-promised
plugin into an independent configuration.
This is necessary so that consumers of this config are not locked in to Mocha, and have the flexibility to choose Jest (or any other testing library) as they see fit.
v0.10.0
- Change
max-statements
restriction from10
to15
.- Turns out that you can write totally reasonable functions with more than 10 statements.
- Allow
.json
file extension whenimport
ing a JSON file- Turns out TypeScript needs the
.json
file extension to do the import.
- Turns out TypeScript needs the
- Upgrade peer dependencies
- ESLint 7.5.0
- Better optional chaining
@typescript-eslint
- Support short-circuiting assignment operators
- Support type annotations on catch clauses
- ESLint 7.5.0
v0.9.2
v0.9.1
v0.9.0
v0.8.0
v0.7.2
- Upgrade
eslint
to7.3.0
, and add two new rules:no-promise-executor-return
no-unreachable-loop
- Upgrade
@typescript-eslint
to3.4.0
:- Add
@typescript-eslint/no-loss-of-precision
rule that allows123_456
numerical separators.
- Add
- Upgrade
eslint-plugin-jsdoc
to28.0.0
- Add Dependabot configuration to only bug me weekly
v0.7.1
v0.7.0
v0.6.3
Disable some rules specifically for *.test.ts
files:
- Allow an "unscoped
this
" keyword, as Mocha lets you dothis.timeout(num)
to set a test-specific timeout. - Allow using the
var!
syntax to make non-null assertions in test files, so we don't have to deal with thenull | undefined
case in test files when we know the result will be valid.