davincho / eslint-config

Opinionated ESLint config

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CI

Purpose

This package contains an opinionated ESLint configuration for vanilla JS, Typescript and TSX for React.

Installation

Assuming your project has already installed the peerDependecies prettier, eslint (and potentially typescript - if not run yarn add --dev eslint typescript prettier), the following steps are necessary:

  1. Run yarn add eslint @dvnch/eslint-config
  2. Create a new file called .eslintrc.json
  3. Paste the following snippet into the file
{
  "extends": ["./node_modules/@dvnch/eslint-config/{YOUR-VERSION}"]
}

Depending on your usecase replace {YOUR-VERSION} with one of the following:

  • javascript.json
  • typescript.json
  • react.json

About

Opinionated ESLint config

License:MIT License


Languages

Language:TypeScript 81.2%Language:JavaScript 18.8%