Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/joeybaker/eslint-plugin-one-var-es6

eslint plugin to deal with one-var and es6 by adding one-let and one-const
https://github.com/joeybaker/eslint-plugin-one-var-es6

Last synced: 3 days ago
JSON representation

eslint plugin to deal with one-var and es6 by adding one-let and one-const

Awesome Lists containing this project

README

        

# eslint-plugin-one-var-es6 [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-url]][daviddm-image]

# THIS MODULE IS DEPRECATED
## It's functionality was added in eslint v0.20.0

Custom eslint rule for one-var that adds es6 compat

**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*

- [Install](#install)
- [Usage](#usage)
- [Tests](#tests)
- [Developing](#developing)
- [Requirements](#requirements)
- [License](#license)

## Install

```sh
npm i -S eslint-plugin-one-var-es6
```

## Usage

```js
// .eslintrc

"plugins": [
"eslint-plugin-one-var-es6"
],
"rules": {
"eslint-plugin-one-var-es6/one-var-es6": [2, "always"],
"eslint-plugin-one-var-es6/one-let": [2, "never"],
"eslint-plugin-one-var-es6/one-const": [2, "never"]
}

```

## Tests
Tests are run with [eslint-tester](https://github.com/eslint/eslint-tester).

* `npm test` will run the tests
* `npm run tdd` will run the tests on every file change.

## Developing
To publish, run `npm run release -- [{patch,minor,major}]`

_NOTE: you might need to `sudo ln -s /usr/local/bin/node /usr/bin/node` to ensure node is in your path for the git hooks to work_

### Requirements
* **npm > 2.0.0** So that passing args to a npm script will work. `npm i -g npm`
* **git > 1.8.3** So that `git push --follow-tags` will work. `brew install git`

## License

Artistic 2.0 © [Joey Baker](https://byjoeybaker.com)

[npm-url]: https://npmjs.org/package/eslint-plugin-one-var-es6
[npm-image]: https://badge.fury.io/js/eslint-plugin-one-var-es6.svg
[travis-url]: https://travis-ci.org/joeybaker/eslint-plugin-one-var-es6
[travis-image]: https://travis-ci.org/joeybaker/eslint-plugin-one-var-es6.svg?branch=master
[daviddm-url]: https://david-dm.org/joeybaker/eslint-plugin-one-var-es6.svg?theme=shields.io
[daviddm-image]: https://david-dm.org/joeybaker/eslint-plugin-one-var-es6