ESLint:修订间差异
来自康健生活
| (未显示同一用户的4个中间版本) | |||
| 第125行: | 第125行: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| [[/规则 |规则]] | | [[/规则|规则]] || [[/eslint-plugin-react|eslint-plugin-react]] | ||
|} | |} | ||
| 第136行: | 第136行: | ||
|- | |- | ||
| 示例 || 示例 || 示例 | | 示例 || 示例 || 示例 | ||
|} | |||
=== 我的配置示例 === | |||
{| class="wikitable" | |||
|- | |||
| [[/我的配置-前端-react|我的配置-前端-react]] | |||
|} | |} | ||
| 第171行: | 第177行: | ||
== error == | == error == | ||
=== config === | |||
* ESLint: Expected indentation of 10 spaces but found 20 spaces.( | * ESLint: Expected indentation of 10 spaces but found 20 spaces.( | ||
*: <syntaxhighlight lang="javascript"> | *: <syntaxhighlight lang="javascript"> | ||
| 第236行: | 第243行: | ||
* ESLint: Missing accessibility modifier on method definition constructor.(@typescript-eslint/explicit-member-accessibility) | * ESLint: Missing accessibility modifier on method definition constructor.(@typescript-eslint/explicit-member-accessibility) | ||
*: 缺少可访问的修饰符 | *: 缺少可访问的修饰符 | ||
* Environment key "es2021" is unknown | |||
* The eslint library loaded from /Users/kangjian/360/medici/client/node_modules/eslint/lib/api.js doesn't export a CLIEngine. You need at least eslint@1.0.0 | |||
*: {{Shc_out|<syntaxhighlight lang="bash"> | |||
which eslint</syntaxhighlight>|<syntaxhighlight lang="bash"> | |||
/usr/local/bin/eslint | |||
</syntaxhighlight>|➜ client git:(master_sketch_version) ✗}} | |||
=== react === | |||
* Component definition is missing display name | |||
== 雁阵规则 == | == 雁阵规则 == | ||