Fixed lint errors

This commit is contained in:
orangemug
2020-02-02 07:41:31 +00:00
parent 5792c632f9
commit 8ed67e98ce
16 changed files with 27 additions and 9 deletions

View File

@@ -24,10 +24,15 @@ class JSONEditor extends React.Component {
maxHeight: PropTypes.number,
onChange: PropTypes.func,
lineNumbers: PropTypes.bool,
lineWrapping: PropTypes.bool,
getValue: PropTypes.func,
gutters: PropTypes.array,
className: PropTypes.string,
}
static defaultProps = {
lineNumbers: true,
lineWrapping: false,
gutters: ["CodeMirror-lint-markers"],
getValue: (data) => {
return JSON.stringify(data, null, 2)