This ESLint plugin enforces theRules of Hooks. It is a part of theHooks APIfor React. Installation Note: If you're using Create React App, please usereact-scripts>= 3 instead of adding it directly. Assuming you already have ESLint installed, run: ...
This ESLint plugin is a modified version of React's official hooks plugin. This provides a new rule called "exhaustive-deps-signals" that is intended to be used instead of React's "exhaustive-deps" if you use @preact/signals-react in your project.You...
132 - "eslint-plugin-react-compiler": "19.0.0-beta-63e3235-20250105", 133 - "eslint-plugin-react-hooks": "^5.1.0", 132 + "eslint-plugin-react-compiler": "19.0.0-beta-bafa41b-20250307", 133 + "eslint-plugin-react-hooks": "^5.2.0", 134 134 "eslint-plugin-testing-libr...
👋 Coming over from eslint/eslint#18093: ESLint is migrating to a new "flat config" format that will be the default in ESLint v9. It doesn't look like eslint-plugin-react-hooks has documented support yet. But, based on searching around (e...
的GitHub仓库地址是:eslint-plugin-react-hooks。 以下是一些关于该仓库的详细信息: 仓库位置: eslint-plugin-react-hooks 是React 项目的一个子包,位于 React 项目的 packages/eslint-plugin-react-hooks 目录下。 主要功能: 这个ESLint 插件主要用于强制执行 React 的 Hooks 规则,确保你的 React 代码遵循 React...
eslint-plugin-react-hooks facebook83.1mMIT5.2.0 ESLint rules for React Hookseslint, eslint-plugin, eslintplugin, react readme React· React is a JavaScript library for building user interfaces. Declarative: React makes it painless to create interactive UIs. Design simple views for each state...
eslint-plugin-prettier: prettier 的格式化规则集成到 eslint 中,让 eslint 可以识别 prettier 的不规范写法,从而提示警告或者错误 配置prettier 集成到 eslint 中 此处也可以结合文档进行配置:https://github.com/prettier/eslint-plugin-prettier 安装完成后,需要让 eslint 集成 prettier 的这些规则,让 eslint 可...
Name: plugin:homer0/jsdoc React A configuration for React projects, based on the react and react-hooks plugins. It extends from the browser configuration as a base, then adds plugin:react/recommended and plugin:react-hooks/recommended, and a few extra rules based on my experience. Svelte Spec...
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库:https://github.com/eslint/eslint main 克隆/下载 git config --global user.name userName git config --global user.email userEmail 分支84 标签379 Josh Goldberg ✨feat: support TypeScript syntax in no-usel...557a0d27天前 ...
询问用户当前项目的类型(是 JavaScript 还是 TypeScript、是 React 还是 Vue)根据项目类型写 .eslintrc.js 文件根据项目类型安装所需依赖(比如 vue 需要 eslint-plugin-vue)在 package.json 的 scripts 中写入 "lint": "eslint src test --fix"核心代码如下:const path = require('path');const fs = ...