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

https://github.com/zengxiaoluan/eslint-plugin-jlc

An opinionated collection of ESLint rules used by JLC.
https://github.com/zengxiaoluan/eslint-plugin-jlc

eslint-plugin eslint-rules jlc

Last synced: 4 months ago
JSON representation

An opinionated collection of ESLint rules used by JLC.

Awesome Lists containing this project

README

        

# eslint-plugin-jlc [![npm](https://img.shields.io/npm/v/eslint-plugin-jlc.svg)](https://www.npmjs.com/package/eslint-plugin-jlc) [![build status](https://github.com/zengxiaoluan/eslint-plugin-jlc/actions/workflows/node.js.yml/badge.svg?branch=main)](https://github.com/zengxiaoluan/eslint-plugin-jlc/actions/workflows/node.js.yml) [![Download](https://img.shields.io/npm/dm/eslint-plugin-jlc)](https://www.npmjs.com/package/eslint-plugin-jlc)

An opinionated collection of ESLint rules used by JLC.

## Installation

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

```sh
npm i eslint --save-dev
```

Next, install `eslint-plugin-jlc`:

```sh
npm install eslint-plugin-jlc --save-dev
```

## Usage

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

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

Then configure the rules you want to use under the rules section.

```json
{
"rules": {
"jlc/comments-need-space": 2
}
}
```

## Configurations

| | Name |
| :- | :------------ |
| ✅ | `recommended` |

## Rules

💼 Configurations enabled in.\
✅ Set in the `recommended` configuration.

| Name | Description | 💼 |
| :--------------------------------------------------------------- | :-------------------------------------------- | :- |
| [always-camel-case](docs/rules/always-camel-case.md) | Always camel case every thing | ✅ |
| [comments-need-space](docs/rules/comments-need-space.md) | comments need space | ✅ |
| [kebab-case](docs/rules/kebab-case.md) | kebab case your file name and directory name. | ✅ |
| [no-then](docs/rules/no-then.md) | No then with promise | ✅ |
| [prefer-template-literal](docs/rules/prefer-template-literal.md) | prefer template literal | ✅ |