oxc-project/oxc

Documented errors, page 3 of 12. Back to oxc-project/oxc

Code / MessageTypeSeverityTags
Missing "key" prop for element in iterator.
validation error react, jsx, list-key, iterator, map, reconciliation, oxlint, lint
Regular expression literal is unnecessarily wrapped within…
validation warning eslint, oxlint, regex, redundant-code, lint
Components should use `createReactClass` instead of an…
validation error
`defineProps` is referencing locally declared variables.
validation error vue, script-setup, compiler-macro, defineprops, lint
Insufficient memory to create fixed-size allocator pool
panic warning vue, oxlint, lint, props, default-value, defineprops
out of memory
panic warning vue, oxlint, lint, sfc, default-export, definecomponent
Unexpected assignment to `exports`.
validation error node, commonjs, exports, bug, oxlint
Do not use @ts- because it alters compilation errors.
validation warning typescript, ts-comment, suppression, oxlint, lint, restriction
Enforce using `each` rather than manual loops
validation warning jest, vitest, oxlint, testing, parameterized-tests, static-analysis
Expected a function .
validation warning eslint, oxlint, style, function-declaration, function-expression
No duplicate props allowed. The prop
validation error react, jsx, duplicate-props, props, oxlint, lint
'Disallow non-null assertions in the left operand of a…
validation warning typescript, lint, non-null-assertion, nullish-coalescing
Do not use an empty interface declaration.
validation warning typescript, lint, interface, type-safety
Unexpected in " " computed property.
validation error vue, oxlint, lint, computed, async, reactivity
Avoid nesting promises.
validation warning promise, async, lint, code-style, oxlint
Do not use spaces with `console. ` parameters
validation info console, logging, style, whitespace, oxlint
Don't use a dangling dot in the number.
validation warning lint, oxlint, unicorn, number-literal, style, autofix
Snapshot hint must be a string literal.
validation warning jest, vitest, oxlint, testing, snapshots, api-misuse, static-analysis
The value of the member
validation error
Unexpected access to `exports`.
validation info node, commonjs, exports, style, oxlint
Function parameter(s) use the `done` argument
console warning lint, jest, testing, async, callback, oxlint
Promise executor functions should not be `async`.
validation error lint, promise, async, unhandled-rejection, oxlint
Use `Number. ` instead of the global
validation error
Unexpected `void` operator
validation warning lint, eslint, oxlint, void-operator, javascript
< > is forbidden.
validation error
`import()` type annotations are forbidden.
validation warning typescript, lint, imports, type-import, oxlint
Prefer `Date.now()` over `new Date().
validation error
Snapshot is missing a hint.
validation warning jest, vitest, oxlint, testing, snapshots, static-analysis
`beforeRouteEnter` does NOT have access to `this` component…
validation error vue, vue-router, lint, navigation-guards, this-binding
capacity overflow
panic warning vue, oxlint, lint, slots, vue3-migration, render
Prefer ` ` over
validation warning oxlint, unicorn, unicode, strings, es2015, i18n
Redundant Boolean call
validation error eslint, oxlint, lint, boolean, dead-code
Unexpected in computed function.
validation error vue, oxlint, lint, computed, async, reactivity
Avoid unnecessary use of .
validation warning lint, eslint, oxlint, javascript, function-calls
' ' is a compiler macro and can't be imported outside of `…
validation error vue, script-setup, lint, compiler-macros, imports
"key" prop must be placed before any
validation warning react, jsx, list-key, spread-props, jsx-transform, oxlint, lint
Prefer default parameters over reassignment for
validation error
Prefer using ` .prototype. `.
validation error
Expected a `break` statement before `case`.
validation error eslint, oxlint, lint, switch, control-flow
Left-hand side of `&&` operator has no effect.
validation error oxlint, oxc, conditions, logic-bug, javascript, static-analysis
Unnecessary async function wrapper
validation warning jest, vitest, oxlint, testing, async-await, promises, static-analysis
useState call does not follow the [thing, setThing] naming…
validation error
ARIA used where native HTML could suffice.
validation warning jsx-a11y, accessibility, alt-text, oxlint, lint, react
Unexpected control character
validation warning lint, regex, control-characters, invisible-characters, oxlint
` ` should not have an explicit delay of `0`.
validation error
Only files containing JSX may use the extension '.
validation error
Accessor pair and should be grouped.
validation warning eslint, oxlint, getter, setter, accessors, style
Fast refresh only works when a file has exports. Move your…
validation error
Unexpected duplicate `super()`.
validation error eslint, oxlint, class, super, duplicate-call
Assign instance to a variable before exporting as module…
validation warning lint, oxlint, imports, default-export, style, eslint-plugin-import
`data` property in component must be a function.
validation error vue, data, lint, options-api, shared-state
Invalid fix capabilities. Did you mean 'suggestion'?
panic error vue, oxlint, lint, emits, validator, control-flow
Missing `href` attribute for the `a` element.
validation error jsx-a11y, accessibility, anchor, href, react, lint, oxlint
The ref's value `.current` is accessed directly in the…
validation error
JSX not allowed in files with extension '.
validation error
Disallow string literals in JSX attributes
validation warning react, jsx, i18n, string-literals, attributes, restriction, oxlint, lint
Prefer `classList.toggle()` over `classList.add()` and…
validation warning oxlint, unicorn, dom, css, classlist, autofix
Unexpected aliasing of 'this' to local variable.
validation error
Unexpected assignment to 'exports'.
validation error node, commonjs, exports, bug, oxlint
Use "@ts-expect-error" instead of @ts-ignore, as…
validation warning typescript, ts-ignore, ts-expect-error, suppression, oxlint, lint
Block is unnecessary.
validation warning lint, javascript, blocks, dead-code, style
Labeled statement is not allowed
validation warning lint, javascript, labels, control-flow, style
Prefer `jest.mocked()` over `fn as jest.Mock`.
validation warning lint, jest, typescript, mocking, type-cast, oxlint
This generator function does not have `yield`
validation warning eslint, oxlint, generators, lint
Unexpected object literal comparison.
validation error oxlint, oxc, equality, javascript, logic-bug, static-analysis
Missing call to `super()` in constructor.
validation warning oxlint, lint, unicorn, errors, classes, constructor
Unexpected ' ' comment
validation warning lint, eslint, oxlint, comments, todo, code-hygiene
Value must be set for boolean attribute
validation error
Change to `throw new TypeError(...)`
validation error vue, oxlint, lint, watch, watcheffect, async, setup, composition-api
Could not find the reuseWorker option in
exception error vue, oxlint, lint, imports, deep-import, autofix
Inconsistent assert usage.
validation warning oxlint, lint, unicorn, nodejs, assert, testing
Modules should not be imported multiple times in the same…
validation warning lint, oxlint, imports, duplicate-imports, autofix, style
An iframe element is missing a sandbox attribute
validation error
`defineProps` has been called multiple times.
validation error vue, script-setup, compiler-macro, defineprops, lint, duplicate-call
Prefer `Blob# ()` over `FileReader# (blob)`.
validation warning oxlint, unicorn, dom, blob, async, file-api
Empty object binding pattern
validation warning eslint, destructuring, oxlint, lint, correctness
Name " " is reserved in HTML.
validation warning vue, naming, lint, html, reserved-names
Shorthand form for React fragments is preferred.
validation error
Require a message for
validation warning jest, vitest, assertions, testing, oxlint, lint
Function declared in a loop contains unsafe references to…
validation warning lint, javascript, closures, loops, var-scope, correctness
Static HTML elements with event handlers require a role.
validation warning jsx-a11y, react, accessibility, event-handlers, aria-roles, lint
Use the 'v' flag.
validation warning eslint, oxlint, regex, unicode, lint
Expected instead of
validation warning lint, oxlint, imports, commonjs, esm, module-system, migration
Implied eval. Consider passing a function instead of a…
validation warning eslint, oxlint, lint, security, eval, timers
Invalid group length in numeric value.
validation warning oxlint, unicorn, style, numeric-separators, readability, autofix
' ' is a compiler macro and doesn't need to be imported.
validation warning vue, script-setup, lint, compiler-macros, imports
Prefer `Math. (x)` over
validation error
Prefer `Math.trunc()` over instead of
validation error
Use Unicode escapes instead of hexadecimal escapes.
validation info strings, unicode, regex, style, oxlint
`model` definition is deprecated. You may use the Vue…
validation warning vue, oxlint, lint, v-model, vue3, migration, compat
Snapshot is too long.
validation warning jest, vitest, oxlint, testing, snapshots, config
Unexpected newline between function name and open…
validation error eslint, oxlint, no-unexpected-multiline, asi, semicolons, parsing
Expected an error object to be thrown
validation error eslint, oxlint, no-throw-literal, errors, throw, exceptions
Expected to call `super()`.
validation error eslint, oxlint, class, super, constructor, runtime-error
Unexpected alias
validation warning jest, vitest, oxlint, testing, matchers, alias, autofix
Do not spread accumulators in Array.prototype.reduce()
validation warning oxlint, oxc, performance, reduce, javascript, static-analysis
Enforce `test` and `it` usage conventions
validation warning jest, vitest, style, consistency, oxlint, lint
` ` is not a recommended font-display value.
validation warning nextjs, performance, fonts, core-web-vitals, lint
Do not assign to imported bindings
validation error eslint, oxlint, lint, modules, imports, assignment
React hook requires an effect callback.
validation error