UNPKG

palinode

Version:

node callback-based flow control utility library

262 lines (260 loc) 9.56 kB
'use strict'; module.exports = { env: { browser: false, jquery: false, mocha: true, node: true, es6: true }, root: true, globals: { AggregateDoesNotExistError: true, AggregateOperationError: true, DuplicateCommandScheduledError: true, EventSaveTransactionError: true, FailureSavingEventError: true, GetSnapshotError: true, InvalidCreateAttemptByFriendlyId: true, InvalidCreateAttempt: true, InvalidParentError: true, InvalidPublishAttempt: true, InvalidSetFriendlyIdAttempt: true, InvalidVersionHashError: true, Promise: true, SchemaValidationError: true }, rules: { 'accessor-pairs': 'error', 'array-bracket-spacing': ['error', 'never'], 'array-callback-return': 'error', 'arrow-body-style': ['error', 'as-needed'], 'arrow-parens': 'error', 'arrow-spacing': ['error', {before: true, after: true}], 'block-scoped-var': 'warn', 'block-spacing': ['error', 'always'], 'brace-style': ['error', '1tbs', {allowSingleLine: true}], 'callback-return': 'off', 'camelcase': ['error', {properties: 'never'}], 'capitalized-comments': 'off', 'class-methods-use-this': 'warn', 'comma-dangle': 'error', 'comma-spacing': 'error', 'comma-style': ['error', 'last'], 'complexity': ['error', 30], 'computed-property-spacing': 'error', 'consistent-return': 0, 'consistent-this': 'off', 'constructor-super': 'error', 'curly': ['error', 'multi-line', 'consistent'], 'default-case': 'error', 'dot-location': ['error', 'property'], 'dot-notation': 'error', 'eol-last': 'error', 'eqeqeq': ['error', 'smart'], 'func-call-spacing': ['error', 'never'], 'func-name-matching': ['error', 'always'], 'func-names': 'off', 'func-style': 'off', 'generator-star-spacing': 'error', 'global-require': 'off', 'guard-for-in': 'off', 'handle-callback-err': 'off', 'id-blacklist': 'off', 'id-length': 'off', 'id-match': 'off', 'indent': ['error', 4, {SwitchCase: 1, MemberExpression: 1}], 'init-declarations': 'off', 'key-spacing': ['error', {beforeColon: false, afterColon: true}], 'keyword-spacing': [ 'error', { overrides: { if: {after: false}, else: {before: true}, while: {before: true}, catch: {before: true} } } ], 'line-comment-position': 'off', 'linebreak-style': 'error', 'lines-around-comment': 'off', 'lines-around-directive': 'error', 'max-depth': ['warn', 5], 'max-len': ['off', 180, {ignoreComments: true}], 'max-lines': 'off', 'max-nested-callbacks': 'error', 'max-params': ['error', 5], 'max-statements-per-line': ['error', {max: 3}], 'max-statements': 'off', 'multiline-ternary': 'off', 'new-cap': 'error', 'new-parens': 'error', 'newline-after-var': 'off', 'newline-before-return': 'off', 'newline-per-chained-call': ['error', {ignoreChainWithDepth: 5}], 'no-alert': 'error', 'no-array-constructor': 'error', 'no-bitwise': 'off', 'no-caller': 'warn', 'no-case-declarations': 'error', 'no-catch-shadow': 'error', 'no-class-assign': 'error', 'no-cond-assign': ['error', 'except-parens'], 'no-confusing-arrow': ['error', {allowParens: true}], 'no-console': 'error', 'no-const-assign': 'error', 'no-constant-condition': 'error', 'no-continue': 'off', 'no-control-regex': 'error', 'no-debugger': 'error', 'no-delete-var': 'error', 'no-div-regex': 'warn', 'no-dupe-args': 'error', 'no-dupe-class-members': 'error', 'no-dupe-keys': 'error', 'no-duplicate-case': 'error', 'no-duplicate-imports': 'error', 'no-else-return': 'error', 'no-empty-character-class': 'error', 'no-empty-function': 'off', 'no-empty-pattern': 'error', 'no-empty': ['warn', {allowEmptyCatch: true}], 'no-eq-null': 'off', 'no-eval': 'error', 'no-ex-assign': 'warn', 'no-extend-native': 'warn', 'no-extra-bind': 'warn', 'no-extra-boolean-cast': 'warn', 'no-extra-label': 'error', 'no-extra-parens': 'off', 'no-extra-semi': 'error', 'no-fallthrough': 'warn', 'no-floating-decimal': 'error', 'no-global-assign': 'warn', 'no-implicit-coercion': 'warn', 'no-implicit-globals': 'off', 'no-implied-eval': 'warn', 'no-inline-comments': 'off', 'no-invalid-regexp': 'error', 'no-invalid-this': 'warn', 'no-irregular-whitespace': 'error', 'no-iterator': 'error', 'no-label-var': 'error', 'no-labels': 'warn', 'no-lone-blocks': 'warn', 'no-lonely-if': 'error', 'no-loop-func': 'error', 'no-magic-numbers': ['off', {ignoreArrayIndexes: true, ignore: [0, 1]}], 'no-mixed-operators': 'error', 'no-mixed-requires': 'warn', 'no-mixed-spaces-and-tabs': 'error', 'no-multi-spaces': 'error', 'no-multi-str': 'warn', 'no-multiple-empty-lines': 'error', 'no-negated-condition': 'warn', 'no-nested-ternary': 'error', 'no-new-func': 'warn', 'no-new-object': 'error', 'no-new-require': 'error', 'no-new-symbol': 'error', 'no-new-wrappers': 'error', 'no-obj-calls': 'error', 'no-octal-escape': 'error', 'no-octal': 'error', 'no-param-reassign': 'off', 'no-path-concat': 'warn', 'no-plusplus': 'off', 'no-process-env': 'off', 'no-process-exit': 'off', 'no-redeclare': 'error', 'no-regex-spaces': 'warn', 'no-restricted-globals': 'off', 'no-restricted-modules': 'off', 'no-return-assign': ['error', 'except-parens'], 'no-return-await': 'error', 'no-script-url': 'error', 'no-self-assign': 'error', 'no-self-compare': 'error', 'no-sequences': 'error', 'no-shadow-restricted-names': 'error', 'no-shadow': ['warn', {allow: ['done', 'err', 'error', 'callback']}], 'no-sparse-arrays': 'warn', 'no-sync': 'off', 'no-template-curly-in-string': 'error', 'no-this-before-super': 'error', 'no-throw-literal': 'error', 'no-trailing-spaces': 'error', 'no-undef-init': 'warn', 'no-undef': 'warn', 'no-undefined': 'off', 'no-underscore-dangle': 'off', 'no-unexpected-multiline': 'warn', 'no-unmodified-loop-condition': 'warn', 'no-unneeded-ternary': 'error', 'no-unreachable': 'error', 'no-unsafe-finally': 'error', 'no-unsafe-negation': 'error', 'no-unused-expressions': 'off', 'no-unused-labels': 'error', 'no-unused-vars': 'error', 'no-use-before-define': 'error', 'no-useless-call': 'error', 'no-useless-computed-key': 'error', 'no-useless-concat': 'warn', 'no-useless-constructor': 'error', 'no-useless-escape': 'warn', 'no-useless-rename': 'error', 'no-useless-return': 'warn', 'no-var': 'error', 'no-void': 'warn', 'no-warning-comments': 'off', 'no-whitespace-before-property': 'error', 'no-with': 'error', 'object-curly-newline': ['off', {multiline: true}], 'object-curly-spacing': 'off', 'object-property-newline': 'off', 'object-shorthand': 'off', 'one-var-declaration-per-line': 'off', 'one-var': ['error', 'never'], 'operator-assignment': 'error', 'operator-linebreak': ['error', 'after'], 'padded-blocks': 'off', 'prefer-arrow-callback': ['off', {allowNamedFunctions: true}], 'prefer-const': 'warn', 'prefer-numeric-literals': 'warn', 'prefer-reflect': 'off', 'prefer-spread': 'off', 'prefer-template': 'error', 'quote-props': ['error', 'as-needed'], 'quotes': ['error', 'single'], 'radix': 'error', 'require-await': 'error', 'require-jsdoc': 'off', 'require-yield': 'error', 'rest-spread-spacing': 'error', 'semi-spacing': ['error', {before: false, after: true}], 'semi': ['error', 'always'], 'sort-imports': 'off', 'sort-keys': 'off', 'sort-vars': 'off', 'space-before-blocks': ['error', 'always'], 'space-before-function-paren': ['error', 'never'], 'space-in-parens': ['error', 'never'], 'space-infix-ops': 'error', 'space-unary-ops': 'error', 'spaced-comment': 'error', 'strict': 'error', 'symbol-description': 'warn', 'template-curly-spacing': 'error', 'unicode-bom': 'error', 'use-isnan': 'error', 'valid-typeof': 'error', 'vars-on-top': 'off', 'wrap-iife': 'error', 'wrap-regex': 'error', 'yield-star-spacing': 'error', 'yoda': 'error' } };