178 lines
3.8 KiB
JSON
178 lines
3.8 KiB
JSON
{
|
|
"defaultSeverity": "warning",
|
|
"extends": [
|
|
"tslint:all"
|
|
],
|
|
"jsRules": {
|
|
"align": [
|
|
true,
|
|
"elements",
|
|
"members",
|
|
"parameters",
|
|
"statements"
|
|
],
|
|
"comment-format": false,
|
|
"curly": [
|
|
true,
|
|
"as-needed"
|
|
],
|
|
"eofline": false,
|
|
"linebreak-style": false,
|
|
"trailing-comma": [
|
|
true,
|
|
{
|
|
"multiline": "never",
|
|
"singleline": "never"
|
|
}
|
|
],
|
|
"max-line-length": [
|
|
true,
|
|
140
|
|
],
|
|
"newline-before-return": false,
|
|
"quotemark": [
|
|
true,
|
|
"single"
|
|
],
|
|
"whitespace": [
|
|
true,
|
|
"check-decl",
|
|
"check-operator",
|
|
"check-separator",
|
|
"check-preblock",
|
|
"check-rest-spread"
|
|
]
|
|
},
|
|
"rules": {
|
|
"align": [
|
|
true,
|
|
"members",
|
|
"parameters",
|
|
"statements"
|
|
],
|
|
"array-type": [
|
|
true,
|
|
"array"
|
|
],
|
|
"await-promise": [true, "AxiosPromise"],
|
|
"comment-format": false,
|
|
"completed-docs": false,
|
|
"curly": [
|
|
true,
|
|
"as-needed"
|
|
],
|
|
"cyclomatic-complexity": false,
|
|
"eofline": false,
|
|
"file-name-casing": false,
|
|
"forin": false,
|
|
"increment-decrement": false,
|
|
"interface-name": false,
|
|
"interface-over-type-literal": false,
|
|
"linebreak-style": false,
|
|
"max-classes-per-file": false,
|
|
"max-line-length": [
|
|
true,
|
|
140
|
|
],
|
|
"member-access": [
|
|
true,
|
|
"no-public"
|
|
],
|
|
"member-ordering": false,
|
|
"newline-before-return": false,
|
|
"newline-per-chained-call": false,
|
|
"no-angle-bracket-type-assertion": false,
|
|
"no-bitwise": false,
|
|
"no-conditional-assignment": false,
|
|
"no-console": false,
|
|
"no-default-export": false,
|
|
"no-default-import": false,
|
|
"no-dynamic-delete": false,
|
|
"no-floating-promises": [true, "AxiosPromise"],
|
|
"no-implicit-dependencies": false,
|
|
"no-import-side-effect": [
|
|
true,
|
|
{
|
|
"ignore-module": "bootstrap/js/.*\\.js$"
|
|
}
|
|
],
|
|
"no-magic-numbers": false,
|
|
"no-namespace": false,
|
|
"no-non-null-assertion": false,
|
|
"no-parameter-properties": false,
|
|
"no-parameter-reassignment": false,
|
|
"no-string-literal": false,
|
|
"no-submodule-imports": [true, "lodash"],
|
|
"no-unused-variable": false,
|
|
"no-void-expression": false,
|
|
//covered by no-var-keyword and compiler
|
|
"no-use-before-declare": false,
|
|
//covered by no-require-imports
|
|
"no-var-requires": false,
|
|
"object-literal-sort-keys": false,
|
|
"object-literal-key-quotes": [
|
|
true,
|
|
"as-needed"
|
|
],
|
|
"one-variable-per-declaration": false,
|
|
"only-arrow-functions": [
|
|
true,
|
|
"allow-declarations"
|
|
],
|
|
"ordered-imports": true,
|
|
"prefer-function-over-method": [
|
|
true,
|
|
"allow-public"
|
|
],
|
|
"prefer-readonly": false,
|
|
"quotemark": [
|
|
true,
|
|
"single"
|
|
],
|
|
"return-undefined": false,
|
|
"semicolon": [
|
|
true,
|
|
"always",
|
|
"ignore-interfaces"
|
|
],
|
|
"space-before-function-paren": [
|
|
true,
|
|
"never"
|
|
],
|
|
"strict-boolean-expressions": false,
|
|
"strict-comparisons": false,
|
|
"switch-default": false,
|
|
"trailing-comma": [
|
|
true,
|
|
{
|
|
"multiline": "never",
|
|
"singleline": "never"
|
|
}
|
|
],
|
|
"type-literal-delimiter": false,
|
|
"typedef": [
|
|
//enable this fully once inference is properly supported: https://github.com/palantir/tslint/issues/711
|
|
true,
|
|
"call-signature",
|
|
"parameter",
|
|
"property-declaration"
|
|
],
|
|
"variable-name": [
|
|
true,
|
|
"ban-keywords",
|
|
"allow-leading-underscore"
|
|
],
|
|
"whitespace": [
|
|
true,
|
|
"check-decl",
|
|
"check-operator",
|
|
"check-separator",
|
|
"check-type",
|
|
"check-preblock",
|
|
"check-type-operator",
|
|
"check-rest-spread"
|
|
],
|
|
"vue-props": true
|
|
},
|
|
"rulesDirectory": ["./tslint"]
|
|
} |