eslint-config-spoke
v2.2.0
Published
Spoke's ESLint config
Downloads
1,504
Readme
Spoke Eslint Config
This package provides Spoke's .eslintrc as an extensible shared config :sparkles:
Install and Setup
Install the library using
npm install --save-dev eslint--config-spoke
Usage
Create a .eslintrc
file in the root of the repo you are working on and extend the preset/config you wish to use
e.g. using the typescriptService
and mocha
linting rules
{
"extends": ["spoke/presets/typescriptService", "spoke/configs/mocha"]
}
Linting Rules
Some of the code rules we have at Spoke cannot be enforced by eslint. This is the list of those rules along with examples.
Importing files
Rule: Keep the dependencies at the top, followed by a white line, then list any local file imports.
Repository: All
Example:
import React from "react"
import NavBar from "./NavBar"