Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/joeybaker/eslint-plugin-one-var-es6
- Owner: joeybaker
- License: other
- Created: 2015-04-14T17:06:13.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-24T21:19:18.000Z (almost 10 years ago)
- Last Synced: 2025-01-09T15:21:56.938Z (19 days ago)
- Language: JavaScript
- Size: 168 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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.0Custom 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