@vincle/eslint-plugin
v0.10.0
Published
ESLint plugin for @vincle/core: static rendering safety
Downloads
309
Maintainers
Readme
@vincle/eslint-plugin
ESLint rules for server-side JSX with Vincle: catch unsupported React patterns, unsafe attributes and incompatible JSX types.
Install
bun add -D @vincle/eslint-plugin
pnpm add -D @vincle/eslint-plugin
npm install -D @vincle/eslint-pluginUsage
Add the recommended rules to your flat config alongside your JSX/TypeScript parser configuration:
// eslint.config.js
import vincle from "@vincle/eslint-plugin";
export default [vincle.configs.recommended];Rules
Rule names use the @vincle/ prefix. All are enabled as errors by the
recommended config, except no-unsafe-event-handlers (warning).
| Rule | Checks |
| ---------------------------- | ---------------------------------------------------------- |
| no-react-imports | React and React DOM imports |
| no-react-hooks | React hooks |
| no-unsafe-event-handlers | Inline handler strings and function-valued HTML attributes |
| no-javascript-urls | javascript: links |
| no-context | React context |
| no-ambiguous-html-children | Children plus dangerouslySetInnerHTML on a component |
| no-refs | React refs |
| no-global-jsx-namespace | Global JSX types instead of Vincle types |
Documentation · Rule implementations
MIT © Christophe Jean
