eslint-plugin-4l4y
TypeScript icon, indicating that this package has built-in type declarations

0.0.1-beta.1 • Public • Published

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 as variable-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 and function-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.

Package Sidebar

Install

npm i eslint-plugin-4l4y

Weekly Downloads

6

Version

0.0.1-beta.1

License

MIT

Unpacked Size

14.3 kB

Total Files

8

Last publish

Collaborators

  • krisantuswanandi