File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1818 eslintrc = [ ] ;
1919}
2020
21+ if ( typeof eslintrc . rules [ "snakecasejs/whitelist" ] == "undefined" ) {
22+ eslintrc . rules [ "snakecasejs/whitelist" ] = [ ] ;
23+ }
24+
2125function is_class_usage ( node ) {
2226 return [ "FunctionDeclaration" , "NewExpression" , "MemberExpression" ] . indexOf ( node . parent . type ) > - 1 ;
2327}
Original file line number Diff line number Diff line change 11{
22 "name" : " eslint-plugin-snakecasejs" ,
33 "description" : " Eslint plugin to enforce a style of snake_case in your project, rather than just disabling camelcase." ,
4- "version" : " 1.1.0-2 " ,
4+ "version" : " 1.1.0-3 " ,
55 "main" : " index.js" ,
66 "author" : " Patryk Rzucidlo [@ptkdev] <support@ptkdev.io> (https://ptkdev.it)" ,
77 "author_original" : " David Buchan-Swanson <david.buchanswanson@gmail.com>" ,
You can’t perform that action at this time.
0 commit comments