Skip to content

alexchengxyz/basic-redux

Repository files navigation

Create React App, Redux

環境建置

Setup ESLint + Prettier + AirBnB Style with Create React App 參考文件

Create a React App

npx create-react-app my-app
cd my-app

ESLint + AirBnB

因ESLint版本問題,可手動降至 ^7.5.0 至 ^6.6.0

npx eslint --init

Prettier

npm install prettier eslint-plugin-prettier eslint-config-prettier --save-dev

如安裝完執行有出現錯誤請在 ./.eslintrc.json

  • plugins新增prettier
  • extends 新增 prettier, prettier/react
  • prettier/prettier": "error"

eslint 規則設定請參考 .eslintrc.json

Redux 依賴套件

  • redux-devtools-extension
  • redux-logger
  • redux-thunk

參考文件

About

React, Redux, JavaScript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published