Skip to content

Instantly share code, notes, and snippets.

@reatexpk
Last active June 5, 2019 13:45
Show Gist options
  • Save reatexpk/b4f7081747c480a9d801760cb68176b7 to your computer and use it in GitHub Desktop.
Save reatexpk/b4f7081747c480a9d801760cb68176b7 to your computer and use it in GitHub Desktop.
Typescript eslint config (airbnb)
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"extends": [
"airbnb",
"prettier",
"prettier/react",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint"
],
"plugins": ["react", "prettier", "@typescript-eslint", "react-hooks"],
"rules": {
"react/jsx-filename-extension": 0,
"react/prop-types": 0,
"prettier/prettier": [
"error",
{
"singleQuote": true,
"trailingComma": "all",
"arrowParens": "always"
}
],
"max-len": ["error", 80],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-underscore-dangle": "off"
},
"env": {
"browser": true
},
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx",
".ts",
".tsx"
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment