3.0.1 • Published 12 months ago

@trbl/eslint-config v3.0.1

Weekly downloads
128
License
MIT
Repository
github
Last release
12 months ago

NPM Bundle Size Supported by TRBL

JavaScript Style Guide

Highlights

Quick Start

Installation

$ npm i --save-dev @trbl/eslint-config
$ npm info @trbl/eslint-config peerDependencies
$ npm i --save-dev <dependency>@<version> # for each dependency in the above output
$ # or
$ yarn add --dev @trbl/eslint-config
$ yarn info @trbl/eslint-config peerDependencies
$ yarn add --dev <dependency>@<version> # for each dependency in the above output

Usage

There are a number of configurations for consumption, all of which are packaged together as the default export or they can be selectively extended, which prevents the path names from being written shorthand.

{
  "extends": "@trbl"
  // or selectively extend any config(s)
  // "extends": [
  //   "@trbl/eslint-config/configs/base",
  //   "@trbl/eslint-config/configs/jest",
  //   "@trbl/eslint-config/configs/react",
  // ]
}

If using Webpack, install and configure eslint-loader to have loaded files automatically linted.

{
  test: /\.js$/,
  exclude: /node_modules/,
  loader: 'eslint-loader',
  options: {
    fix: true,
    emitWarning: true,
  },
}

For working examples, see the demo app.

Demo

$ git clone git@github.com:trouble/eslint-config.git
$ yarn
$ yarn demo
$ open http://localhost:3000

Contribution

Help us, or let us help you help us.

License

MIT Copyright (c) TRBL, LLC

3.0.1

12 months ago

3.0.0

12 months ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago