create-react-app 3.4.0 覆盖Eslint

官方说明

Note that even if you customise your ESLint config, these changes will only affect the editor integration. They won’t affect the terminal and in-browser lint output. This is because Create React App intentionally provides a minimal set of rules that find common mistakes.

Experimental: Extending the ESLint config

We recognise that in some cases, further customisation is required. It is now possible to extend the base ESLint config by setting the EXTEND_ESLINT environment variable to true. See advanced configuration for more information on available environment variables. Note that any rules set to "error" will stop the project from building.

解决方法

根目录添加.env
EXTEND_ESLINT=true
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • NAME dnsmasq - A lightweight DHCP and caching DNS server....
    ximitc阅读 2,936评论 0 0
  • pyspark.sql模块 模块上下文 Spark SQL和DataFrames的重要类: pyspark.sql...
    mpro阅读 9,532评论 0 13
  • “对于那些我们立志要教育的人来说,从一开始,教育中的自由原则就证明了其自身的合理性。”——帕克赫斯特 教育变革切忌...
    楚程cc阅读 170评论 0 1
  • 你的英语够礼貌吗?在日常中,一口有涵养的英语既能让你获得体面,又能获得别人的尊重,让别人对你刮目相看。 1. Af...
    蔓蔓longre阅读 451评论 0 0
  • 神学生的毕业考试 有一个神学院的毕业考,当考生们翻开考卷时,只看到两个申论题。 第一题:请写下你认识甚么是撒但吗?...
    小天使2阅读 249评论 0 2