Skip to content

Latest commit

 

History

History
360 lines (232 loc) · 20.8 KB

File metadata and controls

360 lines (232 loc) · 20.8 KB

@cloudfour/eslint-plugin

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