Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "defaultSeverity": "error",
- "jsRules": {},
- "rules": {
- "prettier": [true,".prettierrc"],
- "no-console":false,
- "quotemark": [true, "single", "avoid-escape"],
- "semicolon": [
- true,
- "always"
- ],
- "ordered-imports": false,
- "space-before-function-paren": false,
- "deprecation":true,
- "align":true,
- "arrow-parens":true,
- "adjacent-overload-signatures":true,
- "array-type": [true, "generic"],
- "arrow-return-shorthand": [true, "multiline"],
- "await-promise":true,
- "ban": [true,
- {"name": ["it", "skip"]},
- {"name": ["it", "only"]},
- {"name": ["it", "async", "skip"]},
- {"name": ["it", "async", "only"]},
- {"name": ["describe", "skip"]},
- {"name": ["describe", "only"]},
- {"name": "parseInt", "message": "tsstyle#type-coercion"},
- {"name": "parseFloat", "message": "tsstyle#type-coercion"},
- {"name": "Array", "message": "tsstyle#array-constructor"},
- {"name": ["*", "innerText"], "message": "Use .textContent instead. tsstyle#browser-oddities"}
- ],
- "ban-types": [true,
- ["Object", "Avoid using the `Object` type. Did you mean `object`?"],
- [
- "Function",
- "Avoid using the `Function` type. Prefer a specific function type, like `() => void`."
- ],
- ["Boolean", "Avoid using the `Boolean` type. Did you mean `boolean`?"],
- ["Number", "Avoid using the `Number` type. Did you mean `number`?"],
- ["String", "Avoid using the `String` type. Did you mean `string`?"],
- ["Symbol", "Avoid using the `Symbol` type. Did you mean `symbol`?"]
- ],
- "ban-comma-operator":true,
- "ban-ts-ignore": true,
- "binary-expression-operand-order":true,
- "class-name": true,
- "curly":true,
- "cyclomatic-complexity":true,
- "eofline":true,
- "no-for-in": true,
- "indent": [true, "spaces", 2],
- "interface-name": [true, "never-prefix"],
- "interface-over-type-literal": true,
- "member-ordering": [
- true,
- {
- "order": [
- "public-static-field",
- "public-instance-field",
- "public-constructor",
- "private-static-field",
- "private-instance-field",
- "private-constructor",
- "public-instance-method",
- "protected-instance-method",
- "private-instance-method"
- ],
- "alphabetize": true
- }
- ],
- "no-angle-bracket-type-assertion":true,
- "no-any":true,
- "whitespace":true,
- "no-import-side-effect": true,
- "no-inferrable-types": true,
- "no-internal-module": true,
- "no-parameter-reassignment": true,
- "only-arrow-functions": true,
- "no-var-requires": true,
- "no-this-assignment": true,
- "prefer-for-of": true,
- "promise-function-async": true,
- "label-position": true,
- "no-async-without-await": true,
- "no-bitwise": true,
- "no-conditional-assignment": true,
- "no-duplicate-switch-case": true,
- "no-empty": true,
- "no-floating-promises": true,
- "no-implicit-dependencies": true,
- "no-invalid-template-strings": true,
- "no-promise-as-boolean": false,
- "no-return-await": true,
- "no-unnecessary-class": true,
- "no-unsafe-finally": true,
- "no-unused-expression": true,
- "no-var-keyword": true,
- "prefer-conditional-expression": [true, "check-else-if"],
- "prefer-object-spread": true,
- "no-default-export": true,
- "no-require-imports": true,
- "prefer-const": true,
- "comment-format": [true, "check-space", "check-uppercase", "allow-trailing-lowercase"],
- "no-unnecessary-callback-wrapper": true,
- "no-unnecessary-qualifier": true,
- "one-line": [true, "check-catch", "check-finally", "check-else","check-open-brace","check-whitespace"],
- "one-variable-per-declaration": true,
- "prefer-function-over-method": true,
- "prefer-switch": true,
- "prefer-while": true,
- "switch-final-break": [true, "always"],
- "unnecessary-else": true,
- "no-magic-numbers": true,
- "variable-name": {
- "options": [
- "ban-keywords",
- "check-format",
- "allow-pascal-case"
- ]
- },
- "newline-before-return": true,
- "new-parens": true,
- "no-consecutive-blank-lines": true,
- "no-irregular-whitespace": true
- },
- "rulesDirectory": ["tslint-plugin-prettier"],
- "extends": [
- "tslint:latest",
- "tslint-config-prettier"
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement