6.0.0 • Published 5 years ago

eslint-config-gsc v6.0.0

Weekly downloads
46
License
MIT
Repository
github
Last release
5 years ago

eslint-config-gsc

CircleCI

This package provides shareable ESLint configurations for JavaScript projects that conform with GoSpotChecks coding style.

Installation

To make use of this config, install ESLint (>= 5.8.0) and this package as a development dependency of your project:

npm install eslint eslint-config-gsc --save-dev

Create a file named .eslintrc.js to your project's root directory. Copy and paste the code below and save.

module.exports = {
  extends: "gsc"
};

Profiles

The eslint-config-gsc package includes a number of ESLint configuration profiles for different types of projects.

Base JavaScript

The "base" config is suitable for JavaScript projects using babel-eslint parser.

Example configuration in .eslintrc.js:

module.exports = {
  extends: "gsc"
};

React

The gsc/react config is suitable for projects using React.

Example configuration in .eslintrc.js:

module.exports = {
  extends: ["gsc", "gsc/react"]
};

TypeScript

The gsc/typescript config is suitable for projects using TypeScript.

Example configuration in .eslintrc.js:

module.exports = {
  extends: "gsc/typescript"
};

TypeScript + React

Projects using both TypeScript and React need this config.

Example configuration in .eslintrc.js:

module.exports = {
  extends: ["gsc/typescript", "gsc/react"]
};

Testing

Specific eslint configs for different types of testing frameworks.

Jest

The gsc/jest config is suitable for projects using Jest.

Example configuration in .eslintrc.js:

module.exports = {
  extends: ["gsc/jest"]
};

Cypress

The gsc/cypress config is suitable for projects using Cypress.

Example configuration in .eslintrc.js:

module.exports = {
  extends: ["gsc/cypress"]
};

Jest + Cypress

Projects using both Jest and Cypress need this config.

Example configuration in .eslintrc.js:

module.exports = {
  extends: ["gsc/jest", "gsc/cypress"]
};

Stylelinter

To use the stylelint configuration:

  • Create a stylelint.config.js
  • Add module.exports = require('eslint-config-gsc/stylelint');
6.0.0

5 years ago

5.1.0

6 years ago

5.0.0

6 years ago

4.1.0

6 years ago

4.0.5

6 years ago

4.0.4

6 years ago

4.0.3

6 years ago

4.0.2

6 years ago

4.0.1

6 years ago

4.0.0

6 years ago

2.1.0

6 years ago

2.0.0

6 years ago

1.2.0

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.13-beta.0

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

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

1.0.1

7 years ago

1.0.0

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago