Skip to content

Instantly share code, notes, and snippets.

@donnes
Last active August 28, 2020 01:45
Show Gist options
  • Save donnes/637353f549f1f54ab46470ebd433266e to your computer and use it in GitHub Desktop.
Save donnes/637353f549f1f54ab46470ebd433266e to your computer and use it in GitHub Desktop.
ESLint Setup
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
{
"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"
}
}
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