Skip to content

Commit

Permalink
Forbid direct usage of Formik/Bootstrap <Form/> (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante authored Jan 4, 2023
1 parent 81e6a3e commit 5ca3c2a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,16 @@ const config = {
message:
'Use root-based imports (`import "@/something"`) instead of relative imports.',
},
{
group: ["formik"],
importNames: ["Form", "Formik"],
message: "Import @/components/form/Form instead",
},
{
group: ["react-bootstrap"],
importNames: ["Form"],
message: "Import @/components/form/Form instead",
},
],
},
],
Expand Down

0 comments on commit 5ca3c2a

Please sign in to comment.