1.0.4 • Published 9 years ago

eslint-one-var-es6 v1.0.4

Weekly downloads
1
License
Artistic-2.0
Repository
github
Last release
9 years ago

eslint-one-var-es6 NPM version Build Status Dependency Status

Custom eslint rule for one-var that adds es6 compat

Table of Contents generated with DocToc

Install

npm i -S eslint-one-var-es6

Usage

// .eslintrc

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

Tests

Tests are run with 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