This repository was 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-statementsrestriction from10to15.- Turns out that you can write totally reasonable functions with more than 10 statements.
- Allow
.jsonfile extension whenimporting a JSON file- Turns out TypeScript needs the
.jsonfile 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
eslintto7.3.0, and add two new rules:no-promise-executor-returnno-unreachable-loop
- Upgrade
@typescript-eslintto3.4.0:- Add
@typescript-eslint/no-loss-of-precisionrule that allows123_456numerical separators.
- Add
- Upgrade
eslint-plugin-jsdocto28.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 | undefinedcase in test files when we know the result will be valid.