restrict lodash import (#121)
This commit is contained in:
parent
ae37f76b1c
commit
6d9410e3cf
@ -25,6 +25,13 @@
|
|||||||
"case": "kebabCase",
|
"case": "kebabCase",
|
||||||
"ignore": ["\\[[a-zA-Z]+\\]\\.page"]
|
"ignore": ["\\[[a-zA-Z]+\\]\\.page"]
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"no-restricted-imports": [
|
||||||
|
"warn",
|
||||||
|
{
|
||||||
|
"name": "lodash",
|
||||||
|
"message": "Import the specific methods you need from lodash e.g. `import get from 'lodash/get'`. This helps with bundle sizing."
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user