Files
DefinitelyTyped/types/text-buffer/tslint.json
Glen M dad4c42dd7 Update the Atom type definitions. (#20146)
* Update the Atom type definitions.

* Atom: support additional dtslint rules. Minor fixes to definitions.

* Atom: enable unified signatures for dtslint.

* Atom: fix the scan and replace functions. Enable ban-types in dtslint.

* Atom: enable no-declare-current-package and no-single-declare-module.
2017-10-02 10:41:57 -07:00

39 lines
1.2 KiB
JSON

{
"extends": "dtslint/dt.json",
"rules": {
// Custom rules.
"class-name": true,
"indent": [true, "tabs"],
"jsdoc-format": true,
"linebreak-style": [true, "LF"],
"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
}
}