Last active
June 22, 2018 05:17
-
-
Save chrsgrffth/7e33b40fb6c52dabd57e33f310348e56 to your computer and use it in GitHub Desktop.
TSLINT
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
{ | |
"extends": [ | |
"tslint-react" | |
], | |
"rulesDirectory": [ | |
"node_modules/tslint-eslint-rules/dist/rules" | |
], | |
"rules": { | |
"adjacent-overload-signatures": true, | |
"align": [ | |
true, | |
"parameters", | |
"statements" | |
], | |
"array-bracket-spacing": [true, "never"], | |
"array-type": [false], | |
"arrow-parens": true, | |
"block-spacing": "always", | |
"brace-style": [true, "1tbs"], | |
"class-name": true, | |
"comment-format": [true, "check-space"], | |
"curly": true, | |
"eofline": true, | |
"forin": true, | |
"indent": [true, "spaces"], | |
"interface-name": [true, "never-prefix"], | |
"jsdoc-format": true, | |
"jsx-alignment": true, | |
"jsx-curly-spacing": [true, "never"], | |
"jsx-no-lambda": true, | |
"jsx-no-multiline-js": false, | |
"jsx-no-string-ref": true, | |
"jsx-self-close": true, | |
"jsx-boolean-value": false, | |
"label-position": true, | |
"linebreak-style": [true, "LF"], | |
"max-classes-per-file": [true, 1], | |
"member-access": true, | |
"member-ordering": [true, { "order": "statics-first" }], | |
"new-parens": true, | |
"no-angle-bracket-type-assertion": true, | |
"no-any": true, | |
"no-arg": true, | |
"no-bitwise": true, | |
"no-conditional-assignment": true, | |
"no-consecutive-blank-lines": [true], | |
"no-console": [ | |
true, | |
"debug", | |
"info", | |
"log", | |
"time", | |
"timeEnd", | |
"trace" | |
], | |
"no-constant-condition": true, | |
"no-construct": true, | |
"no-control-regex": true, | |
"no-debugger": true, | |
"no-default-export": false, | |
"no-duplicate-case": true, | |
"no-empty": true, | |
"no-empty-character-class": true, | |
"no-eval": true, | |
"no-ex-assign": true, | |
"no-extra-boolean-cast": true, | |
"no-extra-semi": true, | |
"no-for-in-array": false, | |
"no-inner-declarations": [true, "functions"], | |
"no-internal-module": true, | |
"no-invalid-regexp": true, | |
"no-invalid-this": true, | |
"no-irregular-whitespace": true, | |
"no-multi-spaces": true, | |
"no-namespace": [true, "allow-declarations"], | |
"no-parameter-properties": false, | |
"no-reference": true, | |
"no-regex-spaces": true, | |
"no-require-imports": true, | |
"no-shadowed-variable": true, | |
"no-sparse-arrays": true, | |
"no-string-literal": true, | |
"no-switch-case-fall-through": true, | |
"no-trailing-whitespace": true, | |
"no-unexpected-multiline": false, | |
"no-unsafe-finally": true, | |
"no-unused-expression": true, | |
"no-use-before-declare": false, | |
"no-var-keyword": true, | |
"no-var-requires": true, | |
"object-curly-spacing": [true, "always"], | |
"object-literal-key-quotes": [true, "consistent-as-needed"], | |
"object-literal-shorthand": true, | |
"object-literal-sort-keys": false, | |
"one-line": [ | |
true, | |
"check-catch", | |
"check-finally", | |
"check-else", | |
"check-open-brace", | |
"check-whitespace" | |
], | |
"one-variable-per-declaration": [true, "ignore-for-loop"], | |
"only-arrow-functions": [true, "allow-declarations"], | |
"ordered-imports": [true], | |
"prefer-for-of": true, | |
"quotemark": [true, "single", "jsx-double", "avoid-escape"], | |
"radix": true, | |
"semicolon": [true, "always"], | |
"switch-default": true, | |
"trailing-comma": [true, { "singleline": "never", "multiline": "always" }], | |
"triple-equals": true, | |
"typedef": [false], | |
"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" | |
} | |
], | |
"use-isnan": true, | |
"valid-typeof": true, | |
"variable-name": [true, "ban-keywords", "check-format", "allow-pascal-case"], | |
"whitespace": [ | |
true, | |
"check-branch", | |
"check-decl", | |
"check-module", | |
"check-operator", | |
"check-separator", | |
"check-type", | |
"check-typecast" | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment