简体   繁体   English

babel-eslint vs eslint-plugin-babel vs eslint-plugin-react?

[英]babel-eslint vs eslint-plugin-babel vs eslint-plugin-react?

What is the difference between the libraries? 这些库之间有什么区别?

  • babel-eslint is a parser that allows you to use ESLint with code that is supported by Babel (ES6+ features, flow types, etc.). babel-eslint是一个解析器,允许您将ESLint与Babel支持的代码一起使用(ES6 +功能,流类型等)。 ESLint on it's own only supports ES6, JSX and object rest/spread. ESLint自己只支持ES6,JSX和对象休息/传播。 Anything beyond that, requires babel-eslint . 除此之外的任何事情都需要babel-eslint
  • eslint-plugin-babel is a plugin that fixes/adds a few rules that work with ES7 and beyond features. eslint-plugin-babel是一个插件,修复/添加一些适用于ES7及其他功能的规则。
  • eslint-plugin-react is a plugin that adds a bunch of rules specific to React applications. eslint-plugin-react是一个插件,它添加了一系列特定于React应用程序的规则。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 eslint-plugin-react是否需要eslint的同行? - eslint-plugin-react requires a peer of eslint? 没有eslint插件反应的ESLint + Airbnb - ESLint + Airbnb without eslint-plugin-react ESLint eslint-plugin-react箭头功能 - ESLint eslint-plugin-react arrow functions eslint-plugin-react没有找到规则 - eslint-plugin-react does not find a rule eslint / eslint-plugin-react:找不到.jsx文件 - eslint/eslint-plugin-react:not finding .jsx files “babel-eslint”不能让我安装反应 - "babel-eslint" can't let me install react 错误:无法加载在“.eslintrc”中声明的解析器“babel-eslint”:在 create-react-app 中找不到模块“babel-eslint” - Error: Failed to load parser 'babel-eslint' declared in '.eslintrc': Cannot find module 'babel-eslint' in create-react-app eslint-plugin-react/require-render-return 用于功能组件 - eslint-plugin-react/require-render-return for functional components 警告:在 React 18.2.0 之上运行 eslint 时,“eslint-plugin-react 设置”中未指定 React 版本 - Warning: React version not specified in 'eslint-plugin-react settings' while running eslint on top of React 18.2.0 处理“无法加载在‘.eslintrc’中声明的插件‘react’:找不到模块‘eslint-plugin-react’”ESLint 错误 - Dealing with "Failed to load plugin 'react' declared in '.eslintrc': Cannot find module 'eslint-plugin-react'" ESLint error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM