Skip to content

Instantly share code, notes, and snippets.

@qasimalyas
Last active December 18, 2019 06:55
Show Gist options
  • Save qasimalyas/463dafa82817f39ba144d82cf75eb5d0 to your computer and use it in GitHub Desktop.
Save qasimalyas/463dafa82817f39ba144d82cf75eb5d0 to your computer and use it in GitHub Desktop.
eslint with prettier and typescript support
{
"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