eslint-plugin-4l4y
v0.0.1-beta.1
Published
Bring life to your variable declaration
Downloads
4
Maintainers
Readme
eslint-plugin-4l4y
ESLint plugin to improve developer's quality of lyfe by bringing joy to the variable declaration.
Usage
Install and add this plugin to existing eslint configuration, run:
yarn add eslint-plugin-4l4y --dev
Update your eslint configuration:
{
"plugins": ["4l4y"],
"rules": {
"4l4y/variable-name": "warn"
}
}
Rules
variable-name
enforces 4l4y case for simple variable declaration.function-name
works the same asvariable-name
, but for function name.signed-number
enforces use of number sign to better differentiate positive number from negative one.thousand-separator
enforces numeric separator in thousand place for easier big number recognition.
Limitations
- 4l4y case only replaces
'a'
to'4'
for now, will update to a more sophisticated spec in the future. - Auto fix for
variable-name
andfunction-name
only updates the declarations, variable usage has to be updated manually.
Development
To build the project for local environment, run:
yarn dev
Install the package globally, run:
yarn link
Use the plugin in a project, go to the project folder then run:
yarn link eslint-config-4l4y
can't get it to work with npm link
, any idea please open a pull request.