ptkdev / eslint-plugin-snakecasejs

:pencil2: ESLint Plugin: enforce snake_case syntax on variables and function names
https://npmjs.com/package/eslint-plugin-snakecasejs
Other
32 stars 4 forks source link

Can I use this only on variables and whitelist all functions? #2

Closed jericopulvera closed 4 years ago

jericopulvera commented 4 years ago

Can I use this only on variables and whitelist all functions?

ptkdev commented 4 years ago

Hi! Yes, use "snakecasejs/filter" and set all filters you find in your project. You can get name of Identifiers for filter array in the popup:

Function identifier is: MethodDefinition, try: "snakecasejs/filter": ["ClassDeclaration", "NewExpression", "MethodDefinition"],