Last active
August 28, 2020 01:45
-
-
Save donnes/637353f549f1f54ab46470ebd433266e to your computer and use it in GitHub Desktop.
ESLint Setup
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
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true | |
[*.gradle] | |
indent_size = 4 | |
[*.java] | |
indent_size = 4 | |
[*.xml] | |
indent_size = 4 |
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
Show hidden characters
{ | |
"env": { | |
"browser": true, | |
"es2020": true, | |
"node": true, | |
"jest": true | |
}, | |
"extends": [ | |
"plugin:react/recommended", | |
"standard", | |
"plugin:@typescript-eslint/recommended", | |
"prettier/@typescript-eslint", | |
"prettier/standard", | |
"prettier/react" | |
], | |
"parser": "@typescript-eslint/parser", | |
"parserOptions": { | |
"ecmaFeatures": { | |
"jsx": true | |
}, | |
"ecmaVersion": 12, | |
"sourceType": "module" | |
}, | |
"plugins": [ | |
"react", | |
"@typescript-eslint", | |
"prettier" | |
], | |
"rules": { | |
"prettier/prettier": "off", | |
"space-before-function-paren": "off", | |
"react/prop-types": "off" | |
} | |
} |
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
module.exports = { | |
semi: false, | |
singleQuote: true, | |
arrowParens: 'avoid', | |
trailingComma: 'none', | |
endOfLine: 'auto' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment