Skip to content

tuanngominh/minimal-react-webpack-babel-airbnbeslint-setup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint config - airbnb versus create-reat-app

I need to compare how eslint configuration in create-react-app is different with airbnb one.

To play with airbnb's eslint, I combine this great tutorial from @rwieruch and his minimum react setup repo.

With create-react-app's eslint, it's straightfoward, just create app with that tool then your app has eslint preconfig.

Some notes

My custom eslint rule

I have some custom rules on top of airbnb one:

  • Enable jsx in js file.
  • No comma at the end of file. I used to add ; until I dicover the code style without it from http://redux.js.org/ . My personal opinion is ; make code looks more busy without adding value.
{
  "extends": "airbnb",
  "rules": {
    "react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
    "semi": [2, "never"],
  }
}

minimal-react-webpack-babel-setup

  • git clone git@github.com:rwieruch/minimal-react-webpack-babel-setup.git
  • cd minimal-react-webpack-babel-setup
  • npm install
  • npm start

Read more: Minimal Setup Tutorial

About

eslint config - airbnb versus create-reat-app

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • JavaScript 100.0%