Last active
June 5, 2019 13:42
-
-
Save reatexpk/ad3378d615fda027f6cc160c0bbec449 to your computer and use it in GitHub Desktop.
Javascript React eslint-config
This file contains 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
{ | |
"parser": "babel-eslint", | |
"extends": [ | |
"airbnb", | |
"prettier", | |
"prettier/react" | |
], | |
"plugins": ["react", "prettier", "react-hooks"], | |
"rules": { | |
"react/jsx-filename-extension": 0, | |
"react/prop-types": 0, | |
"prettier/prettier": [ | |
"error", | |
{ | |
"singleQuote": true, | |
"trailingComma": "all", | |
"arrowParens": "always" | |
} | |
], | |
"max-len": ["error", 80], | |
"react-hooks/rules-of-hooks": "error", | |
"react-hooks/exhaustive-deps": "warn" | |
}, | |
"env": { | |
"browser": true | |
}, | |
"settings": { | |
"import/resolver": { | |
"node": { | |
"moduleDirectory": ["node_modules", "src/"] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment