Skip to content

Instantly share code, notes, and snippets.

@hadnazzar
Created April 14, 2020 11:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hadnazzar/a8c7dd400aa51759e1bb3bc752238089 to your computer and use it in GitHub Desktop.
Save hadnazzar/a8c7dd400aa51759e1bb3bc752238089 to your computer and use it in GitHub Desktop.
React & nextjs eslint setup
{
"root": true,
"parser": "babel-eslint",
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:jsx-a11y/recommended",
"plugin:react-hooks/recommended",
"airbnb"
],
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"react": {
"version": "detect"
}
},
"plugins": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment