Skip to content

Instantly share code, notes, and snippets.

@satya164
Created December 20, 2018 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save satya164/5d761ded17694a852321839a6a6a3b47 to your computer and use it in GitHub Desktop.
Save satya164/5d761ded17694a852321839a6a6a3b47 to your computer and use it in GitHub Desktop.
My TSLint config
{
"extends": ["tslint:recommended", "tslint-config-prettier"],
"rulesDirectory": ["tslint-plugin-prettier", "tslint-microsoft-contrib"],
"rules": {
"prettier": true,
"deprecation": true,
"interface-over-type-literal": false,
"member-access": [true, "no-public"],
"no-default-export": false,
"no-floating-promises": true,
"no-for-in-array": true,
"no-inferred-empty-object-type": true,
"no-parameter-reassignment": false,
"no-redundant-jsdoc": false,
"no-unbound-method": [true, "ignore-static"],
"no-unnecessary-type-assertion": true,
"no-unsafe-any": true,
"no-void-expression": false,
"promise-function-async": false,
"object-literal-sort-keys": false,
"ordered-imports": [true, { "grouped-imports": true }],
"strict-boolean-expressions": [
true,
"allow-null-union",
"allow-undefined-union",
"allow-mix",
"allow-boolean-or-undefined",
"allow-number"
],
"strict-type-predicates": true,
"use-default-type-parameter": true,
"no-constant-condition": true,
"no-control-regex": true,
"no-delete-expression": 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-bind": true,
"no-unnecessary-field-initialization": true,
"no-unnecessary-override": true,
"no-with-statement": true,
"non-literal-require": true,
"prefer-array-literal": false,
"promise-must-complete": 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-has-required-aria-props": true,
"react-a11y-role-supports-aria-props": true,
"react-a11y-role": true,
"react-a11y-tabindex-no-positive": true,
"react-a11y-titles": true,
"react-anchor-blank-noopener": true,
"react-iframe-missing-sandbox": true,
"react-this-binding-issue": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment