簡體   English   中英

是否可以從復雜的 eslint 配置中查看所有活動規則?

[英]Is it possible to see all active rules from a complex eslint config?

我的 eslint 配置擴展了其他幾個配置文件。 是否可以靜態導出所有當前應用的規則?

是否可能有一個 VSCode 插件?

是的,您可以使用 --print-config 選項。

./node_modules/.bin/eslint --print-config some-file.js > my-config.json

或者

npx eslint --print-config some-file.js > my-config.json

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM