eslint-config-spoke

2.2.0 • Public • Published

Spoke Eslint Config

This package provides Spoke's .eslintrc as an extensible shared config

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"

Readme

Keywords

Package Sidebar

Install

npm i eslint-config-spoke

Weekly Downloads

145

Version

2.2.0

License

Unlicense

Unpacked Size

13.1 kB

Total Files

17

Last publish

Collaborators

  • spoke-admin