mirror of
https://github.com/vale981/tridactyl
synced 2025-03-04 09:01:39 -05:00

This rule requires adding a new set of rules, tslint-etc. no-unused-declaration used to be available in tslint:recommended but was deprecated when --noUnusedVariables was added to typescript. The problem with using TypeScript's --noUnusedVariables is that it turns unused declarations into an error and prevents compilation, which isn't fun when you're just prototyping things.
40 lines
1.1 KiB
JSON
40 lines
1.1 KiB
JSON
{
|
|
"extends": ["tslint:recommended", "tslint-sonarts", "tslint-etc"],
|
|
"linterOptions": {
|
|
"exclude": [ "**/.*.generated.ts" ]
|
|
},
|
|
"rules": {
|
|
"align": false,
|
|
"arrow-parens": false,
|
|
"class-name": false,
|
|
"cognitive-complexity": false,
|
|
"curly": false,
|
|
"interface-name": false,
|
|
"jsdoc-format": false,
|
|
"max-classes-per-file": false,
|
|
"max-line-length": false,
|
|
"max-union-size": false,
|
|
"member-access": false,
|
|
"no-array-delete": false,
|
|
"no-big-function": false,
|
|
"no-commented-code": false,
|
|
"no-console": false,
|
|
"no-duplicate-string": false,
|
|
"no-empty": [true, "allow-empty-catch", "allow-empty-functions"],
|
|
"no-eval": false,
|
|
"no-extra-semicolon": false,
|
|
"no-shadowed-variable": false,
|
|
"no-string-throw": false,
|
|
"no-unsafe-finally": false,
|
|
"no-unused-declaration": true,
|
|
"object-literal-key-quotes": false,
|
|
"object-literal-sort-keys": false,
|
|
"only-arrow-functions": false,
|
|
"ordered-imports": false,
|
|
"prefer-const": [true, {"destructuring": "all"}],
|
|
"semicolon": false,
|
|
"trailing-comma": false,
|
|
"triple-equals": false,
|
|
"variable-name": false
|
|
}
|
|
}
|