Sha256: fbfccdf8e6a0ecf2af0954d0af861fec256cad5deb2cc555029894e8654c2d0d

Contents?: true

Size: 1.56 KB

Versions: 43

Compression:

Stored size: 1.56 KB

Contents

'use strict'

module.exports = {
  rules: {
    'param-names': require('./rules/param-names'),
    'no-return-wrap': require('./rules/no-return-wrap'),
    'always-return': require('./rules/always-return'),
    'catch-or-return': require('./rules/catch-or-return'),
    'prefer-await-to-callbacks': require('./rules/prefer-await-to-callbacks'),
    'prefer-await-to-then': require('./rules/prefer-await-to-then'),
    'no-native': require('./rules/no-native'),
    'no-callback-in-promise': require('./rules/no-callback-in-promise'),
    'no-promise-in-callback': require('./rules/no-promise-in-callback'),
    'no-nesting': require('./rules/no-nesting'),
    'avoid-new': require('./rules/avoid-new'),
    'no-new-statics': require('./rules/no-new-statics'),
    'no-return-in-finally': require('./rules/no-return-in-finally'),
    'valid-params': require('./rules/valid-params')
  },
  rulesConfig: {
    'param-names': 1,
    'always-return': 1,
    'no-return-wrap': 1,
    'no-native': 0,
    'catch-or-return': 1
  },
  configs: {
    recommended: {
      rules: {
        'promise/always-return': 'error',
        'promise/no-return-wrap': 'error',
        'promise/param-names': 'error',
        'promise/catch-or-return': 'error',
        'promise/no-native': 'off',
        'promise/no-nesting': 'warn',
        'promise/no-promise-in-callback': 'warn',
        'promise/no-callback-in-promise': 'warn',
        'promise/avoid-new': 'off',
        'promise/no-new-statics': 'error',
        'promise/no-return-in-finally': 'warn',
        'promise/valid-params': 'warn'
      }
    }
  }
}

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
govuk_publishing_components-18.0.0 node_modules/eslint-plugin-promise/index.js
govuk_publishing_components-17.21.0 node_modules/eslint-plugin-promise/index.js
govuk_publishing_components-17.20.0 node_modules/eslint-plugin-promise/index.js
govuk_publishing_components-17.19.1 node_modules/eslint-plugin-promise/index.js
govuk_publishing_components-17.19.0 node_modules/eslint-plugin-promise/index.js
govuk_publishing_components-17.18.0 node_modules/eslint-plugin-promise/index.js
govuk_publishing_components-17.17.0 node_modules/eslint-plugin-promise/index.js
govuk_publishing_components-17.16.0 node_modules/eslint-plugin-promise/index.js
govuk_publishing_components-17.15.0 node_modules/eslint-plugin-promise/index.js
govuk_publishing_components-17.14.0 node_modules/eslint-plugin-promise/index.js
govuk_publishing_components-17.13.0 node_modules/eslint-plugin-promise/index.js
govuk_publishing_components-17.12.2 node_modules/eslint-plugin-promise/index.js
govuk_publishing_components-17.12.1 node_modules/eslint-plugin-promise/index.js
govuk_publishing_components-17.12.0 node_modules/eslint-plugin-promise/index.js
govuk_publishing_components-17.11.0 node_modules/eslint-plugin-promise/index.js
govuk_publishing_components-17.10.0 node_modules/eslint-plugin-promise/index.js
govuk_publishing_components-17.9.0 node_modules/eslint-plugin-promise/index.js
govuk_publishing_components-17.8.0 node_modules/eslint-plugin-promise/index.js
govuk_publishing_components-17.7.0 node_modules/eslint-plugin-promise/index.js
govuk_publishing_components-17.6.1 node_modules/eslint-plugin-promise/index.js