test: Add two more eslint plugin to follow best practices and
anticipate common mistakes eslint-plugin-testing-library: for writing tests with Testing Library eslint-plugin-jest-dom: for writing tests with jest-dom
This commit is contained in:
parent
afdfb6f387
commit
d4cb1c4d6b
2 changed files with 11 additions and 1 deletions
|
|
@ -3,8 +3,16 @@
|
|||
"jest": true,
|
||||
"es6": true
|
||||
},
|
||||
"plugins": [
|
||||
"testing-library",
|
||||
"jest-dom"
|
||||
],
|
||||
"rules": {
|
||||
"react/display-name": "off",
|
||||
"react/prop-types": "off"
|
||||
}
|
||||
},
|
||||
"extends": [
|
||||
"plugin:testing-library/react",
|
||||
"plugin:jest-dom/recommended"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue