---
source: crates/oxc_linter/src/tester.rs
expression: no_new_symbol
---
  ⚠ eslint(no-new-symbol): Disallow new operators with the Symbol object
   ╭─[no_new_symbol.tsx:1:1]
 1 │ var foo = new Symbol('foo');
   ·           ───
   ╰────
  help: Symbol is not intended to be used with the new operator, but to be called as a function. Consider removing the new operator.

  ⚠ eslint(no-new-symbol): Disallow new operators with the Symbol object
   ╭─[no_new_symbol.tsx:1:1]
 1 │ function bar() { return function Symbol() {}; } var baz = new Symbol('baz');
   ·                                                           ───
   ╰────
  help: Symbol is not intended to be used with the new operator, but to be called as a function. Consider removing the new operator.


