Skip to content

Instantly share code, notes, and snippets.

@meain
Created February 17, 2018 09:58
Show Gist options
  • Save meain/af8e40f74a04a9358193d92a348fb1cb to your computer and use it in GitHub Desktop.
Save meain/af8e40f74a04a9358193d92a348fb1cb to your computer and use it in GitHub Desktop.
React sample eslintrc
module.exports = {
env: {
browser: true,
es6: true,
},
extends: ['eslint:recommended', 'plugin:react/recommended'],
parserOptions: {
ecmaFeatures: {
experimentalObjectRestSpread: true,
jsx: true,
},
sourceType: 'module',
},
plugins: ['react'],
rules: {
'react/jsx-uses-vars': 2,
indent: ['error', 2],
'linebreak-style': ['error', 'unix'],
quotes: ['error', 'single'],
semi: ['error', 'never'],
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment