UNPKG

safe

Version:

Starting from version 0.4.0 safejs implements almost all functions of [Async](https://github.com/caolan/async) and can transparently replace it. For asyncjs functions library adds its error trap capabilities and also contain some optimizations and speed i

104 lines (103 loc) 3.44 kB
{ "env": { "node": true, "mocha": true, "amd": true, "es6": true, "shared-node-browser": true }, "parserOptions": { "ecmaVersion": 2020, "ecmaFeatures" : { "impliedStrict": true } }, "plugins": ["no-inferred-method-name","sonarjs"], "extends": ["eslint:recommended"], "rules": { "arrow-spacing": ["warn"], "comma-spacing": ["warn"], "key-spacing": ["warn"], "keyword-spacing": ["warn"], "space-infix-ops": ["warn"], "object-shorthand": ["warn"], "space-before-blocks": ["warn"], "block-spacing": ["warn"], "brace-style": ["warn"], "indent": ["warn", "tab", { "SwitchCase": 1 } ], "linebreak-style": [ "error", "unix" ], "array-callback-return": [1, { "allowImplicit": true }], "no-console": 0, "block-scoped-var": 1, "comma-dangle": [2, "never"], "constructor-super": 2, "quotes": [0, "double"], "no-unused-vars": [1, {"vars": "all", "args": "none"}], "handle-callback-err": 1, "no-mixed-spaces-and-tabs": 2, "no-undef": 2, "for-direction": 2, "func-name-matching": 2, "guard-for-in": 2, "prefer-rest-params": 2, "prefer-spread": 2, "semi": [1, "always"], "no-class-assign": 2, "no-constant-condition": 2, "no-constructor-return": 2, "no-control-regex": 2, "no-delete-var": 2, "no-dupe-args": 2, "no-dupe-keys": 2, "no-dupe-else-if": 2, "no-duplicate-imports": 2, "no-empty": 1, "no-extra-boolean-cast": 1, "no-extra-semi": 2, "no-func-assign": 2, "no-inner-declarations": 1, "no-invalid-regexp": 2, "no-irregular-whitespace": 1, "no-obj-calls": 2, "no-new-require": 2, "no-this-before-super": 2, "no-prototype-builtins": 2, "no-restricted-syntax": 1, "no-return-assign": 1, "no-setter-return": 2, "no-useless-computed-key": 1, "no-async-promise-executor": 1, "no-multi-spaces": 1, "no-new-wrappers": 2, "no-regex-spaces": 2, "no-sparse-arrays": 1, "no-unexpected-multiline": 1, "no-unreachable": 1, "no-unneeded-ternary": 1, "no-return-await": 2, "no-else-return": 2, "no-throw-literal": 1, "no-template-curly-in-string": 2, "no-use-before-define": ["error", { "functions": false }], "no-unmodified-loop-condition": 2, "use-isnan": 1, "valid-typeof": 1, "wrap-regex": 1, "no-process-exit": 0, "require-atomic-updates": 0, "sonarjs/no-all-duplicated-branches": 2, "sonarjs/no-extra-arguments": 2, "sonarjs/no-identical-conditions": 2, "sonarjs/no-identical-expressions": 2, "sonarjs/no-one-iteration-loop": 2, "sonarjs/no-use-of-empty-return-value": 2, "sonarjs/no-useless-catch": 2, "sonarjs/prefer-single-boolean-return": 2, "sonarjs/no-redundant-boolean": 2, "sonarjs/no-inverted-boolean-check": 2, "sonarjs/no-element-overwrite": 2, "sonarjs/no-collection-size-mischeck": 2, "sonarjs/no-same-line-conditional": 2, "sonarjs/no-unused-collection": 2 } }