eslint-plugin-component

1.0.20-dev • Public • Published

eslint-plugin-component

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

Installation

You'll first need to install ESLint:

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

Next, install eslint-plugin-component:

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:

{
  "plugins": ["component"]
}

Rules

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

Contributing

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

CONTRIBUTING

Dependencies (1)

Dev Dependencies (12)

Package Sidebar

Install

npm i eslint-plugin-component

Weekly Downloads

1

Version

1.0.20-dev

License

ISC

Unpacked Size

36.4 kB

Total Files

49

Last publish

Collaborators

  • po4tion