rylnd / eslint-config-gsc

A shareable ESLint configuration from the GoSpotCheck FE team.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eslint-config-gsc

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.

gsc (base config)

The "base" config is suitable for JavaScript projects.

Example configuration in .eslintrc.js:

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

gsc/react

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

Example configuration in .eslintrc.js:

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

Stylelinter

To use the stylelint configuration:

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

About

A shareable ESLint configuration from the GoSpotCheck FE team.


Languages

Language:JavaScript 100.0%