v8/tools/turbolizer/tslint.json
Sigurd Schneider 994dc1f249 [turbolizer] Enable even more tslint checks
- 'let' instead of 'var', and prefer 'const'
 - Prefer for-of over indexed interation
 - Variable names should be 'camel-case' or
   all-caps snake-case.
 - Only one variable declaration per line

Change-Id: I645dd2333d6d9a993f24c29121f5f156249f1b71
Notry: true
Bug: v8:7327
Reviewed-on: https://chromium-review.googlesource.com/c/1405320
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#58761}
2019-01-12 15:47:35 +00:00

46 lines
1.3 KiB
JSON

{
"defaultSeverity": "error",
"extends": "tslint:recommended",
"jsRules": {},
"rules": {
"curly": [true, "ignore-same-line"],
"quotemark": [false, "double", "avoid-escape", "avoid-template"],
"only-arrow-functions": [false],
"no-var-keyword": true,
"prefer-const": [true],
"max-line-length": [false, {
"limit": 80
}],
"ordered-imports": false,
"array-type": [true, "generic"],
"semicolon": true,
"member-access": false,
"object-literal-shorthand": false,
"object-literal-key-quotes": [true, "as-needed"],
"object-literal-sort-keys": false,
"space-before-function-paren": [true, {
"anonymous": "always"
}],
"triple-equals": false,
"no-string-throw": false,
"no-empty": [true, "allow-empty-catch", "allow-empty-functions"],
"trailing-comma": false,
"member-ordering": false,
"no-string-literal": false,
"arrow-parens": [true, "ban-single-arg-parens"],
"no-console": false,
"interface-name": false,
"no-bitwise": false,
"no-shadowed-variable": false,
"prefer-for-of": true,
"align": true,
"arrow-return-shorthand": true,
"max-classes-per-file": false,
"variable-name": true,
"forin": false,
"one-variable-per-declaration": true,
"no-consecutive-blank-lines": true
},
"rulesDirectory": []
}