Skip to content

Instantly share code, notes, and snippets.

@michaelfortunato
Created November 12, 2021 04:42
Show Gist options
  • Save michaelfortunato/204735fad0c34c55f100ee1263ec9ed3 to your computer and use it in GitHub Desktop.
Save michaelfortunato/204735fad0c34c55f100ee1263ec9ed3 to your computer and use it in GitHub Desktop.
Eslint Configuration (with prettier + typescript support)
env:
commonjs: true
es2021: true
node: true
extends:
- airbnb-base
- "prettier"
parser: "@typescript-eslint/parser"
parserOptions:
ecmaVersion: 5
plugins:
- "@typescript-eslint"
- "prettier"
rules: { "prettier/prettier": "error" }
npm install --save-dev eslint
npx eslint --init
#Override generated eslint.yaml with new eslint
npm install --save-dev eslint-config-prettier eslint-plugin-prettier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment