3.2.0 • Published 3 years ago

@cognite/eslint-config v3.2.0

Weekly downloads
2,184
License
UNLICENSED
Repository
github
Last release
3 years ago

@cognite/eslint-config

This provides styleguide for JS/ES through eslint rules and prettier formatter.

Installation

To use this package in your repository, run the following command:

yarn add --dev \
  @cognite/eslint-config \
  babel-eslint eslint \
  eslint-config-airbnb \
  eslint-config-prettier \
  eslint-plugin-import \
  eslint-plugin-jest \
  eslint-plugin-jsx-a11y \
  eslint-plugin-prettier \
  eslint-plugin-react prettier

Finally, create a .eslintrc.js file in the root of your project:

module.exports = {
  extends: ['@cognite'],
};

Rules:

We use Airbnb as a base for our styleguide, and we use prettier as a formatter. This means that we extend the prettier config and eslint --fix will use prettier to format your code.

We also extend the recommended rules for Jest tests.

Exceptions to the standard prettier config is singlequotes and dangling commas.

Babel parser is used to eslint to parse experimental ES syntax.

3.2.0

3 years ago

3.1.0

3 years ago

3.0.3

3 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.0.2

4 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.6.1

5 years ago

1.6.0

5 years ago

1.5.0

5 years ago

1.4.2

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.4.0-1

6 years ago

1.4.0-0

6 years ago

2.0.0-0

6 years ago

1.2.0

6 years ago

1.2.0-2

6 years ago

1.2.0-0

6 years ago

1.1.0

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago