oxc-project/oxc

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

Code / MessageTypeSeverityTags
Combine this with the previous
validation warning oxlint, eslint, style, variables, declaration
Do not add `then` to an object.
validation error
Number method .toFixed() should have an argument
validation error
Reexporting 'default' export is restricted.
validation warning lint, eslint, no-restricted-exports, es-modules, configuration
Property in `$slots` should be used as function.
validation error
Unexpected `eslint-disable` comment that does not specify…
validation error
Unexpected use of ' '.
validation warning lint, eslint, no-restricted-globals, globals, configuration
Do not use `new Array(singleArgument)`.
validation error
Expected to return a value in render function.
validation error
Missing the `targetOrigin` argument.
validation error
This element does not support ARIA roles, states, or…
validation error
Unexpected `oxlint-disable` comment that does not specify…
validation error
Unexpected use of `with` statement.
validation warning lint, eslint, oxlint, with-statement, legacy, javascript
Array type using ' < >' is forbidden for simple types. Use…
validation info typescript, oxlint, style, types, autofix, array-type
Headings must have content and the content must be…
validation error
is but only used as a type.
validation warning eslint, oxlint, unused-vars, typescript, type-only
Timeout must be a number.
validation error
Use ` ` instead of ` `.
validation error
Assignment to property of function parameter
validation error
Multiple CommonJS exports; consolidate all exports into a…
validation error
Require local Test Context for concurrent snapshot tests
validation error
Return statement should not be used in Promise executor.
validation error
Unexpected default export of anonymous function
validation error
Compare with `undefined` directly instead of using `typeof`.
validation error
Defaults are not permitted.
validation error
Invalid `typeof` comparison value.
validation error lint, oxlint, eslint, typeof, correctness, typo
Move ` ` inside the block statement.
validation error
Prefer `Reflect.apply()` over `Function#apply()`.
validation error
The file is a test file, but its name does not match the…
validation error
Do not import modules using an absolute path
validation error
Do not use ` ` elements to navigate between Next.js pages.
validation warning nextjs, routing, performance, lint
The '__proto__' property is deprecated
validation error
Unexpected block statement surrounding arrow body.
validation error
Use type based declaration instead of runtime declaration
validation error
Elements with `aria-activedescendant` must be tabbable.
validation error
TS5112
tsconfig.json is present but will not be loaded if files are specified on…
validation error
` ` is not a valid value for `autocomplete`.
validation error
Pass the error message to `super()` instead of setting…
validation error
This test should have either
validation error
Unexpected regional indicator in character class.
validation error
Missing JSDoc `@param` declaration for function parameters.
validation error
Assignment to function parameter
validation error
Expected to return a true value in
validation error
Missing braces in case clause.
validation error
Unsafe arithmetic operation on optional chaining
validation warning eslint, oxlint, optional-chaining, nan, arithmetic
Do not use a reference value as the fill value.
validation error
Missing default export.
validation error
Using `new Function` or `Function` is not allowed.
validation error
Don't use `Function` as a type
validation warning typescript, oxlint, lint, ban-types, function-type, type-safety
Export statements should appear at the end of the file
validation warning lint, oxlint, import-plugin, style, esm, file-organization
` ` is not a function and cannot be called
validation error
Passing ` ` as the `end` argument is unnecessary.
validation error
Rule name must be present for rule diagnostics
panic error
This assigned value is not used in subsequent statements.
validation warning eslint, oxlint, dead-store, dataflow, unused-code
Call is nested too deeply. Maximum allowed is
validation error
Do not use an object literal as default
validation error
Test options object is missing a `timeout` property.
validation error
Do not use ` ` as a constructor
validation error
Invalid tag name found.
validation error
Unexpected nested ternary expression without parentheses.
validation error
Do not export `then`.
validation error
Function component is not
validation error
Prefer using a top-level type-only import instead of inline…
validation warning lint, oxlint, import-plugin, typescript, esm, style
Setter cannot return a value
validation warning lint, eslint, no-setter-return, accessors, possible-bug
Test has no assertions
validation error
Custom events are defined in both `defineEmits` and `export…
validation error
Expected to return a boolean value in
validation error
Use runtime declaration instead of type based declaration
validation error
Assign call result to a variable before exporting as module…
validation error
` ` is not a constructor
validation error
File path must be present for rule diagnostics
panic error
rule documentation must be specified either via doc…
exception error
Unexpected `await` on a non-Promise value
validation error
Unnecessary braces in case clause.
validation error
Checking equality with NaN will always return false
validation error lint, oxlint, eslint, nan, correctness, floating-point, operators
Comparison with NaN will always return false
validation error lint, oxlint, eslint, nan, correctness, floating-point, operators
File has too many dependencies
validation error
Type assertions should be done using `toBeTypeOf`.
validation error
`vi.setConfig()` is missing a `testTimeout` property.
validation error
Assign arrow function to a variable before exporting as…
validation error
Missing JSDoc `@throws` description.
validation warning jsdoc, documentation, lint, oxlint
Mixing of `@access` with `@public`, `@private`…
validation error
Timeout must not be negative.
validation error
Do not use `null` literals
validation error
Prefer `Math.min()` and `Math.max()` over ternaries for…
validation error
Unused directive (no problems were reported from ).
validation error
Use `String(new Date())` instead of `Date()`
validation error
Multiple named export declarations; consolidate all named…
validation error
Specify type parameter for
validation error
Do not use 'new' for side effects.
validation error
Elements with ARIA roles must use a valid, non-abstract…
validation error
Should not have leading or trailing spaces
validation warning jest, vitest, oxlint, testing, test-title, whitespace, valid-title
Expect requires at least
validation warning jest, vitest, oxlint, testing, arguments, valid-expect
Prefer `Date.now()` over `new Date()`
validation error
Checking for NaN in `case` clause will never match
validation error lint, oxlint, eslint, nan, correctness, switch, control-flow
Do not add `then` to a class.
validation error
Component must be the default export.
validation error
Do not use AMD `require` and `define` calls.
validation error
Assign object to a variable before exporting as module…
validation error
Do not use `Array#forEach`
validation error