[英]Ignore the indentation in a template literal, with the ESLint `indent` rule
[英]What is the first argument to eslint "indent" rule
請參閱配置規則的一般文檔:
- "off" 或 0 - 關閉規則
- "warn" 或 1 - 打開規則作為警告(不影響退出代碼)
- "error" 或 2 - 將規則作為錯誤打開(觸發時退出代碼為 1)
2 與“錯誤”相同。
我在github存儲庫上找到了一個參考: https : //github.com/eslint/eslint#configuration
"off" 或 0 - 關閉規則
"warn" 或 1 - 打開規則作為警告(不影響退出代碼)
"error" 或 2 - 將規則作為錯誤打開(退出代碼將為 1)
這解釋了第一個參數的所有選項。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.