Created
August 29, 2019 17:54
-
-
Save rmarganti/575b74b43255182a2c7c80a9abc1f6ab to your computer and use it in GitHub Desktop.
typescript + eslint + prettier
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "parser": "@typescript-eslint/parser", | |
| "parserOptions": { | |
| "ecmaVersion": 2018, | |
| "sourceType": "module" | |
| }, | |
| "extends": [ | |
| "eslint:recommended", | |
| "plugin:@typescript-eslint/recommended", | |
| "prettier/@typescript-eslint", | |
| "plugin:prettier/recommended" | |
| ], | |
| "plugins": ["@typescript-eslint", "prettier"], | |
| "env": { | |
| "jest": true, | |
| "node": true | |
| }, | |
| "rules": { | |
| "prettier/prettier": [ | |
| "error", | |
| { "singleQuote": true, "tabWidth": 4, "trailingComma": "es5" } | |
| ] | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Base eslint + typescript dependencies | |
| yarn add --dev eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin | |
| # Prettier | |
| yarn add --dev eslint-config-prettier eslint-plugin-prettier prettier |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment