2.2.0 • Published 3 months ago
eslint-config-spoke v2.2.0
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"
2.2.0
3 months ago
2.1.0
5 months ago
2.0.0
6 months ago
1.3.0
1 year ago
1.2.0
2 years ago
1.1.0
2 years ago
1.0.0
2 years ago
0.10.0
2 years ago
0.11.0
2 years ago
0.9.0
2 years ago
0.8.0
2 years ago
0.7.0
3 years ago
0.6.0
3 years ago
0.5.0
3 years ago
0.4.0
4 years ago
0.3.0
4 years ago
0.2.0
4 years ago
0.1.0
4 years ago
0.0.1-rc1
4 years ago