Skip to content

Instantly share code, notes, and snippets.

@technoY2K
Created July 13, 2018 22:11
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 technoY2K/d5684932c034c831f39da6aba96df3db to your computer and use it in GitHub Desktop.
Save technoY2K/d5684932c034c831f39da6aba96df3db to your computer and use it in GitHub Desktop.
basic eslintrc file for babel/react
{
"env": {
"es6": true,
"browser": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"react"
],
"rules": {
"semi": ["error", "always"],
"no-console": 2,
"no-unused-vars": ["error", { "argsIgnorePattern": "(array|error|index|result)" }],
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment