Files
oxc-project__oxc/apps/oxlint/test/fixtures/plugin_name/output.snap.md
konh f302f4131e fix(linter): normalize oxlint jsPlugin prefixes (#23335)
Closes #22131

## Summary

- normalize `oxlint-plugin-*` names the same way as existing
`eslint-plugin-*` names
- keep Rust `normalize_plugin_name` and JS `normalizePluginName`
behavior in sync
- reject `oxlint-plugin-*` aliases as non-normalized plugin names
- add JS plugin fixtures for package-name, `meta.name`, and scoped
package normalization

## AI Assistance

This PR was prepared with AI assistance. I reviewed the generated
changes and test results, and I am responsible for the contribution.

Co-authored-by: xiaokhkh <10765730+xiaokhkh@users.noreply.github.com>
Co-authored-by: Cameron <cameron.clark@hey.com>
2026-06-15 10:46:58 +01:00

2.5 KiB

Exit code

1

stdout

  x @scope(rule): id: @scope/rule
   ,-[files/index.js:4:1]
 3 |  */
 4 | function f(foo, bar) {}
   : ^^^^^^^^^^^^^^^^^^^^^^^
   `----

  x @scope2(rule): id: @scope2/rule
   ,-[files/index.js:4:1]
 3 |  */
 4 | function f(foo, bar) {}
   : ^^^^^^^^^^^^^^^^^^^^^^^
   `----

  x @scope3/subplugin(rule): id: @scope3/subplugin/rule
   ,-[files/index.js:4:1]
 3 |  */
 4 | function f(foo, bar) {}
   : ^^^^^^^^^^^^^^^^^^^^^^^
   `----

  x @scope4/subplugin(rule): id: @scope4/subplugin/rule
   ,-[files/index.js:4:1]
 3 |  */
 4 | function f(foo, bar) {}
   : ^^^^^^^^^^^^^^^^^^^^^^^
   `----

  x js-jsdoc(rule): id: js-jsdoc/rule
   ,-[files/index.js:4:1]
 3 |  */
 4 | function f(foo, bar) {}
   : ^^^^^^^^^^^^^^^^^^^^^^^
   `----

  x js-jsdoc2(rule): id: js-jsdoc2/rule
   ,-[files/index.js:4:1]
 3 |  */
 4 | function f(foo, bar) {}
   : ^^^^^^^^^^^^^^^^^^^^^^^
   `----

  x no-name-alias(rule): id: no-name-alias/rule
   ,-[files/index.js:4:1]
 3 |  */
 4 | function f(foo, bar) {}
   : ^^^^^^^^^^^^^^^^^^^^^^^
   `----

  x no-name-alias2(rule): id: no-name-alias2/rule
   ,-[files/index.js:4:1]
 3 |  */
 4 | function f(foo, bar) {}
   : ^^^^^^^^^^^^^^^^^^^^^^^
   `----

  x plugin1-name-from-rule(rule): id: plugin1-name-from-rule/rule
   ,-[files/index.js:4:1]
 3 |  */
 4 | function f(foo, bar) {}
   : ^^^^^^^^^^^^^^^^^^^^^^^
   `----

  x plugin2-name-from-package(rule): id: plugin2-name-from-package/rule
   ,-[files/index.js:4:1]
 3 |  */
 4 | function f(foo, bar) {}
   : ^^^^^^^^^^^^^^^^^^^^^^^
   `----

  x plugin3-name-from-package(rule): id: plugin3-name-from-package/rule
   ,-[files/index.js:4:1]
 3 |  */
 4 | function f(foo, bar) {}
   : ^^^^^^^^^^^^^^^^^^^^^^^
   `----

  x plugin4-name-from-rule(rule): id: plugin4-name-from-rule/rule
   ,-[files/index.js:4:1]
 3 |  */
 4 | function f(foo, bar) {}
   : ^^^^^^^^^^^^^^^^^^^^^^^
   `----

  x plugin5-name-from-package(rule): id: plugin5-name-from-package/rule
   ,-[files/index.js:4:1]
 3 |  */
 4 | function f(foo, bar) {}
   : ^^^^^^^^^^^^^^^^^^^^^^^
   `----

  x plugin6-name-from-rule(rule): id: plugin6-name-from-rule/rule
   ,-[files/index.js:4:1]
 3 |  */
 4 | function f(foo, bar) {}
   : ^^^^^^^^^^^^^^^^^^^^^^^
   `----

  x jsdoc(require-param): Missing JSDoc `@param` declaration for function parameters.
   ,-[files/index.js:4:17]
 3 |  */
 4 | function f(foo, bar) {}
   :                 ^^^
   `----
  help: Add `@param` tag with name.

Found 0 warnings and 15 errors.
Finished in Xms on 1 file with 15 rules using X threads.

stderr