Skip to content

Commit

Permalink
Disable react/display-name rule with nested .eslintrc file
Browse files Browse the repository at this point in the history
  • Loading branch information
mpeyper committed Apr 25, 2019
1 parent 3cb9dc6 commit 83e84c4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
5 changes: 5 additions & 0 deletions test/hooks/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"rules": {
"react/display-name": 0
}
}
2 changes: 0 additions & 2 deletions test/hooks/useActions.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/*eslint-disable react/display-name*/

import React from 'react'
import { createStore } from 'redux'
import { renderHook } from 'react-hooks-testing-library'
Expand Down
2 changes: 0 additions & 2 deletions test/hooks/useDispatch.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/*eslint-disable react/display-name*/

import React from 'react'
import { createStore } from 'redux'
import { renderHook } from 'react-hooks-testing-library'
Expand Down
1 change: 0 additions & 1 deletion test/hooks/useRedux.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*eslint-disable react/display-name*/
/*eslint-disable react/prop-types*/

import React from 'react'
Expand Down
1 change: 0 additions & 1 deletion test/hooks/useSelector.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*eslint-disable react/display-name*/
/*eslint-disable react/prop-types*/

import React, { useReducer } from 'react'
Expand Down

0 comments on commit 83e84c4

Please sign in to comment.