
ESLint Plugin snakecasejs


What does it do
This is to enforce a style of snake_case in your project, rather than just disabling camelcase.
Features
- [✓] Easy to use
- [✓] MIT License
- [✓] Compatible with last version of ESLint
- [✓] Compatible with CamelCase (Class name or similar)
- [✓] Whitelist array for methods or variables with camelCase syntax from other libraries/npm package.
Fast setup
- Add dependencies on
package.json
"dependencies": {
"eslint": "^4.19.1",
},
"devDependencies": {
"eslint-plugin-snakecasejs": "^1.1.0",
}
- Create
.eslintrc.json
file with:
{
"plugins": [
"snakecasejs"
],
"rules":
{
"snakecasejs/snakecasejs": "error",
"snakecasejs/whitelist": []
}
}
- If it works add a star :star: at this project :heart:
- If you want to help me: donate on paypal or become a backer on patreon.
NOTE: switch error
to warn
if you don't need snake_case as mandatory rules.
For advanced configuration see INSTALL.md.
Ignore words, variables, methods, class name (whitelist)
Add rules: "snakecasejs/whitelist": []
with array of variables or method with camelCase syntax.
Plugin ignore check on this words. Example: "snakecasejs/whitelist": ["externalPath","setNumber"]
License
MIT LICENSE
Copyright (c) 2018 Patryk Rzucidło (PTKDev)