ESLint 報錯 error Unexpected console statement no-console

bug隨記 遵守ESLint,在項目中使用console後,yarn build報錯,如下圖。 是不是覺得很不舒服,下面簡單配置即可解決。 在package.json中的eslintConfig:{} 中的 「rules」:{},增加一行代碼: 「no-console」:「off」
相關文章
相關標籤/搜索