Created
June 4, 2019 21:59
-
-
Save yuritoledo/fb8a0fc9d0e6e6f809d642174be6992c to your computer and use it in GitHub Desktop.
This file contains hidden or 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", | |
"extends": [ | |
"plugin:react/recommended", | |
"plugin:@typescript-eslint/recommended", | |
], | |
"parserOptions": { | |
"ecmaVersion": 2018, | |
"sourceType": "module", | |
"ecmaFeatures": { | |
"jsx": true, | |
}, | |
}, | |
"rules": { | |
"linebreak-style": [ | |
"warn", | |
"unix" | |
], | |
"no-multiple-empty-lines": [ | |
"warn", | |
{ | |
"max": 2, | |
"maxEOF": 1 | |
} | |
], | |
"vars-on-top": "warn", | |
"no-console": [ | |
"warn", | |
{ | |
"allow": [ | |
"warn", | |
"error" | |
] | |
} | |
], | |
"@typescript-eslint/indent": [ | |
"warn", | |
2, | |
{ | |
"SwitchCase": 1 | |
} | |
], | |
"space-infix-ops": "warn", | |
"no-trailing-spaces": "warn", | |
"no-unreachable": "off", | |
"template-curly-spacing": "warn", | |
"prefer-template": "warn", | |
"no-debugger": "warn", | |
"no-extra-boolean-cast": "warn", | |
"no-irregular-whitespace": "warn", | |
"no-multi-spaces": "warn", | |
"no-template-curly-in-string": "warn", | |
"no-unneeded-ternary": "warn", | |
"no-case-declarations": "off", | |
"no-unused-expressions": "off", | |
"no-else-return": "warn", | |
"no-restricted-globals": "off", | |
"no-use-before-define": "off", | |
"no-mixed-spaces-and-tabs": "warn", | |
"no-extra-parens": "off", | |
"object-shorthand": "warn", | |
"prefer-arrow-callback": "warn", | |
"no-duplicate-imports": "warn", | |
"arrow-spacing": "warn", | |
"no-sequences": "off", | |
"no-lonely-if": "warn", | |
"jsx-quotes": [ | |
"warn", | |
"prefer-single" | |
], | |
"quotes": [ | |
"warn", | |
"single" | |
], | |
"object-curly-spacing": [ | |
"warn", | |
"always" | |
], | |
"key-spacing": "warn", | |
"semi": [ | |
"warn", | |
"never" | |
], | |
"arrow-parens": [ | |
"warn", | |
"as-needed" | |
], | |
"react/self-closing-comp": [ | |
"warn", | |
{ | |
"component": true | |
} | |
], | |
"react/jsx-closing-bracket-location": [ | |
1, | |
"tag-aligned" | |
], | |
"react/jsx-max-props-per-line": [ | |
1, | |
{ | |
"when": "multiline" | |
} | |
], | |
"react/jsx-first-prop-new-line": [ | |
1, | |
"multiline" | |
], | |
"react/jsx-tag-spacing": [ | |
1, | |
{ | |
"closingSlash": "never", | |
"beforeSelfClosing": "always", | |
"afterOpening": "never", | |
"beforeClosing": "never" | |
} | |
], | |
"react/prop-types": "off", | |
"react/prefer-stateless-function": [ | |
1 | |
], | |
"react/no-deprecated": "off", | |
"comma-dangle": "off", | |
"react/display-name": "off", | |
"import/no-unresolved": "error", | |
"@typescript-eslint/explicit-function-return-type": "off", | |
"no-unused-vars": "off" | |
}, | |
"settings": { | |
"react": { | |
"version": "detect" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment