0.1.2 • Published 9 years ago

eslint-plugin-vars-on-top-without-for v0.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
9 years ago

eslint plugin vars-on-top-without-for Npm version Npm downloads per month

ESLint rule to enforce var declarations are only at the top of a function but excluding for loops.

Build Status Test Coverage Npm dependencies devDependency Status

Summary

This repository will give access to a modified vars-on-top rule for the ESLint tool.

Usage

  1. Install eslint as a dev-dependency:

    npm install --save-dev eslint
  2. Install eslint-plugin-vars-on-top-without-for as a dev-dependency:

    npm install --save-dev eslint-plugin-vars-on-top-without-for
  3. Enable the plugin by adding it to your .eslintrc:

    plugins:
      - vars-on-top-without-for