react ts eslint:使用启用了TS和ESLint的create react app创建的React应用 源码
与TS + ESlint互动 如何将ESLint添加到项目 安装仅开发包: npm i --save-dev eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin 创建初始eslint配置文件 eslint --init (可选)将linting命令添加到package.json " scripts " : { " lint " : " eslint -c .eslintrc.js --ext .js,.jsx,.ts,.tsx ./src " , } F5经验 npm start 在开发模式下运行应用程序。 打开在浏览器中查看。 如果进行编辑,页面将重新加载。 您还将在控制台中看到任何棉绒错误。 npm test 在交互式监视模式下启动测试运行程序。 有关更多信息,请参见关于的部分。 np
下载地址
用户评论