Skip to content

Instantly share code, notes, and snippets.

@cchamberlain
Created July 17, 2018 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cchamberlain/533e365d73bfe5edfc5c9a0827972b0b to your computer and use it in GitHub Desktop.
Save cchamberlain/533e365d73bfe5edfc5c9a0827972b0b to your computer and use it in GitHub Desktop.
tslint
{
"extends": ["tslint-react"],
"jsRules": {
"class-name": true,
"comment-format": [
true,
"check-space"
],
"indent": [
true,
"spaces"
],
"no-duplicate-variable": true,
"no-eval": true,
"no-trailing-whitespace": true,
"no-unsafe-finally": true,
"one-line": [
true,
"check-open-brace",
"check-whitespace"
],
"quotemark": [
true,
"double"
],
"semicolon": [
true,
"always"
],
"variable-name": [
true,
"ban-keywords"
],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type"
]
},
"rules": {
"class-name": true,
"indent": [
true,
"spaces"
],
"no-eval": true,
"no-internal-module": true,
"no-trailing-whitespace": true,
"no-for-in-array": true,
"no-construct": true,
"no-duplicate-variable": true,
"no-consecutive-blank-lines": true,
"no-invalid-this": true,
"no-mergeable-namespace": true,
"no-reference": true,
"no-unused-new": true,
"no-inferrable-types": true,
"no-unsafe-finally": true,
"no-var-keyword": true,
"one-line": [
true,
"check-open-brace",
"check-whitespace"
],
"quotemark": [
true,
"double"
],
"semicolon": [
true,
"always"
],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
}
],
"variable-name": [
true,
"ban-keywords"
],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type"
],
"array-type": [
true,
"array"
],
"interface-name": [true, "never-prefix"],
"jsx-alignment": false,
"jsx-curly-spacing": false,
"jsx-no-multiline-js": false,
"jsx-no-lambda": false,
"jsx-no-string-ref": false,
"jsx-self-close": false,
"jsx-wrap-multiline": false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment