Skip to content

Instantly share code, notes, and snippets.

@MoOx
Created March 19, 2015 15:03
Show Gist options
  • Save MoOx/3d036a790cbba5f73b54 to your computer and use it in GitHub Desktop.
Save MoOx/3d036a790cbba5f73b54 to your computer and use it in GitHub Desktop.
my eslintrc
---
# babel support more syntax stuff than eslint for now
parser: babel-eslint
ecmaFeatures:
modules: true
jsx: true
env:
es6: true
browser: true
node: true
globals:
__DEV__: true
__PROD__: true
plugins:
- react
# 0: off, 1: warning, 2: error
rules:
# semicolons are useless
semi: 0
quotes: [2, "double"]
# 2 spaces indentation
indent: [2, 2]
# trailing coma are cool for diff
comma-dangle: [2, "always"]
# enforce comma at eol (never before)
comma-style: [2, "last"]
valid-jsdoc: 1
# # eslint-plugin-react rules
react/no-multi-comp: 2
react/prop-types: 2
react/display-name: 2
react/wrap-multilines: 2
react/self-closing-comp: 2
react/no-did-mount-set-state: 2
react/no-did-update-set-state: 2
react/jsx-uses-react: 2
react/jsx-uses-vars: 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment