---
source: crates/oxc_linter/src/tester.rs
---
  ⚠ eslint-plugin-promise(no-new-statics): Disallow calling `new` on a `Promise.resolve`
   ╭─[no_new_statics.tsx:1:1]
 1 │ new Promise.resolve()
   · ───
   ╰────
  help: Delete this code.

  ⚠ eslint-plugin-promise(no-new-statics): Disallow calling `new` on a `Promise.reject`
   ╭─[no_new_statics.tsx:1:1]
 1 │ new Promise.reject()
   · ───
   ╰────
  help: Delete this code.

  ⚠ eslint-plugin-promise(no-new-statics): Disallow calling `new` on a `Promise.all`
   ╭─[no_new_statics.tsx:1:1]
 1 │ new Promise.all()
   · ───
   ╰────
  help: Delete this code.

  ⚠ eslint-plugin-promise(no-new-statics): Disallow calling `new` on a `Promise.allSettled`
   ╭─[no_new_statics.tsx:1:1]
 1 │ new Promise.allSettled()
   · ───
   ╰────
  help: Delete this code.

  ⚠ eslint-plugin-promise(no-new-statics): Disallow calling `new` on a `Promise.any`
   ╭─[no_new_statics.tsx:1:1]
 1 │ new Promise.any()
   · ───
   ╰────
  help: Delete this code.

  ⚠ eslint-plugin-promise(no-new-statics): Disallow calling `new` on a `Promise.race`
   ╭─[no_new_statics.tsx:1:1]
 1 │ new Promise.race()
   · ───
   ╰────
  help: Delete this code.

  ⚠ eslint-plugin-promise(no-new-statics): Disallow calling `new` on a `Promise.resolve`
   ╭─[no_new_statics.tsx:3:13]
 2 │               var a = getA()
 3 │               return new Promise.resolve(a)
   ·                      ───
 4 │             }
   ╰────
  help: Delete this code.
