Created
November 30, 2019 17:22
-
-
Save bmartel/5adad935e28bf6c2e5d0d0ce0dfa5c74 to your computer and use it in GitHub Desktop.
eslint + prettier for react like apps
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
module.exports = { | |
parser: "babel-eslint", | |
extends: ["prettier"], | |
plugins: ["import", "react"], | |
rules: { | |
"no-unused-vars": [2, { varsIgnorePattern: "h" }], | |
"react/jsx-uses-vars": 2, | |
"no-undef": 0 | |
} | |
}; |
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
yarn remove eslint eslint-config-synacor | |
yarn add -D babel-eslint eslint prettier eslint-config-prettier eslint-plugin-import eslint-plugin-prettier eslint-plugin-node eslint-plugin-promise eslint-plugin-react |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment