Skip to content

Commit

Permalink
Add missing airbnb/hooks extend for the React rules of hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaudcolas committed Oct 9, 2019
1 parent cceca51 commit 529708a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

## Unreleased

## [0.3.1](https://github.com/torchbox/eslint-config-torchbox/compare/v0.3.0...v0.3.1) (2019-10-09)

### Bug fixes

- Add missing `airbnb/hooks` extend for the React [Rules of hooks](https://reactjs.org/docs/hooks-rules.html) ([#3](https://github.com/torchbox/eslint-config-torchbox/issues/3), [#10](https://github.com/torchbox/eslint-config-torchbox/pull/10)).

## [0.3.0](https://github.com/torchbox/eslint-config-torchbox/compare/v0.2.0...v0.3.0) (2019-10-08)

### Features
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ module.exports = {

### Inherited rules

- [react-hooks/rules-of-hooks](https://github.com/jfmengels/eslint-rule-documentation/blob/master/contributing.md)
- [react-hooks/exhaustive-deps](https://github.com/jfmengels/eslint-rule-documentation/blob/master/contributing.md)
- [jsx-a11y/anchor-has-content](https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-has-content.md): `error, components:`
- [jsx-a11y/aria-role](https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-role.md): `error, ignoreNonDom: false, ignoreNonDOM: false`
- [jsx-a11y/aria-props](https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-props.md)
Expand Down
2 changes: 1 addition & 1 deletion config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

module.exports = {
extends: ['airbnb', 'prettier', 'prettier/react'],
extends: ['airbnb', 'airbnb/hooks', 'prettier', 'prettier/react'],
env: {
browser: true,
commonjs: true,
Expand Down
7 changes: 7 additions & 0 deletions src/__snapshots__/semver.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Object {
"import",
"react",
"jsx-a11y",
"react-hooks",
],
"reportUnusedDisableDirectives": undefined,
"rules": Object {
Expand Down Expand Up @@ -1803,6 +1804,12 @@ Object {
"radix": Array [
"error",
],
"react-hooks/exhaustive-deps": Array [
"error",
],
"react-hooks/rules-of-hooks": Array [
"error",
],
"react/boolean-prop-naming": Array [
"off",
Object {
Expand Down

0 comments on commit 529708a

Please sign in to comment.