Skip to content

Instantly share code, notes, and snippets.

@morrisonbrett
Last active April 21, 2020 02:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save morrisonbrett/0447bd686bef41c89e165d3004432d7d to your computer and use it in GitHub Desktop.
Save morrisonbrett/0447bd686bef41c89e165d3004432d7d to your computer and use it in GitHub Desktop.
My super OCD "make TypeScript like C#" linting file
{
"rules": {
"align": [
true,
"parameters",
"statements"
],
"ban": false,
"class-name": true,
"comment-format": [
true,
"check-space"
],
"curly": true,
"eofline": true,
"forin": false,
"indent": [
true,
"spaces"
],
"interface-name": [false],
"jsdoc-format": true,
"label-position": true,
"max-line-length": [
true,
2048
],
"member-access": true,
"member-ordering": [false],
"no-any": false,
"no-arg": true,
"no-bitwise": true,
"no-conditional-assignment": true,
"no-consecutive-blank-lines": [true,2],
"no-console": [
true,
"log",
"debug"
],
"no-construct": false,
"no-debugger": true,
"no-duplicate-variable": true,
"no-empty": true,
"no-eval": true,
"no-inferrable-types": [false],
"no-internal-module": true,
"no-require-imports": false,
"no-shadowed-variable": true,
"no-string-literal": false,
"no-switch-case-fall-through": true,
"no-trailing-whitespace": true,
"no-var-keyword": true,
"no-var-requires": true,
"object-literal-sort-keys": false,
"one-line": [
true,
"check-open-brace",
"check-whitespace"
],
"prefer-const": true,
"quotemark": [
true,
"single",
"avoid-escape"
],
"radix": false,
"semicolon": [true],
"switch-default": false,
"trailing-comma": [false],
"triple-equals": [true],
"typedef": [
true,
"call-signature",
"parameter",
"property-declaration",
"member-variable-declaration"
],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
}
],
"variable-name": [
true,
"allow-leading-underscore",
"ban-keywords"
],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type",
"check-typecast"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment