mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Add definitions for atom-mocha-test-runner. * Remove the editorconfig. * Atom: remove editorconfigs, linebreak-style, and all lint disables.
39 lines
1.2 KiB
JSON
39 lines
1.2 KiB
JSON
{
|
|
"extends": "dtslint/dt.json",
|
|
"rules": {
|
|
// Custom rules.
|
|
"await-promise": [true, "CancellablePromise"],
|
|
"class-name": true,
|
|
"indent": [true, "tabs"],
|
|
"jsdoc-format": true,
|
|
"max-line-length": [true, 100],
|
|
"quotemark": [true, "double", "avoid-escape"],
|
|
"trailing-comma": [true, {
|
|
"multiline": { "objects": "always", "arrays": "always", "functions": "never" },
|
|
"singleline": { "objects": "never", "arrays": "never", "functions": "never" }
|
|
}],
|
|
"whitespace": [
|
|
true,
|
|
"check-branch",
|
|
"check-decl",
|
|
"check-operator",
|
|
"check-module",
|
|
"check-separator",
|
|
"check-type",
|
|
"check-typecast",
|
|
"check-rest-spread",
|
|
"check-preblock"
|
|
],
|
|
// Soon to be defaults.
|
|
"arrow-return-shorthand": [true, "multiline"],
|
|
"no-any": true,
|
|
"no-floating-promises": true,
|
|
"no-unbound-method": true,
|
|
"no-unsafe-any": true,
|
|
"number-literal-format": true,
|
|
"restrict-plus-operands": true,
|
|
"return-undefined": true,
|
|
"switch-final-break": true
|
|
}
|
|
}
|