Skip to content

Instantly share code, notes, and snippets.

@LimarenkoDenis
Last active April 24, 2018 09:11
Show Gist options
  • Save LimarenkoDenis/d8768a5cefd3e4e70d70f6ea93b8d0ad to your computer and use it in GitHub Desktop.
Save LimarenkoDenis/d8768a5cefd3e4e70d70f6ea93b8d0ad to your computer and use it in GitHub Desktop.
{
"jsRules": {
"class-name": true,
"no-console": [
true,
"log",
"debug",
"info",
"time",
"timeEnd",
"trace"
],
"no-debugger": true,
"no-arg": true,
"no-invalid-this": true,
"no-shadowed-variable": true,
"no-var-keyword": true,
"use-isnan": true,
"cyclomatic-complexity": [
true,
20
],
"max-classes-per-file": [
true,
1
],
"max-file-line-count": [
true,
400
],
"max-line-length": [
true,
120
],
"no-consecutive-blank-lines": [
true,
2
],
"no-default-export": true,
"prefer-const": true,
"array-type": [
true,
"array"
],
"no-conditional-assignment": true,
"curly": true,
"arrow-return-shorthand": [
true
],
"interface-name": [
true,
"always-prefix"
],
"no-angle-bracket-type-assertion": true,
"object-literal-shorthand": true,
"one-variable-per-declaration": [
true
],
"variable-name": [
true,
"ban-keywords",
"check-format",
"allow-leading-underscore",
"allow-trailing-underscore"
],
"comment-format": [
true,
"check-space"
],
"indent": [
true,
"spaces"
],
"align": [
true,
"parameters"
],
"no-eval": true,
"no-trailing-whitespace": true,
"no-unsafe-finally": true,
"one-line": [
true,
"check-open-brace",
"check-whitespace",
"check-catch",
"check-else",
"check-finally"
],
"quotemark": [
true,
"single"
],
"semicolon": [
true,
"always",
"ignore-bound-class-methods"
],
"triple-equals": [
true
],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type",
"check-module"
]
},
"rules": {
// TypeScript Specific
"member-access": [
true,
"check-accessor",
"check-constructor"
],
"member-ordering": [
true,
{
"order": [
"public-static-field",
"protected-static-field",
"private-static-field",
"public-instance-field",
"protected-instance-field",
"private-instance-field",
"constructor",
"public-instance-method",
"protected-instance-method",
"private-instance-method"
]
}
],
"no-any": true,
"no-empty-interface": true,
"no-internal-module": true,
"no-var-requires": false,
"typedef": [
true,
"call-signature",
"parameter",
"arrow-parameter",
"property-declaration",
"variable-declaration",
"member-variable-declaration"
],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
}
],
"class-name": true,
"no-console": [
true,
"log",
"debug",
"info",
"time",
"timeEnd",
"trace"
],
"no-debugger": true,
"no-arg": true,
"no-invalid-this": true,
"no-shadowed-variable": true,
"no-var-keyword": true,
"use-isnan": true,
"cyclomatic-complexity": [
true,
20
],
"max-classes-per-file": [
true,
1
],
"max-file-line-count": [
true,
400
],
"max-line-length": [
true,
120
],
"no-consecutive-blank-lines": [
true,
2
],
"no-default-export": true,
"prefer-const": true,
"array-type": [
true,
"array"
],
"no-conditional-assignment": true,
"curly": true,
"arrow-return-shorthand": [
true
],
"interface-name": [
true,
"always-prefix"
],
"no-angle-bracket-type-assertion": true,
"object-literal-shorthand": true,
"one-variable-per-declaration": [
true
],
"variable-name": [
true,
"ban-keywords",
"check-format",
"allow-leading-underscore",
"allow-trailing-underscore"
],
"comment-format": [
true,
"check-space"
],
"indent": [
true,
"spaces"
],
"align": [
true,
"parameters"
],
"no-eval": true,
"no-trailing-whitespace": true,
"no-unsafe-finally": true,
"one-line": [
true,
"check-open-brace",
"check-whitespace",
"check-catch",
"check-else",
"check-finally"
],
"quotemark": [
true,
"single"
],
"semicolon": [
true,
"always",
"ignore-bound-class-methods"
],
"triple-equals": [
true
],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type",
"check-module"
],
"ordered-imports": [
true,
{
"import-sources-order": "any"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment