Skip to content

v2.0.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 06 Nov 20:12
· 73 commits to next since this release
fec5634

2.0.0 (2021-11-06)

Breaking

  • don't export getRecommendedConfig() (2482b5c)

Bug Fixes

  • rule-metadata: fixed issue with generation of manual url with codebase use of version (3b71e8c)

Documentation

  • rules-build: collapsed all /docs/rules/rulename.md into tarball to be included with dist (0ba2835)

Features

  • ts-types: exported the new types declarations for the new production bundle (ae9997e)

Performance Improvements

  • webpack-build: configured webpack to bundle core code into minified production build (212f3bf)

BREAKING CHANGES

  • rules-build: Docs are no longer directly provided as files upon install, rather packed into a docs.tar.gz archive. In order to save space and download time, we expect most users to use the online documentation for descriptions of rules so they are compressed rather than readily available for those whom rather access docs offline.

  • webpack-build: Distribution code is now bundled into a single encapsulated module. No exposed libraries available as they were before (ex.createRule()). Package only exports the eslint required members.

Migration Notes

  1. Rules have changed names, the following table maps the translation:

    Deprecated Rule Name (v1) New Rule Name (v2)
    expectExpect => missing-expect
    noDebug => no-debug
    noIdenticalTitle => no-duplicate-titles
    noOnly => no-focused-tests
    noSkip => no-disabled-tests
  2. Docs can be found bundled in the dist/docs.tar.gz or on GitHub.

  3. Please open a ticket if you find deeper issues with the upgrade.