Skip to content

Instantly share code, notes, and snippets.

@richellyitalo
Last active December 31, 2019 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richellyitalo/dd5a53152a00042bdf99f44d6dcaa732 to your computer and use it in GitHub Desktop.
Save richellyitalo/dd5a53152a00042bdf99f44d6dcaa732 to your computer and use it in GitHub Desktop.

Instalação dos pacotes

yarn add eslint-config-airbnb eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react -D

".eslintrc" na raiz do projeto

{
  "env": {
    "browser": true,
    "jest": true,
    "es6": true
  },
  "extends": ["react-app", "airbnb"],
  "plugins": ["import", "jsx-a11y", "react"],
  "rules": {
    "react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx"]}],
    "import/prefer-default-export": "off",
    "react/jsx-one-expression-per-line": "off"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment