You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -41,10 +41,13 @@ NOTE: switch `error` to `warn` if you don't need snake_case as mandatory rules.
41
41
For advanced configuration see [INSTALL.md](https://github.com/ptkdev/eslint-plugin-snakecasejs/blob/master/INSTALL.md).
42
42
43
43
## --fix
44
-
This eslint param fix simple rules of linter and with this plugin convert all camelCase variables or function name to snake_case. --fix support whitelist. Run this command in your project dir:
44
+
This eslint parameter fix simple rules of linter and with this plugin convert all camelCase variables or function name to snake_case.
45
+
Fix command support whitelist. Run this command in your project directory:
**WARNING:** You need install eslint globally for this feature: `npm install eslint -g`
49
+
50
+
## White list
48
51
Ignore words, variables, methods, class name without snake_case syntax. Add rules: `"snakecasejs/whitelist": []` with array of variables or method with camelCase that you can not convert to snake_case (external library naming convention).
49
52
50
53
Plugin ignore check on this words. Example: `"snakecasejs/whitelist": ["externalPath","setNumber"]`
0 commit comments