UNPKG

inactivity-countdown-timer

Version:

A plain JS (Typescript) module that will countdown and timeout when users are inactive/idle.

168 lines 3.87 kB
{ "rules": { "align": [ true, "parameters", "arguments", "statements" ], "ban": [ true, [ "_", "forEach" ], [ "_", "each" ], [ "$", "each" ], [ "angular", "forEach" ] ], "class-name": true, "comment-format": [ true, "check-space", "check-lowercase" ], "curly": true, "eofline": true, "forin": true, "indent": [ true, "spaces" ], "interface-name": [ true, "always-prefix" ], "jsdoc-format": true, "label-position": true, "label-undefined": true, "max-line-length": [ true, 140 ], "member-access": true, "member-ordering": [ true, { "order": "fields-first" } ], "new-parens": true, "no-angle-bracket-type-assertion": true, "no-any": false, "no-arg": true, "no-bitwise": true, "no-conditional-assignment": true, "no-consecutive-blank-lines": false, "no-console": [ true, "debug", "info", "time", "timeEnd", "trace" ], "no-construct": true, "no-constructor-vars": false, "no-debugger": true, "no-default-export": true, "no-duplicate-key": true, "no-duplicate-variable": true, "no-empty": true, "no-eval": true, "no-inferrable-types": false, "no-internal-module": true, "no-invalid-this": [ true, "check-function-in-method" ], "no-null-keyword": true, "no-reference": true, "no-require-imports": false, // webpack needs require currently "no-shadowed-variable": true, "no-string-literal": true, "no-switch-case-fall-through": true, "no-trailing-whitespace": true, "no-unreachable": true, "no-unused-expression": true, "no-unused-variable": true, "no-use-before-declare": true, "no-var-keyword": true, "no-var-requires": false, // webpack needs require currently "object-literal-sort-keys": false // directive declaration makes more sense no alphabetically , "one-line": [ true, "check-open-brace", "check-catch", "check-else", "check-finally", "check-whitespace" ], "one-variable-per-declaration": [true, "ignore-for-loop" ], "quotemark": [ true, "single", "avoid-escape" ], // angular docs seem to use single quotemarks. So lets go with that. "radix": true, "semicolon": [true, "always"], "switch-default": true, "trailing-comma": [ true, { "multiline": "always", "singleline": "never" } ], "triple-equals": [ true, "allow-null-check", "allow-undefined-check" ], "typedef": [ true, "call-signature", "parameter", "arrow-parameter", "property-declaration", "variable-declaration", "member-variable-declaration" ], "typedef-whitespace": [ true, { "call-signature": "nospace", "index-signature": "nospace", "parameter": "nospace", "property-declaration": "nospace", "variable-declaration": "nospace" }, { "call-signature": "space", "index-signature": "space", "parameter": "space", "property-declaration": "space", "variable-declaration": "space" } ], "use-isnan": true, "use-strict": [ false, "check-module", "check-function" ], // typescript 1.8 automatically uses strict for modules. "variable-name": [ true, "check-format", "allow-leading-underscore", "ban-keywords", "allow-pascal-case" // our service are PascalCase ], "whitespace": [ true, "check-branch", "check-decl", "check-operator", "check-separator", "check-type" ] } }