Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Releases: xpring-eng/eslint-config-base

v0.11.0

28 Jul 20:51
085d926
Compare
Choose a tag to compare

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

21 Jul 13:46
53a31a0
Compare
Choose a tag to compare
  • Change max-statements restriction from 10 to 15.
    • Turns out that you can write totally reasonable functions with more than 10 statements.
  • Allow .json file extension when importing a JSON file
    • Turns out TypeScript needs the .json file extension to do the import.
  • Upgrade peer dependencies
    • ESLint 7.5.0
      • Better optional chaining
    • @typescript-eslint
      • Support short-circuiting assignment operators
      • Support type annotations on catch clauses

v0.9.2

09 Jul 08:23
ecc708b
Compare
Choose a tag to compare
  • Allow was as a prefix for boolean variables

v0.9.1

08 Jul 13:20
b0e1c9e
Compare
Choose a tag to compare
  • Update typescript-eslint and eslint-plugin-jsdoc.
  • Add an new rule in the latest version of typescript-eslint for literal enum members.

v0.9.0

29 Jun 16:15
00781a7
Compare
Choose a tag to compare

Add chai-as-promised plugin to avoid bad tests.

v0.8.0

23 Jun 14:30
d3aeb49
Compare
Choose a tag to compare

Add eslint-plugin-array-func to provide rules for best practices with .map().filter().reduce() style operations.

v0.7.2

22 Jun 18:06
6132326
Compare
Choose a tag to compare
  • Upgrade eslint to 7.3.0, and add two new rules:
    • no-promise-executor-return
    • no-unreachable-loop
  • Upgrade @typescript-eslint to 3.4.0:
    • Add @typescript-eslint/no-loss-of-precision rule that allows 123_456 numerical separators.
  • Upgrade eslint-plugin-jsdoc to 28.0.0
  • Add Dependabot configuration to only bug me weekly

v0.7.1

18 Jun 17:41
ac62bda
Compare
Choose a tag to compare

Upgrade eslint-plugin-jsdoc, and require a new rule require-throws, which requires documenting all functions that throw an error.

v0.7.0

08 Jun 19:10
c187105
Compare
Choose a tag to compare

Upgrade @typescript-eslint to 3.2.0.

Adds new rules and options from @typescript-eslint-v3.2.0, as well as adding does as a valid prefix for boolean variables.

v0.6.3

08 Jun 16:48
2a04377
Compare
Choose a tag to compare

Disable some rules specifically for *.test.ts files:

  • Allow an "unscoped this" keyword, as Mocha lets you do this.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 the null | undefined case in test files when we know the result will be valid.