Skip to content

Instantly share code, notes, and snippets.

@bmartel
Created November 30, 2019 17:22
Show Gist options
  • Save bmartel/5adad935e28bf6c2e5d0d0ce0dfa5c74 to your computer and use it in GitHub Desktop.
Save bmartel/5adad935e28bf6c2e5d0d0ce0dfa5c74 to your computer and use it in GitHub Desktop.
eslint + prettier for react like apps
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
}
};
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