Skip to content

Commit c804239

Browse files
committed
Updated eslint package and fixed lint errors.
1 parent 15e5c14 commit c804239

5 files changed

Lines changed: 10254 additions & 7742 deletions

File tree

.eslintrc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
22
"extends": "eslint:recommended",
33
"parserOptions": {
4-
"ecmaVersion": 6,
4+
"ecmaVersion": 2018,
55
"sourceType": "module",
66
"ecmaFeatures": {
7-
"jsx": true,
8-
"experimentalObjectRestSpread": true
7+
"jsx": true
98
}
109
},
1110
"env": {

demo/src/js/components/Editor.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -49,28 +49,28 @@ export default class Editor extends Component {
4949
if (view === 'html') {
5050
const { html } = this.props;
5151
return <AceEditor mode="html"
52-
theme="chrome"
53-
name="HTML_EDITOR"
54-
value={ html }
55-
width="100%"
56-
height="auto"
57-
onChange={ value => this.onEditorChange(value) }
58-
onLoad={ editor => this.onEditorLoad(editor) }
59-
editorProps={ editorProps }
52+
theme="chrome"
53+
name="HTML_EDITOR"
54+
value={ html }
55+
width="100%"
56+
height="auto"
57+
onChange={ value => this.onEditorChange(value) }
58+
onLoad={ editor => this.onEditorLoad(editor) }
59+
editorProps={ editorProps }
6060
/>;
6161
}
6262
else {
6363
const { selectedExample } = this.props;
6464
const value = data[selectedExample].display ? data[selectedExample].display : `const options = ${JSON.stringify(data[selectedExample].options, null, 2)}`;
6565
return <AceEditor mode="javascript"
66-
theme="chrome"
67-
name="HTML_EDITOR"
68-
value={ value }
69-
width="100%"
70-
height="auto"
71-
readOnly={ true }
72-
onLoad={ editor => this.onEditorLoad(editor) }
73-
editorProps={ editorProps }
66+
theme="chrome"
67+
name="HTML_EDITOR"
68+
value={ value }
69+
width="100%"
70+
height="auto"
71+
readOnly={ true }
72+
onLoad={ editor => this.onEditorLoad(editor) }
73+
editorProps={ editorProps }
7474
/>;
7575
}
7676

0 commit comments

Comments
 (0)