Qwe*_*rty 2 eslint visual-studio-code
我的 eslint 配置扩展了其他几个配置文件。是否可以静态导出所有当前应用的规则?
有可能有 VSCode 插件吗?
是的,您可以使用 --print-config 选项。
./node_modules/.bin/eslint --print-config some-file.js > my-config.json
Run Code Online (Sandbox Code Playgroud)
或者
npx eslint --print-config some-file.js > my-config.json
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
922 次 |
最近记录: |