Last active
June 5, 2019 13:45
-
-
Save reatexpk/b4f7081747c480a9d801760cb68176b7 to your computer and use it in GitHub Desktop.
Typescript eslint config (airbnb)
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
{ | |
"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