Skip to content

Instantly share code, notes, and snippets.

@phongvh
Last active September 12, 2018 09:37
Show Gist options
  • Save phongvh/56aa61a10ab0f994baffa840e36a58b9 to your computer and use it in GitHub Desktop.
Save phongvh/56aa61a10ab0f994baffa840e36a58b9 to your computer and use it in GitHub Desktop.

Installation

npm install --save-dev eslint-config-react-app babel-eslint eslint eslint-plugin-flowtype eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react

.eslintrc file

module.exports = { "extends": "react-app", "rules": { "jsx-a11y/href-no-hash": "off", "semi": [1, "always"] } }

Run eslint manually

./node_modules/.bin/eslint --fix --ignore-path .eslintignore .

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