Created
          March 19, 2015 15:03 
        
      - 
      
- 
        Save MoOx/3d036a790cbba5f73b54 to your computer and use it in GitHub Desktop. 
    my eslintrc
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | --- | |
| # 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