Skip to content

Instantly share code, notes, and snippets.

@yinkakun
Created June 22, 2020 12:10
Show Gist options
  • Save yinkakun/92f4e2daf26951b219f705fd3be63606 to your computer and use it in GitHub Desktop.
Save yinkakun/92f4e2daf26951b219f705fd3be63606 to your computer and use it in GitHub Desktop.
{
"parser": "babel-eslint",
"extends": [
"react-app",
"airbnb",
"eslint:recommended",
"plugin:import/errors",
"plugin:react/recommended",
"prettier",
"prettier/react"
],
"rules": {
"react/prop-types": 0,
"no-console": 1,
"react/jsx-filename-extension": 0
},
"plugins": [
"react",
"import",
"jsx-a11y",
"prettier"
],
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"modules": true
}
},
"env": {
"es6": true,
"browser": true,
"node": true
},
"settings": {
"react": {
"version": "detect"
}
}
}
yarn add -D eslint eslint-config-airbnb eslint-plugin-import eslint-plugin-react eslint-plugin-jsx-a11y eslint-config-prettier eslint-plugin-prettier prettier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment