From 5ca3c2a410853b0817918edb109cc79bb411939b Mon Sep 17 00:00:00 2001 From: Federico Brigante Date: Wed, 4 Jan 2023 18:00:45 +0800 Subject: [PATCH] Forbid direct usage of Formik/Bootstrap `
` (#34) --- index.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/index.js b/index.js index 11f3fe1..bba9be7 100644 --- a/index.js +++ b/index.js @@ -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", + }, ], }, ],