cra-ts-eslint-prettier:使用TypeScript并为ESLint和Prettier配置的示例Create React App

时间:2021-04-01 00:42:28
【文件属性】:
文件名称:cra-ts-eslint-prettier:使用TypeScript并为ESLint和Prettier配置的示例Create React App
文件大小:344KB
文件格式:ZIP
更新时间:2021-04-01 00:42:28
TypeScript 带有AirBnB Linter规则的TypeScript React App 在尝试配置我们的TypeScript React应用程序以将ESLint与AirBnB规则和Prettier结合使用时,我发现了很多信息(如果过时)。 我正在创建此存储库以供将来参考。 使用Typescript样本创建React App npx create-react-app --typescript 为TypeScript添加ESLint并配置 参见: : yarn add -D eslint eslint-config-airbnb eslint-plugin-import eslint-plugin-react @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint --init 使用默认值
【文件预览】:
cra-ts-eslint-prettier-master
----.eslintrc.json(723B)
----public()
--------manifest.json(492B)
--------index.html(2KB)
--------robots.txt(57B)
--------favicon.ico(22KB)
--------logo512.png(22KB)
--------logo192.png(8KB)
----yarn.lock(437KB)
----src()
--------index.tsx(452B)
--------logo.svg(8KB)
--------index.css(366B)
--------App.test.tsx(248B)
--------App.css(306B)
--------App.tsx(590B)
--------react-app-env.d.ts(40B)
--------serviceWorker.ts(5KB)
----tsconfig.json(491B)
----.prettierrc(46B)
----README.md(3KB)
----.gitignore(310B)
----package-lock.json(528KB)
----package.json(1KB)

网友评论