Skip to content

Instantly share code, notes, and snippets.

@g4rcez
Created August 4, 2019 02:50
Show Gist options
  • Save g4rcez/1218bcfe10e930adf1e4f8aa0be91cf9 to your computer and use it in GitHub Desktop.
Save g4rcez/1218bcfe10e930adf1e4f8aa0be91cf9 to your computer and use it in GitHub Desktop.
{
"extends": [
"tslint-react",
"tslint-immutable",
"tslint-react-a11y"
],
"defaultSeverity": "error",
"linterOptions": {
"exclude": [
"*.js",
"*.d.ts",
"tslint/",
"src/serviceWorker.ts"
]
},
"rules": {
"align": {
"options": [
"parameters",
"statements"
],
"severity": "warn"
},
"array-type": {
"options": "array-simple"
},
"arrow-parens": true,
"arrow-return-shorthand": true,
"await-promise": true,
"class-name": true,
"curly": true,
"cyclomatic-complexity": {
"options": 15,
"severity": "warn"
},
"deprecation": {
"severity": "error"
},
"encoding": true,
"function-name": false,
"interface-name": false,
"interface-over-type-literal": false,
"jsx-boolean-value": false,
"jsx-no-lambda": false,
"jsx-no-multiline-js": false,
"jsx-wrap-multiline": false,
"max-line-length": {
"options": [
120
],
"severity": "warn"
},
"member-access": true,
"new-parens": true,
"newline-before-return": false,
"newline-per-chained-call": false,
"no-arg": true,
"no-banned-terms": true,
"no-bitwise": false,
"no-boolean-literal-compare": true,
"no-conditional-assignment": true,
"no-default-export": false,
"no-delete-expression": true,
"no-disable-auto-sanitization": true,
"no-document-domain": true,
"no-document-write": true,
"no-duplicate-imports": true,
"no-duplicate-parameter-names": true,
"no-duplicate-super": true,
"no-duplicate-switch-case": true,
"no-duplicate-variable": true,
"no-dynamic-delete": false,
"no-eval": true,
"no-exec-script": true,
"no-floating-promises": true,
"no-function-constructor-with-string-args": true,
"no-inferrable-types": true,
"no-misused-new": true,
"no-namespace": true,
"no-octal-literal": true,
"no-parameter-reassignment": true,
"no-reserved-keywords": false,
"no-return-await": true,
"no-shadowed-variable": true,
"no-string-based-set-immediate": true,
"no-string-based-set-interval": true,
"no-string-based-set-timeout": true,
"no-typeof-undefined": true,
"no-unnecessary-class": true,
"no-unnecessary-initializer": true,
"no-var-keyword": true,
"ordered-imports": false,
"possible-timing-attack": true,
"prefer-const": true,
"prefer-template": true,
"promise-function-async": true,
"quotemark": {
"options": "double",
"severity": "warn"
},
"radix": 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-lang": true,
"react-a11y-meta": true,
"react-a11y-props": true,
"react-a11y-proptypes": 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-hooks/exaustive-deps": false,
"react-iframe-missing-sandbox": true,
"react-no-dangerous-html": true,
"react-this-binding-issue": true,
"react-unused-props-and-state": true,
"restrict-plus-operands": true,
"semicolon": {
"options": [
"always",
"ignore-bound-class-methods"
],
"severity": "warning"
},
"switch-default": true,
"trailing-comma": {
"options": {
"multiline": "never",
"singleline": "never"
}
},
"triple-equals": {
"options": [
"allow-null-check"
]
},
"use-isnan": true,
"variable-name": {
"options": [
"ban-keywords",
"allow-pascal-case",
"check-format"
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment