Last active
December 18, 2019 06:55
-
-
Save qasimalyas/463dafa82817f39ba144d82cf75eb5d0 to your computer and use it in GitHub Desktop.
eslint with prettier and typescript support
This file contains 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
{ | |
"parserOptions": { | |
"ecmaVersion": 2019, | |
"sourceType": "module", | |
"ecmaFeatures": { | |
"jsx": true | |
} | |
}, | |
"extends": ["eslint:recommended", "eslint-config-prettier"], | |
"rules": { | |
"strict": ["error", "never"] | |
}, | |
"env": { | |
"browser": true | |
}, | |
"overrides": [ | |
{ | |
"files": "**/*.+(ts|tsx)", | |
"parser": "@typescript-eslint/parser", | |
"parserOptions": { | |
"project": "./tsconfig.json" | |
}, | |
"plugins": ["@typescript-eslint/eslint-plugin"], | |
"extends": [ | |
"plugin:@typescript-eslint/eslint-recommended", | |
"plugin:@typescript-eslint/recommended", | |
"eslint-config-prettier/@typescript-eslint" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment