eslint-config-max

0.1.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-config-max

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • maximilianschmitt