Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/crowjonah/eslint-plugin-taco
Rules I wanted but couldn't find elsewhere
https://github.com/crowjonah/eslint-plugin-taco
Last synced: about 2 months ago
JSON representation
Rules I wanted but couldn't find elsewhere
- Host: GitHub
- URL: https://github.com/crowjonah/eslint-plugin-taco
- Owner: crowjonah
- Created: 2019-04-19T18:09:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-02T13:14:43.000Z (over 3 years ago)
- Last Synced: 2023-04-03T23:30:48.878Z (almost 2 years ago)
- Language: JavaScript
- Size: 91.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eslint-plugin-taco
Rules I wanted but couldn't find elsewhere
## Installation
You'll first need to install [ESLint](http://eslint.org):
```
$ npm i eslint --save-dev
```Next, install `eslint-plugin-taco`:
```
$ npm install eslint-plugin-taco --save-dev
```**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-taco` globally.
## Usage
Add `taco` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:
```json
{
"plugins": [
"taco"
]
}
```Then configure the rules you want to use under the rules section.
```json
{
"rules": {
"taco/multi-var-declaration-newline": 2
}
}
```## Supported Rules
* Require newline between multiple variable declarations and declarators
*BAD*
```
const A_STRING = '[string]',
ANOTHER_STRING = '[another-string]'
```*GOOD*
```
const
A_STRING = '[string]',
ANOTHER_STRING = '[another-string]'
```