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.
v0.4.0 - 2021-12-23)
- Update to ESLint v8 and eslint-config-airbnb v19.0.2, changing rules that are applied with this config.
There are a number of existing rules that are now enforced:
- default-case-last
- default-param-last
- grouped-accessor-pairs
- no-constructor-return
- no-dupe-else-if
- no-import-assign
- no-loss-of-precision
- no-promise-executor-return
- no-restricted-exports (restricted: default, then)
- no-setter-return
- no-unreachable-loop
- no-useless-backreference
- prefer-exponentiation-operator (
**
overMath.pow
) - prefer-regex-literals
- react/jsx-no-script-url
- react/jsx-no-useless-fragment
And brand new rules introduced with this release:
- no-nonoctal-decimal-escape
- no-unsafe-optional-chaining
- import/no-import-module-exports
- import/no-relative-packages
- react/no-arrow-function-lifecycle
- react/no-invalid-html-attribute
- react/no-namespace
- react/no-unstable-nested-components
- react/no-unused-class-component-methods
- react/jsx-no-constructed-context-values
This release updates most of the dependencies of the config:
package | from | to |
---|---|---|
eslint | ^7.2.0 | ^8.2.0 |
eslint-config-airbnb | ^18.2.1 | ^19.0.2 |
eslint-config-prettier | ^8.3.0 | |
eslint-plugin-react | ^7.24.0 | ^7.27.1 |
eslint-plugin-react-hooks | ^4.2.0 | ^4.3.0 |
eslint-plugin-jsx-a11y | ^6.4.1 | ^6.5.1 |
eslint-plugin-import | ^2.23.4 | ^2.25.3 |
Users of npm v7 can npm install --save-dev @wagtail/eslint-config-wagtail@latest
and this will automatically install all required peer dependencies.
For older versions of npm, use npx install-peerdeps --dev @wagtail/eslint-config-wagtail@latest
so all other peerDependencies are updated as well.
v0.3.0 - 2021-05-13)
- Disabled
no-warning-comments
- Disabled
react/prop-types
- Renamed
master
branch tomain
v0.2.0 - 2020-06-05
- Rename to
@wagtail/eslint-config-wagtail
to match Wagtail’s stylelint config - Upgrade to ESLint v6
- Update to use
eslint:recommended
as a baseline. - Update to latest
eslint-config-airbnb
and its dependencies. - Update package metadata
- Add MIT license
- Add more npm keywords
- Whitelist files to be published to npm
v0.1.1 - 2016-09-26
- Fix JSX prop indentation level
v0.1.0 - 2016-06-16
- Initial release