Skip to content

Instantly share code, notes, and snippets.

@SherryH
Created October 12, 2017 20:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SherryH/d06956134c0bb83db23bebcb6809eec0 to your computer and use it in GitHub Desktop.
Save SherryH/d06956134c0bb83db23bebcb6809eec0 to your computer and use it in GitHub Desktop.
Configuration to integrate eslint with flow for developing React using webpack
{
"extends": ["airbnb", "plugin:flowtype/recommended"],
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module",
"ecmaFeatures": { "jsx": true, "modules": true }
},
"parser": "babel-eslint",
"env": {
"browser": true,
"es6": true
},
"plugins": ["flowtype"],
"rules": {
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment