Created
April 21, 2021 16:06
-
-
Save naimurhasan/6d4fcb29c2f14222e057f4045de699f8 to your computer and use it in GitHub Desktop.
/* π₯ Title : React ESLINT SETTINGS π Description : β Author : Saad Hasan β Date : 21/ April/ 2021 */
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/*
π₯ Title: React ESLINT SETTINGS
π Description: Fixes common issues in eslint for smooth development experience
β Author: Saad Hasan
β Date : 21/ April/ 2021
*/