Skip to content

Latest commit

 

History

History
687 lines (440 loc) · 44.6 KB

CHANGELOG.md

File metadata and controls

687 lines (440 loc) · 44.6 KB

@cloudfour/eslint-plugin

24.0.0

Breaking Changes

  • Changed from a "super plugin" to a flat config file
  • Changed package name from @cloudfour/eslint-plugin to @cloudfour/eslint-config

Major Changes

  • Update eslint-plugin-jsdoc from v46 to v50
  • Update eslint-plugin-n from v16 to v17
  • Update eslint-plugin-promise from v6 to v7
  • Update eslint-plugin-unicorn from v48 to v56
  • Update typescript-eslint from v6 to v8

23.0.0

Major Changes

Minor Changes

  • #551 f11e794 Thanks @calebeby! - Re-export disable-type-checked config from @typescript-eslint/eslint-plugin

22.0.0

Major Changes

21.1.0

Minor Changes

  • #396 eaa4ea8 Thanks @Paul-Hebert! - Revert changes to no-use-before-define rule since it was more heavy-handed than expected.

21.0.0

Major Changes

  • #392 a7d5860 Thanks @Paul-Hebert! - Disallow the use of variables before they are defined. This rule was previously enabled for let and const declarations, and now it is also enabled for functions, classes, and vars.

20.0.2

Patch Changes

20.0.1

Patch Changes

  • 46db2ec Thanks @calebeby! - Pin eslint-plugin-n to 15.2.1

    15.2.2 has a regression and inserts the wrong file extensions.

20.0.0

Major Changes

  • #378 4545d67 Thanks @calebeby! - Enforce using the node: protocol for imports to node built-in modules (prefer-node-protocol).

    require('fs') → ✅ require('node:fs')import * as fs from 'fs' → ✅ import * as fs from 'node:fs'

    The import form is supported in node v14.13.1+. The require form is supported in node v14.18.0+.

    It is auto-fixable.

  • #381 bee6a36 Thanks @calebeby! - Sort imports

    Newly Enabled Rules

    These rules sort imports into separate categories, with empty lines between the categories, and with the imports within a category sorted alphabetically. The variable bindings within an import statement are also sorted alphabetically.

    These rules are auto-fixable, however in some cases manual sorting may be needed. Occasionally, the auto-fix will detach comments from the import statements they refer to.

19.0.0

Major Changes

  • #366 d156896 Thanks @renovate! - Update dependency eslint-plugin-jsdoc to v39

    No new rules, but there are some parsing and rule enforcement changes.

    Node 12 is no longer supported

    Node 18 is supported

18.0.1

Patch Changes

18.0.0

Major Changes

Minor Changes

17.1.0

Minor Changes

17.0.1

Patch Changes

17.0.0

Major Changes

Minor Changes

16.0.0

Major Changes

  • #206 4e2b9fb Thanks @spaceninja! - Update dependency eslint-config-prettier to v7

    • Changed: At least ESLint 7.0.0 is now required.
  • #187 a1f68c2 Thanks @spaceninja! - Upgraded to v15 of eslint-config-standard, which adds several rules:

    • Require indentation for values of ternary expressions (indent)
    • Enforce newlines between operands of ternary expressions if the expression spans multiple lines (multiline-ternary)
    • Disallow loops with a body that allows only one iteration (no-unreachable-loop)
    • Disallow useless backreferences in regular expressions (no-useless-backreference)
    • Enforce default clauses in switch statements to be last (default-case-last)
    • Disallow Number Literals That Lose Precision (no-loss-of-precision)
  • #191 7f732b6 Thanks @renovate! - Update eslint-config-standard to 16.0.1

    • Remove eslint-plugin-standard since all of the rules from it now live in other plugins
    • camelcase rule now allows variables starting with UNSAFE_ (from react) and known globals
    • no-unused-vars now ignores unused caught errors (unicorn/prefer-optional-catch-binding handles this use case)
    • prefer-regex-literals: Enabled disallowRedundantWrapping option
    • array-callback-return: Change allowImplicit to false.
    • use-isnan: Change enforceForIndexOf to true.

15.0.1

Patch Changes

  • e14e2ba #193 Thanks @calebeby! - Fix published files so @cloudfour/prefer-early-return is included

15.0.0

Major Changes

  • 2d8f332 #171 Thanks @calebeby! - Add @cloudfour/prefer-early-return rule (enabled by default)

    This rule suggests to change code like this:

    function a() {
    	if (_) {
    		a();
    		b();
    		c();
    	}
    }

    into:

    function a() {
    	if (!_) return;
    	a();
    	b();
    	c();
    }

Minor Changes

14.0.0

Major Changes

Minor Changes

  • 1c5f202 #160 Thanks @calebeby! - Disable node/no-missing-* rules for TS, so that it doesn't error for importing *.ts files

13.0.0

Major Changes

  • 5943663 #137 Thanks @calebeby! - Remove rule: @cloudfour/no-param-reassign

    This change is breaking if you have // eslint-disable-next-line @cloudfour/no-param-reassign in your code, or if you are manually enabling/configuring this rule. In either case, the migration path is to remove the rule configuration

  • 3112bb7 #136 Thanks @calebeby! - Add support for linting TypeScript files

    If you have .ts or .tsx files, ESLint should automatically start linting them once you update.

    If typescript-eslint is unable to automatically infer your tsconfig.json location, you may need to manually configure that

12.0.0 - 2020-07-20

Major/Breaking Changes

  • Update dependency eslint-plugin-unicorn to v21

Minor Changes

  • Update dependency eslint to v7.5.0
  • Update dependency eslint-config-xo to v0.32.1
  • Update dependency eslint-formatter-pretty to v4
  • Update dependency eslint-plugin-jsdoc to v30
  • Update dependency kleur to v4.0.2
  • Update jest monorepo to v26.1.0

11.0.0 - 2020-05-11

Major/Breaking Changes

  • Updated eslint-plugin-jsdoc to v25

Minor Changes

  • Updated jest to v26.0.1
  • Updated eslint to v7

10.0.0 - 2020-04-27

Major/Breaking Changes

  • Updated eslint-plugin-unicorn to v19
  • Add eslint-plugin-jsdoc v24 to lint JSDoc comments (#97)

Minor Changes

  • Updated jest to v25.4.0
  • Updated prettier to v2.0.5
  • Updated eslint-config-prettier to v6.11.0
  • Add fixtures to make testing new releases more reliable (#91)
  • Disabled a few unicorn v19 rules (#104)

9.0.0 - 2020-03-30

Major/Breaking Changes

  • Updated eslint-plugin-unicorn to v18

Minor Changes

  • Updated jest to v25.2.4

8.0.0 - 2020-03-24

Edit: @calebeby pointed out that this didn't need to be a major release because prettier is a devDependency, so it won't affect our users. Sorry for the false alarm!

Major/Breaking Changes

  • Updated prettier to v2

Minor Changes

  • Updated eslint-config-prettier to v6.10.1
  • Updated eslint-config-standard to v14.1.1

7.0.0 - 2020-03-09

Major/Breaking Changes

  • Updated eslint-plugin-unicorn to v17

Minor Changes

  • Updated eslint-config-xo to v0.29.1

6.0.0 - 2020-02-07

Major/Breaking Changes

  • Updated jest to v25
  • Updated eslint-plugin-node to v11
  • Updated eslint-plugin-unicorn to v16

Minor Changes

  • Updated eslint to v6.8.0
  • Updated eslint-config-prettier to v6.10.0

5.0.0 - 2019-12-03

Major/Breaking Changes

  • Updated eslint-plugin-unicorn to v14

Minor Changes

  • Updated eslint to v6.7.2

4.0.0 - 2019-11-19

Major/Breaking Changes

  • Updated eslint to v6.6.0
  • Updated eslint-plugin-unicorn to v13
  • Updated eslint-config-prettier to v6
  • Updated eslint-config-standard to v14
  • Updated eslint-plugin-node to v10

Minor Changes

  • Updated eslint-config-xo to v0.27.2
  • Updated prettier to v1.19.1

3.0.0 - 2019-06-17

Major/Breaking Changes

  • Updated eslint-plugin-node to v9
  • Updated eslint-config-prettier to v5
  • Updated eslint-plugin-unicorn to v9
  • Enabled no-unused-expressions for ternaries and short-circuit (#18)

Minor Changes

  • Added itself as a devDep (#17)
  • Updated prettier to v1.18

2.0.1 - 2018-12-06

  • Update package.json files to include src/rules/**/*.js (#15)

2.0.0 - 2018-12-06

Changed

  • Added build process to snapshot config and reduce peerDependencies (#9)
  • Changed package name from @cloudfour/eslint-config to @cloudfour/eslint-plugin Instead of referencing this in your ESLint config as @cloudfour/eslint-config, use plugin:@cloudfour/recommended
  • Updated dependencies
  • Enable more rules from C4 JS guide (#11)
  • Enable eslint-plugin-node recommended rules (#11)
  • Enable eslint-plugin-unicorn recommended rules (#12)

1.0.0 - 2018-07-05

  • Initial release