Skip to content

manic-js/plugin-lint

Repository files navigation

Manic

npm version Bun License: GPL-3.0

Official Manic JS plugin for native Oxlint custom rules.


Manic is a high-performance React framework built exclusively for Bun.

It ships with a custom build pipeline, first-class plugin architecture, and production-ready DX for local development, deployment, and AI-native workflows.

Features

Provides ESLint-compatible AST rules running natively within Oxlint:

  • manic/no-raw-img-element: Banned raw <img> tag in favor of <Image /> component.
  • manic/no-raw-anchor-element: Banned raw <a> tag in favor of <Link /> component.
  • manic/image-needs-dimensions: Requirements for layout stability (both width and height properties) on <Image /> component.

Install

bun add @manicjs/lint

Usage

Configure it inside .oxlintrc.json:

{
  "jsPlugins": [
    "@manicjs/lint"
  ],
  "rules": {
    "manic/no-raw-img-element": "warn",
    "manic/no-raw-anchor-element": "warn",
    "manic/image-needs-dimensions": "warn"
  }
}

License

GPL-3.0

About

Official Manic JS plugin for native Oxlint custom rules.

Resources

License

Code of conduct

Stars

Watchers

Forks

Contributors