diff --git a/.eslintrc.js b/.eslintrc.js index 997e5bb46f..71cac5b6d7 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -23,7 +23,7 @@ module.exports = { 'dot-notation': ERROR, 'eol-last': ERROR, 'eqeqeq': [ERROR, 'allow-null'], - 'indent': [ERROR, 2, {SwitchCase: 1}], + 'indent': OFF, 'jsx-quotes': [ERROR, 'prefer-double'], 'keyword-spacing': [ERROR, {after: true, before: true}], 'no-bitwise': OFF, @@ -33,9 +33,10 @@ module.exports = { 'no-shadow': ERROR, 'no-unused-expressions': ERROR, 'no-unused-vars': [ERROR, {args: 'none'}], + 'no-useless-concat': OFF, 'quotes': [ERROR, 'single', {avoidEscape: true, allowTemplateLiterals: true }], 'space-before-blocks': ERROR, - 'space-before-function-paren': [ERROR, {anonymous: 'never', named: 'never'}], + 'space-before-function-paren': OFF, // React & JSX // Our transforms set this automatically diff --git a/docs/_js/examples/markdown.js b/docs/_js/examples/markdown.js index 696074cd65..f0cab2b8b0 100644 --- a/docs/_js/examples/markdown.js +++ b/docs/_js/examples/markdown.js @@ -6,8 +6,8 @@ class MarkdownEditor extends React.Component { this.state = {value: 'Type some *markdown* here!'}; } - handleChange() { - this.setState({value: this.refs.textarea.value}); + handleChange(e) { + this.setState({value: e.target.value}); } getRawMarkup() { @@ -21,7 +21,6 @@ class MarkdownEditor extends React.Component {

Input

+ , ); }).toThrow(); @@ -350,8 +359,8 @@ describe('ReactDOMTextarea', () => { ReactTestUtils.renderIntoDocument(