Skip to content

Releases: MetaMask/eslint-config

9.0.1

22 Sep 22:12
a7e0665
Compare
Choose a tag to compare

@metamask/eslint-config-typescript

Changed

  • Disable @typescript-eslint/no-throw-literal (#210)
    • The introduction of this rule was one of the two breaking changes in the previous release. It was included unintentionally, and has now been removed to make updating to v9 easier.

9.0.0

22 Sep 12:20
efcdccc
Compare
Choose a tag to compare

@metamask/eslint-config

Added

  • BREAKING Add JSDoc ESLint rules (#203)

@metamask/eslint-config-jest

Added

  • BREAKING Add JSDoc ESLint rules (#203)

@metamask/eslint-config-mocha

Added

  • BREAKING Add JSDoc ESLint rules (#203)

@metamask/eslint-config-nodejs

Added

  • BREAKING Add JSDoc ESLint rules (#203)

@metamask/eslint-config-typescript

Added

  • BREAKING Add JSDoc ESLint rules (#203)

8.0.0

06 Aug 17:28
daaae96
Compare
Choose a tag to compare

@metamask/eslint-config

Changed

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

@metamask/eslint-config-jest

@metamask/eslint-config-mocha

@metamask/eslint-config-nodejs

@metamask/eslint-config-typescript

7.0.1

29 Jun 21:25
6feaedd
Compare
Choose a tag to compare

@metamask/eslint-config

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.

@metamask/eslint-config-nodejs

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.

@metamask/eslint-config-typescript

Fixed

  • Restore default parserOptions.ecmaVersion (#193)
    • In some cases, parserOptions.ecmaVersion could be set to an incorrect version.
      The ecmaVersion is now explicitly set to 2020, matching the corresponding setting in env.

7.0.0

28 Jun 21:50
8d24d45
Compare
Choose a tag to compare

@metamask/eslint-config

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)

@metamask/eslint-config-jest

Changed

  • Update install instructions in readme (#185)

Fixed

  • Add @metamask/eslint-config as a peer dependency (#186)
    • This package is designed to be used in conjunction with the MetaMask base ESLint config, so this should always have been a peer dependency.

@metamask/eslint-config-mocha

Changed

  • Update install instructions in readme (#185)

Fixed

  • Add @metamask/eslint-config as a peer dependency (#186)
    • This package is designed to be used in conjunction with the MetaMask base ESLint config, so this should always have been a peer dependency.

@metamask/eslint-config-nodejs

Changed

  • Update install instructions in readme (#185)

Fixed

  • Add @metamask/eslint-config as a peer dependency (#186)
    • This package is designed to be used in conjunction with the MetaMask base ESLint config, so this should always have been a peer dependency.

@metamask/eslint-config-typescript

Changed

  • (BREAKING) Update @typescript/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)

Fixed

  • Add @metamask/eslint-config as a peer dependency (#186)
    • This package is designed to be used in conjunction with the MetaMask base ESLint config, so this should always have been a peer dependency.

6.0.0

08 Apr 20:49
e6c86f3
Compare
Choose a tag to compare

(BREAKING) All configs are now published as separate packages, and must be extended by referencing their package names:

See individual package changelogs for their specific changes:

5.0.0

03 Feb 20:32
d7f6233
Compare
Choose a tag to compare

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)