Created
September 8, 2016 15:50
-
-
Save paulryan/fbbeaf15a741e50c3a737008e92feba4 to your computer and use it in GitHub Desktop.
SharePoint Framework: The tslint.json to use with the TSLint VS Code extension. Add the file to the root of your src folder.
This file contains 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
{ | |
"rules": { | |
// Following not supported by tslint - breaks the linter! | |
// "export-name": false, | |
// "no-duplicate-case": true, | |
// "no-function-expression": true, | |
// "no-unnecessary-semicolons": true, | |
// "no-unused-imports": true, | |
// "no-use-before-declare": true, | |
// "no-with-statement": true, | |
// "use-named-parameter": true, | |
// "valid-typeof": true, | |
// "prefer-const": true, | |
// "a11y-role": true, | |
// "member-ordering": [false], | |
// "no-constant-condition": [false], | |
"class-name": false, | |
"forin": false, | |
"label-position": false, | |
"label-undefined": false, | |
"member-access": true, | |
"no-arg": false, | |
"no-console": [true, "log", "error"], | |
"no-construct": false, | |
"no-duplicate-key": false, | |
"no-duplicate-variable": true, | |
"no-eval": false, | |
"no-internal-module": true, | |
"no-shadowed-variable": true, | |
"no-switch-case-fall-through": true, | |
"no-unused-expression": true, | |
"no-unused-variable": true, | |
"no-unreachable": true, | |
"semicolon": [true, "always"], | |
"typedef": [true, "call-signature", "parameter", "member-variable-declaration", "property-declaration"], | |
"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" | |
} | |
], | |
"variable-name": false, | |
"whitespace": [false], | |
"no-constructor-vars": true, | |
"comment-format": [true, "check-space"], | |
"curly": false, | |
"indent": [false], | |
"interface-name": [true, "always-prefix"], | |
"max-line-length": [true, 180], | |
"no-any": false, | |
"no-bitwise": false, | |
"no-consecutive-blank-lines": true, | |
"no-debugger": false, | |
"no-empty": true, | |
"no-null-keyword": false, | |
"no-string-literal": false, | |
"no-trailing-whitespace": false, | |
"no-var-keyword": true, | |
"one-line": [true, "check-open-brace"], | |
"quotemark": [true, "double", "jsx-double", "avoid-escape"], | |
"radix": false, | |
"triple-equals": true, | |
"trailing-comma": [true, {"multiline": "never", "singleline": "never"}], | |
"object-literal-sort-keys": false | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment