Skip to content

Latest commit

 

History

History
176 lines (148 loc) · 9.42 KB

CHANGELOG.md

File metadata and controls

176 lines (148 loc) · 9.42 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Fixed

  • Enable function expressions again (#258)
    • We didn't realize this rule would disallow class methods, even class constructors. This was too disruptive.

Added

  • BREAKING: Enable id-denylist and id-length in base config (#200)
  • BREAKING: Add rules for hybrid Node.js and browser environments (#242)
    • The base config now only allows globals and modules that are available in both Node.js and browsers.
    • This adds a new @metamask/eslint-config-browser package, to be used in browser-only environments.
    • The @metamask/eslint-config-nodejs package has been updated to allow Node.js-only globals and modules.

Changed

  • BREAKING: Remove no-undef in favour of custom environments configuration (#254)
  • BREAKING: Bump all ESLint dependencies to the latest version (#252)
    • This includes peer dependencies.
  • BREAKING: Automatically sort imports (#248)
  • BREAKING: Disable more undesired syntax (#207)
    • This disables the with statement, function expressions, and the in operator.

Changed

Added

  • BREAKING: Add JSDoc ESLint rules (#203)

Changed

  • BREAKING: Require newlines between multiline blocks and expressions (#197)

Fixed

  • Restore default parserOptions (#193)
    • By extending the recommended eslint-plugin-import rules, we accidentally changed the default parserOptions.sourceType to module. The sourceType is now explicitly set to script.
    • In some cases, parserOptions.ecmaVersion could also be set to an incorrect version. The ecmaVersion is now explicitly set to 2017, matching the corresponding setting in env.

Changed

  • BREAKING: Update Prettier quoteProps rule to as-needed (#181)
  • BREAKING: Update ESLint no-shadow config (#168)
  • Use recommended eslint-plugin-import rule sets (#184)
    • This only removed or disabled rules, and is not breaking.
  • Update install instructions in readme (#185)
  • Normalize rule config values (#169)

6.0.0 - 2021-04-08

Changed

  • BREAKING: Set minimum Node.js version to ^12.0.0 (#144)
  • BREAKING: Set ECMAScript version to es2017/8 (#150)
  • BREAKING: Add the Prettier ESLint plugin and extend the recommended Prettier ESLint config (#96)
    • See here for the eslint-plugin-prettier rules and here for the rules of eslint-config-prettier, which the plugin extends.
    • The rules of this config should otherwise be unchanged.
  • Update eslint and other ESLint peer dependencies (#151)

Removed

5.0.0 - 2021-02-02

Changed

  • BREAKING: Enable semi in base config (#101)
  • BREAKING: Disallow spaces before parentheses of named functions (#101)
  • BREAKING: Upgrade to TypeScript v4 and corresponding @typescript-eslint dependencies (#79, #80, #103)

4.1.0 - 2020-10-21

Changed

  • Disable node/no-missing-import (#75)
  • Disable node/no-missing-require (#75)

4.0.0 - 2020-10-20

Changed

  • BREAKING: Update to ESLint v7 (#46, #58, #62, #63)
  • Relax member-delimiter-style for TypeScript (#68)
  • Disable space-before-function-paren for TypeScript (#65)

3.2.0 - 2020-08-20

Changed

  • Relax prefer-destructuring rules (#57)

3.1.0 - 2020-08-19

Changed

  • Disable prefer-object-spread (#54)

3.0.0 - 2020-08-11

Changed

  • Disallow all anonymous default exports (#52)
  • Set maximum empty lines to 1 (#51)

2.2.0 - 2020-07-14

Changed

  • Relax no-plusplus rule (#44)

2.1.1 - 2020-04-17

Changed

  • Disable require-await (#37)

2.1.0 - 2020-02-24

Changed

  • Disable @typescript-eslint/no-extra-parens (#29)

2.0.0 - 2020-02-20

Added

  • Add import rules to base config (#24)
  • Clarified TypeScript config & publishing docs

Changed

  • Explicitly specify all core rules (#17)
  • Update TypeScript config (#25)

Removed

  • Remove root flag from TS config (#20)

1.2.0 - 2020-02-18

Changed

  • Disable Jest lowercase-name for describe blocks (#14)

1.1.0 - 2020-02-11

Added

  • Add README file
  • Add Mocha config (#13)

1.0.0 - 2020-01-21

Added

  • Add base, TypeScript, and Jest configs (#3)