.eslintrc.cjs
时间: 2023-09-05 16:14:31 浏览: 156
引用中提到,为什么生成的配置文件名称是.eslintrc.cjs而不是.eslintrc.js。根据这个引用内容,生成的配置文件名称是.eslintrc.cjs是因为ESLint的默认配置文件命名规则是使用.cjs后缀而不是.js后缀。这是为了与其他模块系统(如CommonJS)兼容。所以,如果你想使用ESLint的默认配置文件,你需要将配置文件命名为.eslintrc.cjs。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [超全面的前端工程化配置指南](https://blog.csdn.net/qq_41581588/article/details/126347482)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [ESLint配置详解](https://blog.csdn.net/qq_42880714/article/details/130662902)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文