Skip to content
This repository has been archived by the owner on Oct 1, 2019. It is now read-only.

Commit

Permalink
Eslint:
Browse files Browse the repository at this point in the history
array-bracket-spacing, eol-last, no-nested-ternary, no-spaced-func,
space-unary-ops,

react/jsx-curly-spacing, react/jsx-equals-spacing, react/no-danger,
react/no-direct-mutation-state, react/no-multi-comp,
react/prefer-es6-class, react/self-closing-comp, react/wrap-multilines
  • Loading branch information
indeyets committed May 24, 2016
1 parent d18af6f commit 86ff278
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,17 @@
"node": true
},
"rules": {
"array-bracket-spacing": [2, "never"],
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"consistent-return": 2,
"eol-last": 2,
"indent": [2, 2, { "SwitchCase": 1 }],
"key-spacing": [2, { "beforeColon": false }],
"keyword-spacing": 2,
"no-else-return": 2,
"no-native-reassign": 2,
"no-nested-ternary": 2,
"no-spaced-func": 2,
"no-trailing-spaces": 2,
"no-unneeded-ternary": 2,
"no-var": 2,
Expand All @@ -38,13 +42,15 @@
"space-before-blocks": 2,
"space-before-function-paren": [2, { "anonymous": "always", "named": "never" }],
"space-infix-ops": 2,
"space-unary-ops": [2, { "words": true, "nonwords": false }],

"jsx-quotes": 2,
"react/display-name": 2,
"react/forbid-prop-types": 2,
"react/jsx-boolean-value": 1,
"react/jsx-closing-bracket-location": 2,
"react/jsx-curly-spacing": 1,
"react/jsx-curly-spacing": 2,
"react/jsx-equals-spacing": 2,
"react/jsx-first-prop-new-line": [2, "multiline"],
"react/jsx-indent-props": [1, 2],
"react/jsx-key": 1,
Expand All @@ -55,23 +61,24 @@
"react/jsx-sort-props": [1, { "callbacksLast": true }],
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/no-danger": 1,
"react/no-danger": 2,
"react/no-deprecated": 1,
"react/no-did-mount-set-state": 1,
"react/no-did-update-set-state": 1,
"react/no-direct-mutation-state": 1,
"react/no-direct-mutation-state": 2,
"react/no-is-mounted": 1,
"react/no-multi-comp": 1,
"react/no-multi-comp": 0,
"react/no-set-state": 1,
"react/no-string-refs": 2,
"react/no-unknown-property": 1,
"react/prefer-es6-class": 1,
"react/prefer-stateless-function": 2,
"react/prop-types": 1,
"react/react-in-jsx-scope": 1,
"react/require-extension": 1,
"react/self-closing-comp": 1,
"react/self-closing-comp": 2,
"react/sort-comp": 2,
"react/sort-prop-types": 2,
"react/wrap-multilines": 1
"react/wrap-multilines": 2
}
}

0 comments on commit 86ff278

Please sign in to comment.