Skip to content

Files

Latest commit

f1de1f5 · Feb 1, 2018

History

History
33 lines (22 loc) · 1.23 KB

eslint-config.md

File metadata and controls

33 lines (22 loc) · 1.23 KB

ESlint Configurations

Standard configurations for ESLint.

Why? — We use ESLint for quality control of our code. The standard ESLint configurations ensure that we use the same rules across all our projects.

This package provides the following ESLint configurations:

To use them just create the following .eslintrc in your code:

{
  "extends": "./node_modules/topcoder-react-utils/config/eslint/default.json"
}

.eslintrc allows you to further modify ESLint configuration, but it is not recommended without a very good and special reason.

Configuration Details

  • config/eslint/default

    Under the hood it matches the standard AirBnB ESLint config, and just adds a few plugins to ensure that ESLint properly cooperates with Babel to understand JS and JSX constructs we use in our code.

  • config/eslint/jest

    Extends config/eslint/default to work well in the folders with Jest tests.