Skip to content

Instantly share code, notes, and snippets.

@RandyBooth
Last active May 14, 2020 17:05
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 RandyBooth/05c3d4322872d6ae07e0735af38e35f5 to your computer and use it in GitHub Desktop.
Save RandyBooth/05c3d4322872d6ae07e0735af38e35f5 to your computer and use it in GitHub Desktop.
React ESLint
// npx install-peerdeps --dev eslint-config-airbnb
{
"extends": ["airbnb", "plugin:react/recommended", "plugin:prettier/recommended"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": ["react"],
"rules": {
"no-console": 0,
"import/no-named-as-default": 0,
"import/no-named-as-default-member": 0,
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx"]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment