Skip to content

Instantly share code, notes, and snippets.

@kushalmahajan kushalmahajan/.eslintrc
Last active Nov 18, 2019

Embed
What would you like to do?
.eslintrc
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": [
"react",
"prettier",
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"prettier",
"prettier/@typescript-eslint"
],
"env": {
"browser": true,
"jasmine": true,
"jest": true,
"node": true
},
"rules": {
"prettier/prettier": [
"error",
{
"jsx-max-props-per-line": 1,
"useTabs": true,
"tabWidth": 4
}
],
"no-case-declarations": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"vars": "all",
"args": "all",
"ignoreRestSiblings": false
}
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/unbound-method": "off",
"react/display-name": "off"
},
"settings": {
"react": {
"pragma": "React",
"version": "detect"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.