Skip to content

Instantly share code, notes, and snippets.

@vasanthk
Created April 27, 2015 23:05
Show Gist options
  • Save vasanthk/552376714cbae909d339 to your computer and use it in GitHub Desktop.
Save vasanthk/552376714cbae909d339 to your computer and use it in GitHub Desktop.
React + ES6 --- ESLint
{
"parser": "babel-eslint",
"env": {
"browser": true,
"es6": true,
"node": true
},
"ecmaFeatures": {
"arrowFunctions": true,
"binaryLiterals": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": true,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"octalLiterals": true,
"regexUFlag": true,
"regexYFlag": true,
"spread": true,
"superInFunctions": true,
"templateStrings": true,
"unicodeCodePointEscapes": true,
"globalReturn": true,
"jsx": true
},
"rules": {
"semi": 2,
"no-var": true,
"quotes": "single",
"handle-callback-err": false,
"new-cap": false,
"no-underscore-dangle": false,
"key-spacing": false,
"space-unary-ops": false,
"yoda": false,
"no-shadow": false,
"consistent-return": false,
"no-mixed-requires": false,
"camelcase": false,
"react/display-name": 1,
"react/jsx-boolean-value": 1,
"react/jsx-quotes": 1,
"react/jsx-no-undef": 1,
"react/jsx-sort-props": 1,
"react/jsx-sort-prop-types": 1,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/no-did-mount-set-state": 1,
"react/no-did-update-set-state": 1,
"react/no-multi-comp": 1,
"react/no-unknown-property": 1,
"react/prop-types": 1,
"react/react-in-jsx-scope": 1,
"react/self-closing-comp": 1,
"react/wrap-multilines": 1
},
"plugins": [
"react"
],
"globals": {
"describe": false,
"it": false,
"expect": false,
"beforeEach": false,
"after": false,
"Promise": true,
"define": true,
"window": true,
"exports": true,
"module": true,
"requirejs": true,
"require": true,
"ENV": true,
"React": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment