96 строки
2.8 KiB
JSON
96 строки
2.8 KiB
JSON
{
|
|
"rulesDirectory": ["node_modules/tslint-microsoft-contrib"],
|
|
"rules": {
|
|
"indent": false,
|
|
"semicolon": [
|
|
true,
|
|
"always"
|
|
],
|
|
"chai-prefer-contains-to-index-of": true,
|
|
"chai-vague-errors": true,
|
|
"export-name": true,
|
|
"function-name": true,
|
|
"import-name": true,
|
|
"informative-docs": true,
|
|
"insecure-random": true,
|
|
"jquery-deferred-must-complete": true,
|
|
"max-func-body-length": [
|
|
true,
|
|
100,
|
|
{
|
|
"ignore-parameters-to-function-regex": "^describe$"
|
|
}
|
|
],
|
|
"mocha-avoid-only": true,
|
|
"mocha-no-side-effect-code": true,
|
|
"mocha-unneeded-done": true,
|
|
"no-backbone-get-set-outside-model": true,
|
|
"no-banned-terms": true,
|
|
"no-constant-condition": true,
|
|
"no-control-regex": true,
|
|
"no-cookies": true,
|
|
"no-delete-expression": true,
|
|
"no-disable-auto-sanitization": true,
|
|
"no-document-domain": true,
|
|
"no-document-write": true,
|
|
"no-exec-script": true,
|
|
"no-for-in": true,
|
|
"no-function-expression": true,
|
|
"no-http-string": [
|
|
true,
|
|
"http://www.example.com/?.*",
|
|
"http://localhost:?.*"
|
|
],
|
|
"no-inner-html": true,
|
|
"no-invalid-regexp": true,
|
|
"no-jquery-raw-elements": true,
|
|
"no-octal-literal": true,
|
|
"no-regex-spaces": true,
|
|
"no-relative-imports": false,
|
|
"no-single-line-block-comment": true,
|
|
"no-string-based-set-immediate": true,
|
|
"no-string-based-set-interval": true,
|
|
"no-string-based-set-timeout": true,
|
|
"no-suspicious-comment": true,
|
|
"no-typeof-undefined": true,
|
|
"no-unnecessary-field-initialization": true,
|
|
"no-unnecessary-local-variable": true,
|
|
"no-unnecessary-override": true,
|
|
"no-unnecessary-semicolons": true,
|
|
"no-unsupported-browser-code": true,
|
|
"no-useless-files": true,
|
|
"no-with-statement": true,
|
|
"non-literal-fs-path": true,
|
|
"non-literal-require": true,
|
|
"possible-timing-attack": true,
|
|
"prefer-array-literal": true,
|
|
"prefer-type-cast": false,
|
|
"promise-must-complete": true,
|
|
"react-a11y-accessible-headings": true,
|
|
"react-a11y-anchors": true,
|
|
"react-a11y-aria-unsupported-elements": true,
|
|
"react-a11y-event-has-role": true,
|
|
"react-a11y-image-button-has-alt": true,
|
|
"react-a11y-img-has-alt": true,
|
|
"react-a11y-input-elements": true,
|
|
"react-a11y-lang": true,
|
|
"react-a11y-meta": true,
|
|
"react-a11y-no-onchange": true,
|
|
"react-a11y-props": true,
|
|
"react-a11y-proptypes": true,
|
|
"react-a11y-required": true,
|
|
"react-a11y-role": true,
|
|
"react-a11y-role-has-required-aria-props": true,
|
|
"react-a11y-role-supports-aria-props": true,
|
|
"react-a11y-tabindex-no-positive": true,
|
|
"react-a11y-titles": true,
|
|
"react-anchor-blank-noopener": true,
|
|
"react-iframe-missing-sandbox": true,
|
|
"react-no-dangerous-html": true,
|
|
"react-this-binding-issue": true,
|
|
"react-unused-props-and-state": true,
|
|
"underscore-consistent-invocation": true,
|
|
"use-named-parameter": true,
|
|
"use-simple-attributes": true
|
|
}
|
|
} |