@ls-age/eslint-config

This package provides ls-age's ESLint configuration

Stats

StarsIssuesVersionUpdatedCreatedSize
@ls-age/eslint-config
060.9.22 years ago4 years agoMinified + gzip package size for @ls-age/eslint-config in KB

Readme

@ls-age/eslint-config

This package provides ls-age's ESLint configuration.

Heavily inspired by Airbnb's ESLint config.

Main differences to eslint-config-airbnb:

ava sub-config

A special config for linting AVA test files.

Usage via .eslintrc

{
  "extends": "@ls-age/eslint-config/ava"
}

The mocha environment:

This config contains an advanced mocha environment. The following code is assumed to be in a mocha ESLint environment.

Non-arrow-callbacks are allowed

describe('This is valid', function() { ... })

Importing devDependencies is allowed

In other environments importing devDependencies is not allowed.

Anonymous functions don't need a space before parenthesis:

// This is valid
doAync(function() { ... })

// while this is not
doAync(function () { ... })

Dangling underscores in identifiers are allowed

This allows documentation generators to assume members are private.

API docs are linted

API docs are linted using eslint-plugin-jsdoc.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.