Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/po4tion/eslint-plugin-component

eslint plugin for everyone.
https://github.com/po4tion/eslint-plugin-component

component eslint eslint-config react

Last synced: about 1 month ago
JSON representation

eslint plugin for everyone.

Awesome Lists containing this project

README

        

# eslint-plugin-component

This open source library is developed to improve the developer's experience. 😆

## Installation

You'll first need to install [ESLint](https://eslint.org/):

```sh
npm i -D eslint
#OR
yarn add -D eslint
#OR
pnpm add -D eslint
```

Next, install `eslint-plugin-component`:

```sh
npm install -D eslint-plugin-component
#OR
yarn add -D eslint-plugin-component
#OR
pnpm add -D eslint-plugin-component
```

## Usage

This plugin only works in the components folder path.

Add `component` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:

```json
{
"plugins": ["component"]
}
```

## Rules

| Rule | Description |
|--------|----------|
| [component/jsx-pascal-in-component](docs/jsx-pascal-in-component.md) | Change the first letter of the component to uppercase if it is lowercase. |
| [component/number-easy-read](docs/number-easy-read.md) | Enforce number literals for readability. |
| [component/constants](docs/constants.md) | Enforce capital letters in constant variable names. |

## Contributing

We welcome contribution from everyone in the community. Read below for detailed contribution guide.

[CONTRIBUTING](CONTRIBUTING.md)