david-casagrande / eslint-config-dc

Personal ESLint Configs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eslint-config-dc

Personal ESLint Configs

Installation

Install this config package and ESLint:

$ npm install --save-dev eslint-config-dc

If you're using npm < v3 you'll also need to install all of the dependencies of this project:

$ npm install --save-dev eslint eslint-config-strict eslint-plugin-filenames

Usage

This set of configs is based off of eslint-config-strict with a few customized options.

This package includes the following configurations:

  • dc (alias for dc/es6)
  • dc/es6 (uses eslint-config-strict/es6 with a few tweaks)
  • dc/browser (simply sets env.browser to true)
  • dc/jest (sets jest globals)

How to use

Simply define your .eslintrc (or add a eslintConfig object to package.json) like so:

{
  "extends": ["dc"]
}

Add any additional plugins you want, for example:

{
  "extends": ["dc", "dc/browser"]
}

For more details about how shareable configs work, see the ESLint documentation.

About

Personal ESLint Configs


Languages

Language:JavaScript 100.0%