Skip to content

Instantly share code, notes, and snippets.

@jwill9999
Last active June 22, 2017 18:31
Show Gist options
  • Save jwill9999/1e1869a85997d7285f162882176c97cc to your computer and use it in GitHub Desktop.
Save jwill9999/1e1869a85997d7285f162882176c97cc to your computer and use it in GitHub Desktop.
eslint for Reactjs
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react", "import"],
"extends": ["eslint:recommended", "plugin:react/recommended", "plugin:import/errors","plugin:import/warnings"],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"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": {
"react/display-name": 0,
"react/jsx-quotes": 0,
"jsx-quotes": ["error", "prefer-double"],
"react/jsx-no-undef": 2,
"react/jsx-sort-props": 0,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/no-did-mount-set-state": 2,
"react/no-did-update-set-state": 2,
"react/no-multi-comp": 0,
"react/no-unknown-property": 2,
"react/prop-types": 2,
"react/react-in-jsx-scope": 2,
"react/self-closing-comp": 2,
"react/wrap-multilines": 0,
"import/no-unresolved": [2, {"commonjs": true, "amd": true}],
"import/named": 2,
"import/namespace": 2,
"import/default": 2,
"import/export": 2
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment