oxc-project/oxc

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

Code / MessageTypeSeverityTags
Do not use wrapper object types.
validation error
Missing file extension in
validation error
Unexpected deeply nested ternary expression.
validation error
' ' is restricted from being used as an exported name.
validation warning lint, eslint, no-restricted-exports, es-modules, configuration, api-surface
Unused directive (no matching directives were found).
validation error
Missing lang attribute.
validation error
Do not assign `this` to
validation error
Relative imports before absolute imports are prohibited
validation error
Don't use ' ' escape sequence.
validation error
Should not have an empty title
validation warning jest, vitest, oxlint, testing, test-title, valid-title
Unexpected empty block statement surrounding arrow body.
validation error
Redundant `alt` attribute.
validation error
Do not use an object literal as default for parameter
validation error
Duplicate `@yields` tags.
validation warning jsdoc, generator, documentation, lint, oxlint
Missing JSDoc `@throws` type.
validation warning jsdoc, documentation, lint, oxlint
Use ` ()` instead of `new ()
validation error
Duplicate @property found.
validation error
`@implements` used on a non-constructor function
validation error
Use `Array#toReversed()` instead of `Array#reverse()`.
validation error
Enforce using function types instead of interfaces with…
validation error
Parameter ' ' is declared but only used as a type.
validation warning eslint, oxlint, unused-vars, parameters, typescript
Missing JSDoc `@returns` declaration for function.
validation error
Unexpected unnamed .
validation error
Enforce using `@ts-expect-error` over `@ts-ignore`
validation error
React Hook received a function whose dependencies are…
validation error
Unexpected multi string.
validation error
Use an object instead of a `class` with only `static`…
validation error
` ` cannot be called as a constructor.
validation error
Disallow calls to the `Object` constructor without an…
validation error
Elements with the ' ' interactive role must be focusable.
validation error
Missing JSDoc `@yields` description.
validation warning jsdoc, generator, documentation, lint, oxlint
Missing value for `lang` attribute
validation error
No empty blocks
validation error
Use `Array#toSorted()` instead of `Array#sort()`.
validation error
Don't use `process.exit()`
validation error
Duplicate `@returns` tags.
validation error
Expected block statement surrounding arrow body.
validation error
A form label must be associated with a control.
validation error
Import statements must come first
validation error
' :' is defined but never used.
validation warning eslint, oxlint, labels, dead-code
{message}
validation error
' ' is but never used.
validation warning eslint, oxlint, unused-vars, dead-code
attempt to grow `StringBuilder` beyond `isize::MAX` bytes
panic error
` ` must be accompanied by `onFocus` for accessibility.
validation error
Custom events are not defined.
validation error
React Hook has an unnecessary dependency: .
validation error
`defineEmits` has been called multiple times.
validation error
Exporting 'default' is restricted.
validation warning lint, eslint, no-restricted-exports, es-modules, configuration
Missing root type for @param.
validation error
Unused directive (no matching directives were found for ).
validation error
A form label must have accessible text.
validation error
Alignment count must be a non-zero number.
panic error
Expects the void tags to be empty of any content.
validation error
Missing JSDoc `@yields` type.
validation warning jsdoc, generator, documentation, lint, oxlint
Unexpected class with only a constructor.
validation warning typescript, lint, class, constructor, refactor
Unexpected class with only static properties.
validation warning typescript, lint, class, static, refactor
Reexporting named export as default is restricted.
validation warning lint, eslint, no-restricted-exports, es-modules, configuration
Do not use a triple slash reference for
validation error
Missing description in `@property` tag.
validation error
Missing JSDoc `@param` description.
validation error
Passing `1` as the `depth` argument is unnecessary.
validation error
React Hook has a complex expression in the dependency array.
validation error
' ' is imported but never used.
validation warning eslint, oxlint, unused-vars, imports, dead-code
Missing JSDoc `@param` type.
validation error
Assignment of parameter property is unnecessary
validation error
`lang` attribute must have a valid value.
validation error
line break count must be >= 1
panic error
Class cannot have method named `new`.
validation warning typescript, lint, class, naming
Unexpected braces in empty case clause.
validation error
Missing root description for @param.
validation error
Use `namespace` instead of `module` to declare custom…
validation error
Effect callbacks are synchronous to prevent race conditions.
validation error
Explicit enum values must only be literal values (string…
validation error
Missing `title` attribute for the `iframe` element.
validation error
Use `. ` when checking is zero.
validation error
Reexporting namespace as default is restricted.
validation warning lint, eslint, no-restricted-exports, es-modules, configuration
Unexpected default export of anonymous class
validation error
Assignment to member of namespace
validation error
Do not use chained assignment
validation error
Elements with the ' ' interactive role must be tabbable.
validation error
React Hook has a missing dependency
validation error
Do not nest ternary expressions.
validation error
Invalid property found
validation error
ObjectExpected
Expected a RegExp object
exception error
React hook depends on ` `, which changes every render
validation error
The `Function` type accepts any function-like value.
validation error
The use of `.todo` is not recommended.
validation error
Unexpected negated condition.
validation error
Components wrapped with `forwardRef` must have a `ref`…
validation error
constraining the generic type
validation error
Fast refresh only works when a file only exports…
validation error
Exporting named value as default is restricted.
validation warning lint, eslint, no-restricted-exports, es-modules, configuration
These overloads can be combined into one signature taking
validation error
Context definition is missing display name.
validation error
Missing ` ` element with captions inside ` ` or ` ` element
validation error
Use `. ` when checking is not zero.
validation error
Do not use ` ` as a type
validation error
Filename should be in
validation error
` ` should have an explicit delay argument.
validation error
Enforces a maximum number assertion calls in a test body.
validation error