add new chinese translations
This commit is contained in:
20
pages.zh/common/eslint.md
Normal file
20
pages.zh/common/eslint.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# eslint
|
||||
|
||||
> 一个可插拔的 JavaScript 和 JSX 代码检查工具。
|
||||
> 更多信息:<https://eslint.org>。
|
||||
|
||||
- 创建 ESLint 配置文件:
|
||||
|
||||
`eslint --init`
|
||||
|
||||
- 检查一个或多个文件:
|
||||
|
||||
`eslint {{path/to/file1.js path/to/file2.js ...}}`
|
||||
|
||||
- 修复代码检查问题:
|
||||
|
||||
`eslint --fix`
|
||||
|
||||
- 使用指定的配置文件进行检查:
|
||||
|
||||
`eslint -c {{path/to/config_file}} {{path/to/file1.js path/to/file2.js}}`
|
Reference in New Issue
Block a user