Skip to content

Commit 529708a

Browse files
committed
Add missing airbnb/hooks extend for the React rules of hooks
1 parent cceca51 commit 529708a

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66

77
## Unreleased
88

9+
## [0.3.1](https://github.com/torchbox/eslint-config-torchbox/compare/v0.3.0...v0.3.1) (2019-10-09)
10+
11+
### Bug fixes
12+
13+
- 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)).
14+
915
## [0.3.0](https://github.com/torchbox/eslint-config-torchbox/compare/v0.2.0...v0.3.0) (2019-10-08)
1016

1117
### Features

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ module.exports = {
8080

8181
### Inherited rules
8282

83+
- [react-hooks/rules-of-hooks](https://github.com/jfmengels/eslint-rule-documentation/blob/master/contributing.md)
84+
- [react-hooks/exhaustive-deps](https://github.com/jfmengels/eslint-rule-documentation/blob/master/contributing.md)
8385
- [jsx-a11y/anchor-has-content](https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-has-content.md): `error, components:`
8486
- [jsx-a11y/aria-role](https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-role.md): `error, ignoreNonDom: false, ignoreNonDOM: false`
8587
- [jsx-a11y/aria-props](https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-props.md)

config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
module.exports = {
4-
extends: ['airbnb', 'prettier', 'prettier/react'],
4+
extends: ['airbnb', 'airbnb/hooks', 'prettier', 'prettier/react'],
55
env: {
66
browser: true,
77
commonjs: true,

src/__snapshots__/semver.test.js.snap

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Object {
2525
"import",
2626
"react",
2727
"jsx-a11y",
28+
"react-hooks",
2829
],
2930
"reportUnusedDisableDirectives": undefined,
3031
"rules": Object {
@@ -1803,6 +1804,12 @@ Object {
18031804
"radix": Array [
18041805
"error",
18051806
],
1807+
"react-hooks/exhaustive-deps": Array [
1808+
"error",
1809+
],
1810+
"react-hooks/rules-of-hooks": Array [
1811+
"error",
1812+
],
18061813
"react/boolean-prop-naming": Array [
18071814
"off",
18081815
Object {

0 commit comments

Comments
 (0)