Skip to content

Commit

Permalink
Deprecate enzyme; suggest testing-library instead (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
weeman1337 authored Aug 2, 2022
1 parent 8a36c7e commit bb46e6b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ following depending on the configs you enable:
* @typescript-eslint/parser
* eslint
* eslint-config-google
* eslint-plugin-deprecate
* eslint-plugin-jsx-a11y
* eslint-plugin-react
* eslint-plugin-react-hooks
Expand Down
6 changes: 6 additions & 0 deletions react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module.exports = {
plugins: [
"deprecate",
"matrix-org",
"react",
"react-hooks",
Expand Down Expand Up @@ -52,5 +53,10 @@ module.exports = {
"react-hooks/rules-of-hooks": ["error"],
"react-hooks/exhaustive-deps": ["error"],
"react/no-unknown-property": ["error"],

"deprecate/import": ["warn", {
name: "enzyme",
use: "@testing-library/react",
}],
}
}

0 comments on commit bb46e6b

Please sign in to comment.