cost 357 ms
ESLint 8.31.0“错误:无法加载在‘.eslintrc.js » eslint-config-standard’中声明的插件‘import’:找不到模块‘array.prototype.flatmap’” - ESLint 8.31.0 "Error: Failed to load plugin 'import' declared in '.eslintrc.js » eslint-config-standard': Cannot find module 'array.prototype.flatmap"

一般来说,我是 Node 和 npm 的新手,但我很确定我已经掌握了在本地安装软件包等方面的知识。 但是,我一直在尝试让 eslint 工作一段时间,尽管尝试了多个不同的测试项目,但它总是失败并显示相同的错误消息。 它一直说找不到模块“array.prototype.flatmap”(下面提供的图 ...

Eslint 插件“反应”在 eslintrc.json >> eslint-config-airbnb 之间发生冲突 - Eslint Plugin "react"was conflicted between .eslintrc.json >> eslint-config-airbnb

当我使用 yarn start 启动应用程序时,我在终端中收到以下评论。 我猜这是 airbnb 插件,当我在 eslintrc.json 中将其注释掉时,它会造成一些混乱,应用程序会编译,我可以在其中工作。 我应该删除 airbnb 插件还是有其他解决方案来修复它? 我已经遇到了这样的错误,但实际 ...

使用 Airbnb-Typescript-ESLint-Config 命名私有字段和冲突的成员排序 - Naming private fields and conflicted member ordering with the Airbnb-Typescript-ESLint-Config

我在我的 Angular 项目中添加了 Prettier 和 Airbnb-TypeScript-Styleguide 的 eslint,它说你不应该有任何悬空的下划线。 我该如何命名通过 getter 和 setter 访问的私有字段? 例子: 如果我将_isEnabled重命名为isEnable ...

更漂亮的 eslint:使用 'prettier' 或 'plugin:prettier/recommended' 和 React Typescript airbnb eslint 配置 - Prettier eslint: use 'prettier' or 'plugin:prettier/recommended' with React Typescript airbnb eslint config

在我的 React Typescript 项目中,我将prettier 、 eslint-plugin-prettier prettier 和eslint-config-prettier更新到了最新版本。 我也在使用eslint-config-airbnb-typescript 。 我在eslin ...

在已经使用和扩展“eslint-config-airbnb”的同时,我是否必须在 eslintrc.js 配置中使用和“扩展”eslint-plugin-react - Do I have to use and 'extend' eslint-plugin-react in eslintrc.js config while using and extending 'eslint-config-airbnb' already

我在我的 React typescript 项目中使用 airbnb 更新了我的 Eslint 规则。 我的项目不使用“create-reac-app”。 所以我必须扩展airbnb因为我也在使用和扩展airbnb-typescript 。 eslint-plugin-react和eslint- ...

如何修复 Eslint 错误:在我的 React Typescript 项目中,“默认”被限制用作导出名称 - How to fix Eslint error: 'default' is restricted from being used as an exported name in my React Typescript project

我正在更新我的 React 项目中的 eslint 规则。 目前我在eslintrc.js的extend属性中有这个: 我收到此错误: 错误“默认”被限制用作导出名称 no-restricted-exports 我们的组件模式是这样的: 索引.ts: 从'. ...

如何配置 eslintrc 并将 React 添加到 eslint(使用 airbnb、typescript)而不创建 react 应用程序 - How to configure eslintrc and add React to eslint (with airbnb, typescript) without create react app

我的项目没有使用 create-react-app。 我正在更新我的 Eslint。 如何将 React 正确添加到 eslintrc.js 文件中? 目前我在extend属性中有这个: 例如现在 eslint 抛出错误: Function 组件不是 function 声明 ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM