All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.l10n.javascript.rules.eslint.promise.json Maven / Gradle / Ivy

There is a newer version: 10.20.0.29356
Show newest version
[
  {
    "key": "promise/catch-or-return",
    "name": "Enforces the use of catch() on un-returned promises",
    "description": "See description of ESLint rule promise/catch-or-return at the eslint-plugin-promise website."
  },
  {
    "key": "promise/no-return-wrap",
    "name": "Avoid wrapping values in Promise.resolve or Promise.reject when not needed",
    "description": "See description of ESLint rule promise/no-return-wrap at the eslint-plugin-promise website."
  },
  {
    "key": "promise/param-names",
    "name": "Enforce consistent param names when creating new promises",
    "description": "See description of ESLint rule promise/param-names at the eslint-plugin-promise website."
  },
  {
    "key": "promise/always-return",
    "name": "Return inside each then() to create readable and reusable Promise chains",
    "description": "See description of ESLint rule promise/always-return at the eslint-plugin-promise website."
  },
  {
    "key": "promise/no-native",
    "name": "In an ES5 environment, make sure to create a Promise constructor before using",
    "description": "See description of ESLint rule promise/no-native at the eslint-plugin-promise website."
  },
  {
    "key": "promise/no-nesting",
    "name": "Avoid nested then() or catch() statements",
    "description": "See description of ESLint rule promise/no-nesting at the eslint-plugin-promise website."
  },
  {
    "key": "promise/no-promise-in-callback",
    "name": "Avoid using promises inside of callbacks",
    "description": "See description of ESLint rule promise/no-promise-in-callback at the eslint-plugin-promise website."
  },
  {
    "key": "promise/no-callback-in-promise",
    "name": "Avoid calling cb() inside of a then() (use nodeify instead)",
    "description": "See description of ESLint rule promise/no-callback-in-promise at the eslint-plugin-promise website."
  },
  {
    "key": "promise/avoid-new",
    "name": "Avoid creating new promises outside of utility libs (use pify instead)",
    "description": "See description of ESLint rule promise/avoid-new at the eslint-plugin-promise website."
  },
  {
    "key": "promise/no-new-statics",
    "name": "Avoid calling new on a Promise static method",
    "description": "See description of ESLint rule promise/no-new-statics at the eslint-plugin-promise website."
  },
  {
    "key": "promise/no-return-in-finally",
    "name": "Disallow return statements in finally()",
    "description": "See description of ESLint rule promise/no-return-in-finally at the eslint-plugin-promise website."
  },
  {
    "key": "promise/valid-params",
    "name": "Ensures the proper number of arguments are passed to Promise functions",
    "description": "See description of ESLint rule promise/valid-params at the eslint-plugin-promise website."
  },
  {
    "key": "promise/prefer-await-to-then",
    "name": "Prefer await to then() for reading Promise values",
    "description": "See description of ESLint rule promise/prefer-await-to-then at the eslint-plugin-promise website."
  },
  {
    "key": "promise/prefer-await-to-callbacks",
    "name": "Prefer async/await to the callback pattern",
    "description": "See description of ESLint rule promise/prefer-await-to-callbacks at the eslint-plugin-promise website."
  }
]




© 2015 - 2024 Weber Informatics LLC | Privacy Policy