Closed Novaras closed 4 years ago
Hi! As default we ignore camelCase for classes and new expression.
In your example eslint detect this as VariableDeclarator
. You can set filter similar as:
"snakecasejs/filter": ["ClassDeclaration", "NewExpression", "VariableDeclarator"]
On end of snakecasejs warning i added between the round brackets the expression/declaration detected by eslint and you can add this in fliters or whitelist parameter (see readme.md). Unfortunately, there aren't often specific declarations for many parts of the code: eslint provides generic values.
This aren't limit of snakecasejs plugin but is limit of eslint. Sorry.
PR Are welcome.
Question
Two qs:
Our codebase uses
camelCase
for functions - this doesn't seem possible with your package as it (perhaps correctly) seesmyFunc
as a variable and does nothing smart regarding what it's assigned.Thanks!