v8/tools/turbolizer/tslint.json
George Wort d5c6b928ad [turbolizer] Remove tslint:recommended so that presubmit can be run
TSLint has been deprecated and so the presubmit script will not
run because of tslint:recommended. Removing this allows the
explicit rules to be run but does not properly fix the use of
TSLint. Also fix the issues that do not pass the linter.

Bug: v8:7327
Change-Id: I9f463ba9520ee2caa4141b21b81fd15012afedff
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4085145
Reviewed-by: Nico Hartmann <nicohartmann@chromium.org>
Commit-Queue: George Wort <george.wort@arm.com>
Cr-Commit-Position: refs/heads/main@{#84725}
2022-12-08 11:16:29 +00:00

45 lines
1.3 KiB
JSON

{
"defaultSeverity": "error",
"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": []
}