0.1.0 • Published 8 years ago

eslint-config-max v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

eslint-config-max

Based on Standard, but enforcing additional rules to further consistency.:

Usage

# install `eslint` and `eslint-config-max`:
npm i eslint eslint-config-max

# create your `.eslintrc` file
echo "{
  \"extends\": \"max\"
}" > .eslintrc

Rules added to Standard

object-curly-spacing

// ok
exports.ok = { a: '1' }

// not ok
exports.notOk = {a: '1'}

max-len

Lines may not be longer than 80 characters.

// requires are ignored. ok:
require('../test/../test/../test/../test/../test/../test/../test/../test/../test')

// not ok
myModule.doSomeCalculationThatTakesALongTimeToExplain('it', 'also', 'takes', 'arguments')

require-path-exists

// not ok
require()
// not ok
require('some-module-that-doesn-exist')
// not ok
require('two', 'arguments')

mocha/no-exclusive-tests

You're not allowed to use describe.only etc.

mocha/no-mocha-arrows

You're not allowed to pass arrow functions to describe, it, etc.