add some known issues and pickers fix

Signed-off-by: Juan Pablo Garcia Ripa <sarabadu@gmail.com>
This commit is contained in:
Juan Pablo Garcia Ripa
2024-04-28 20:26:04 +02:00
parent c56cfd8990
commit 65ec043e4e
4 changed files with 62 additions and 1 deletions
@@ -155,7 +155,11 @@ module.exports = {
const value = s.imported.name;
const alias = s.local.name === value ? undefined : s.local.name;
const propsMatch = /^([A-Z]\w+)Props$/.exec(value);
const propsMatch =
/^([A-Z]\w+)Props$/.exec(value) ??
(node.source.value === '@material-ui/pickers'
? /^Keyboard([A-Z]\w+Picker)$/.exec(value)
: null);
const emitProp = propsMatch !== null;
const emitComponent = !emitProp;