Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/youngjuning/eslint-plugin-literal-checker

An ESLint micro plugin.
https://github.com/youngjuning/eslint-plugin-literal-checker

eslint-plugin

Last synced: about 2 months ago
JSON representation

An ESLint micro plugin.

Awesome Lists containing this project

README

        

# eslint-plugin-literal-checker

An ESLint micro plugin.

## Installation

```
$ npm install eslint-plugin-literal-checker --save-dev
```

## Usage

```
// .eslintrc.js
{
plugins: ['literal-checker'],
rules: {
'literal-checker/literal-check': [
2,
['tuya.'],
['tuya.m.device.media.latest', 'tuya.m.device.media.detail'],
],
}
}
```

## Supported Rules

### `literal-check`

Define denylist strings and allowlist strings for literal.