Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kindermax/eslint-plugin-tanok
tanok specific linting rules for ESLint
https://github.com/kindermax/eslint-plugin-tanok
Last synced: about 23 hours ago
JSON representation
tanok specific linting rules for ESLint
- Host: GitHub
- URL: https://github.com/kindermax/eslint-plugin-tanok
- Owner: kindermax
- License: mit
- Created: 2018-07-30T20:30:08.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-01T19:49:54.000Z (over 6 years ago)
- Last Synced: 2024-12-28T09:17:08.808Z (13 days ago)
- Language: JavaScript
- Homepage:
- Size: 171 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# eslint-plugin-tanok
Eslint plugin for tanok.js
## Installation
You'll first need to install [ESLint](http://eslint.org):
```
$ npm i eslint --save-dev
```Next, install `eslint-plugin-tanok`:
```
$ npm install eslint-plugin-tanok --save-dev
```**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-tanok` globally.
## Usage
Add `tanok` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:
```json
{
"plugins": [
"tanok"
]
}
```Then configure the rules you want to use under the rules section.
```json
{
"rules": {
"tanok/no-literal-events": 2
}
}
```## Supported Rules
* [no-literal-events] - Forbid literal event names in `send` function