eslint-config-xo-react
Advanced tools
Comparing version 0.14.0 to 0.15.0
18
index.js
@@ -13,4 +13,7 @@ 'use strict'; | ||
'react/boolean-prop-naming': 'error', | ||
'react/button-has-type': 'error', | ||
'react/default-props-match-prop-types': 'error', | ||
'react/destructuring-assignment': ['error', 'always'], | ||
'react/forbid-component-props': 'error', | ||
'react/no-access-state-in-setstate': 'error', | ||
'react/no-array-index-key': 'error', | ||
@@ -36,3 +39,5 @@ 'react/no-children-prop': 'error', | ||
'react/react-in-jsx-scope': 'error', | ||
'react/require-default-props': 'error', | ||
'react/require-default-props': ['error', { | ||
forbidDefaultForRequired: true | ||
}], | ||
'react/self-closing-comp': 'error', | ||
@@ -62,2 +67,3 @@ 'react/style-prop-object': 'error', | ||
'react/jsx-no-undef': 'error', | ||
'react/jsx-one-expression-per-line': 'error', | ||
'react/jsx-curly-brace-presence': ['error', 'never'], | ||
@@ -78,4 +84,12 @@ 'react/jsx-pascal-case': 'error', | ||
'react/jsx-uses-vars': 'error', | ||
'react/jsx-wrap-multilines': 'error' | ||
'react/jsx-wrap-multilines': ['error', { | ||
declaration: 'parens-new-line', | ||
assignment: 'parens-new-line', | ||
return: 'parens-new-line', | ||
arrow: 'parens-new-line', | ||
condition: 'ignore', | ||
logical: 'ignore', | ||
prop: 'ignore' | ||
}] | ||
} | ||
}; |
{ | ||
"name": "eslint-config-xo-react", | ||
"version": "0.14.0", | ||
"version": "0.15.0", | ||
"description": "ESLint shareable config for React to be used with eslint-config-xo", | ||
@@ -56,3 +56,3 @@ "license": "MIT", | ||
"eslint": "^4.10.0", | ||
"eslint-plugin-react": "^7.4.0", | ||
"eslint-plugin-react": "^7.5.1", | ||
"is-plain-obj": "^1.0.0", | ||
@@ -63,4 +63,4 @@ "temp-write": "^3.1.0" | ||
"eslint": ">=4", | ||
"eslint-plugin-react": ">=7.4.0" | ||
"eslint-plugin-react": ">=7.5.1" | ||
} | ||
} |
6600
100