Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@apolitical/eslint-config

Apolitical ESLint and Prettier configurations for Node projects

ESLint, Prettier, Node Modules

readme

Apolitical Eslint Config

Apolitical ESLint and Prettier configurations for Node projects

Requirements

Requires the following to run:

Installation

Install with yarn:

yarn add -D @apolitical/eslint-config

Usage

Link the ESLint configurations from your package.json:

On your API (Express project):

  "eslintConfig": {
    "extends": "@apolitical/eslint-config/api.config"
  },

On your UI (React project):

  "eslintConfig": {
    "extends": "@apolitical/eslint-config/ui.config"
  }

Link the Prettier configurations from your package.json:

  "prettier": "@apolitical/eslint-config/prettier.config"