Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/youngjuning/eslint-plugin-literal-checker
- Owner: youngjuning
- Created: 2020-11-28T09:13:44.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-27T08:28:53.000Z (almost 3 years ago)
- Last Synced: 2024-10-14T05:07:19.224Z (3 months ago)
- Topics: eslint-plugin
- Language: JavaScript
- Homepage:
- Size: 41 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
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.