GSG-K3 / code-academy-wiki

GSG code academy Wiki
https://codeacademywiki.herokuapp.com/
1 stars 3 forks source link

Set up Eslint #37

Closed kholoudfann closed 4 years ago

bayan-404 commented 4 years ago

Linting

React Installing

To install the package and its dependencies:

$ npm install --save-dev eslint@4.19.1 \
                         eslint-config-pagarme-react \
                         stylelint@8.0.0 \
                         stylelint-config-pagarme-react \

The peer dependencies specified above have hardcoded versions. If you prefer, you can use the command npm info eslint-config-pagarme-react@latest peerDependencies to find the exact peer dependencies to install.

To include these rules into your project, create the following config files in your root folder:

.eslintrc

{
  "extends": ["pagarme-react"],
  "env": {
    "browser": true
  }
}

.stylelintrc


{
"extends": ["stylelint-config-pagarme-react"]
}
kholoudfann commented 4 years ago

done