Skip to content

Instantly share code, notes, and snippets.

@AilsonFreire
Last active November 4, 2019 12:33
Show Gist options
  • Save AilsonFreire/efa28e3516927d19e78a93eb3f60618d to your computer and use it in GitHub Desktop.
Save AilsonFreire/efa28e3516927d19e78a93eb3f60618d to your computer and use it in GitHub Desktop.
React Native tslint.json with all configurations applied in my projects
{
"extends": [
"tslint:recommended",
"tslint-config-standard",
"tslint-react",
"tslint-config-prettier"
],
"rules": {
"class-name": true,
"member-access": false,
"interface-over-type-literal": false,
"comment-format": [true, "check-space"],
"jsx-no-lambda": false,
"indent": [true, "spaces"],
"one-line": [true, "check-open-brace", "check-whitespace"],
"no-var-keyword": true,
"no-var-requires": false,
"quotemark": [true, "double", "avoid-escape"],
"semicolon": [true, "always", "ignore-bound-class-methods"],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-module",
"check-separator",
"check-type"
],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
},
{
"call-signature": "onespace",
"index-signature": "onespace",
"parameter": "onespace",
"property-declaration": "onespace",
"variable-declaration": "onespace"
}
],
"no-internal-module": true,
"no-trailing-whitespace": true,
"no-null-keyword": true,
"prefer-const": true,
"jsdoc-format": true
}
}
@AilsonFreire
Copy link
Author

Testing comment

@AilsonFreire
Copy link
Author

Testing comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment