是否可以从复杂的 eslint 配置中查看所有活动规则?

Qwe*_*rty 2 eslint visual-studio-code

我的 eslint 配置扩展了其他几个配置文件。是否可以静态导出所有当前应用的规则?

有可能有 VSCode 插件吗?

dra*_*ner 6

是的,您可以使用 --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)