我为我的React项目设置了eslint(爱彼迎编码风格),它有“eslint-plugin-jsx-a11y”的依赖项,我不想在我当前的项目中使用。
我的问题是如何删除这个特定的插件“eslint-plugin-jsx-a11y”。
当我卸载“eslint-plugin-jsx-a11y”时,它会给出以下错误:
首先,您需要删除.eslintrc
上对插件(eslint-plugin-jsx-a11y
)的引用(这就是为什么卸载时eslint配置会给您一个错误):
extends
(如果您有的话)插件:jsx-a11y/reseconded
中搜索和删除。插件
中搜索和删除:jsx-a11y
。rules
中删除涉及jsx-a11y
的每个规则(例如:“jsx-a11y/rule-name”:2
)。npm uninstall eslint-plugin-jsx-a11y--save-dev
。ps:如果您有eslint-plugin-jsx-a11y
的disable
语句,请记住删除它(它们不再是必需的)
eslint-plugin-sql SQL linting rules for ESLint. In its current form, the plugin has been designed and tested to work with Postgres codebase. eslint-plugin-sql Installation Configuration Settings place
eslint-plugin-vue Official ESLint plugin for Vue.js �� Documentation See the official website. ⚓ Versioning Policy This plugin is following Semantic Versioning and ESLint's Semantic Versioning Policy.
eslint-plugin-node Additional ESLint's rules for Node.js �� Install & Usage $ npm install --save-dev eslint eslint-plugin-node Requires Node.js >=8.10.0 Requires ESLint >=5.16.0 Note: It recommends a
eslint-plugin-ember An ESLint plugin that provides a set of rules for Ember applications based on commonly known good practices. ❗️ Requirements ESLint >= 6 Node.js 10.* || 12.* || >= 14 �� Usage 1. I
eslint-plugin-wxml 为 lint 微信小程序 wxml 文件而开发的 eslint 插件,可使用 eslint 来检查微信小程序项目内的 wxml 代码 当开发者使用 VSCode 或者 Webstorm 时可以得到代码错误提示,目前支持的 lint 规则如下: 1. wxml/colon-style-event-binding 强制使用:冒号隔开时间绑定 2. wxml/emp
eslint-plugin-optimize-regex Optimize regex literals Installation You'll first need to install ESLint: npm i eslint --save-dev Next, install eslint-plugin-optimize-regex: npm install eslint-plugin-opt