Skip to content

Instantly share code, notes, and snippets.

@naimurhasan
Created April 21, 2021 16:06
Show Gist options
  • Save naimurhasan/6d4fcb29c2f14222e057f4045de699f8 to your computer and use it in GitHub Desktop.
Save naimurhasan/6d4fcb29c2f14222e057f4045de699f8 to your computer and use it in GitHub Desktop.
/* πŸ’₯ Title : React ESLINT SETTINGS πŸ“ƒ Description : ✍ Author : Saad Hasan ⌚ Date : 21/ April/ 2021 */
{
"extends": [
"airbnb",
"airbnb/hooks",
"eslint:recommended",
"prettier",
"plugin:jsx-a11y/recommended"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 8
},
"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true
},
"rules": {
"arrow-body-style": 0,
"react/react-in-jsx-scope": 0,
"react-hooks/rules-of-hooks": "error",
"no-console": 0,
"react/state-in-constructor": 0,
"indent": 0,
"import/prefer-default-export": 0,
"linebreak-style": 0,
"react/prop-types": 0,
"no-unused-vars": 0,
"jsx-a11y/click-events-have-key-events": 0,
"import/no-extraneous-dependencies": 0,
"jsx-a11y/alt-text": 0,
"react/jsx-props-no-spreading": 0,
"jsx-a11y/label-has-associated-control": 0,
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx"]
}
],
"prettier/prettier": [
"error",
{
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 100,
"tabWidth": 2,
"semi": true,
"endOfLine": "auto",
"arrowParens": "always",
"bracketSpacing": true,
"useTabs": false
}
]
},
"plugins": ["prettier", "react", "react-hooks"]
}
@naimurhasan
Copy link
Author

/*
πŸ’₯ Title: React ESLINT SETTINGS
πŸ“ƒ Description: Fixes common issues in eslint for smooth development experience
✍ Author: Saad Hasan
⌚ Date : 21/ April/ 2021
*/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment