restrict lodash import (#121)

This commit is contained in:
Dexter Edwards 2022-03-23 15:01:50 +00:00 committed by GitHub
parent ae37f76b1c
commit 6d9410e3cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,6 +25,13 @@
"case": "kebabCase",
"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."
}
]
}
},