Skip to content

Commit 83e84c4

Browse files
committed
Disable react/display-name rule with nested .eslintrc file
1 parent 3cb9dc6 commit 83e84c4

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

test/hooks/.eslintrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"rules": {
3+
"react/display-name": 0
4+
}
5+
}

test/hooks/useActions.spec.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/*eslint-disable react/display-name*/
2-
31
import React from 'react'
42
import { createStore } from 'redux'
53
import { renderHook } from 'react-hooks-testing-library'

test/hooks/useDispatch.spec.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/*eslint-disable react/display-name*/
2-
31
import React from 'react'
42
import { createStore } from 'redux'
53
import { renderHook } from 'react-hooks-testing-library'

test/hooks/useRedux.spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/*eslint-disable react/display-name*/
21
/*eslint-disable react/prop-types*/
32

43
import React from 'react'

test/hooks/useSelector.spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/*eslint-disable react/display-name*/
21
/*eslint-disable react/prop-types*/
32

43
import React, { useReducer } from 'react'

0 commit comments

Comments
 (0)