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:
Xiaofeng Wang 2020-11-06 09:33:06 +08:00 committed by Sanne Raymaekers
parent afdfb6f387
commit d4cb1c4d6b
2 changed files with 11 additions and 1 deletions

View file

@ -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"
]
}