1.9.0 • Published 11 months ago

@dialpad/eslint-plugin-dialtone v1.9.0

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

eslint-plugin-dialtone

Dialtone ESLint plugin containing rules to help developers maintain dialtone recommended practices.

Adding a new rule

We use yeoman generator to generate new rules.

First, install it globally:

pnpm add -g yo generator-eslint mem-fs

Then, run the command below and follow the steps.

yo eslint:rule

Writing rules

You can try the code you're trying to detect here: AST Explorer to know which function you need to call inside create function.

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install @dialpad/eslint-plugin-dialtone:

npm install @dialpad/eslint-plugin-dialtone --save-dev

Usage

Add @dialpad/dialtone to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "@dialpad/dialtone"
    ]
}

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

{
    "rules": {
        "@dialpad/dialtone/rule-name": 2
    }
}

Supported Rules

  • Fill in provided rules here
1.8.2

1 year ago

1.9.0

11 months ago

1.8.1

1 year ago

1.7.2-beta.1

2 years ago

1.7.0-beta.1

2 years ago

1.7.2

2 years ago

1.8.0

2 years ago

1.7.1

2 years ago

1.7.0

2 years ago

1.8.1-beta.1

2 years ago

1.8.0-beta.1

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago