Home

Awesome

eslint-config-perf-standard

<!-- [![build status][build-png]][build] [![Coverage Status][cover-png]][cover] [![Davis Dependency status][dep-png]][dep] --> <!-- [![NPM][npm-png]][npm] -->

A set of eslint rules for performant JS

Example

Works with eslint@1.8.0

Use like so:

// .eslintrc
{
    "extends": "perf-standard",
    "rules": {
        "max-len": [0]
    }
}

Also configure your package.json like so:

{
    "scripts": {
        "lint": "eslint $(git ls-files | grep '.js$')"
    }
}

Rules explanation

There are a lot of rules in this project; I will explain a few of them here for the ones that are non-trivial

no-restricted-modules

There are a few modules that are banned and there are alternatives available.

Installation

npm install eslint-config-perf-standard

Tests

npm test

Contributors

MIT Licensed