File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
browser/main/modals/PreferencesModal Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class UiTab extends React.Component {
31
31
CodeMirror . autoLoadMode ( this . codeMirrorInstance . getCodeMirror ( ) , 'javascript' )
32
32
CodeMirror . autoLoadMode ( this . customCSSCM . getCodeMirror ( ) , 'css' )
33
33
CodeMirror . autoLoadMode ( this . customMarkdownLintConfigCM . getCodeMirror ( ) , 'javascript' )
34
- CodeMirror . autoLoadMode ( this . prettierConfigCM . getCodeMirror ( ) , 'json ' )
34
+ CodeMirror . autoLoadMode ( this . prettierConfigCM . getCodeMirror ( ) , 'javascript ' )
35
35
// Set CM editor Sizes
36
36
this . customCSSCM . getCodeMirror ( ) . setSize ( '400px' , '400px' )
37
37
this . prettierConfigCM . getCodeMirror ( ) . setSize ( '400px' , '400px' )
@@ -912,7 +912,8 @@ class UiTab extends React.Component {
912
912
value = { config . editor . prettierConfig }
913
913
options = { {
914
914
lineNumbers : true ,
915
- mode : 'json' ,
915
+ mode : 'application/json' ,
916
+ lint : true ,
916
917
theme : codemirrorTheme
917
918
} } />
918
919
</ div >
You can’t perform that action at this time.
0 commit comments