416 B
416 B
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}}