File tree Expand file tree Collapse file tree 4 files changed +8
-9
lines changed Expand file tree Collapse file tree 4 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -539,7 +539,7 @@ export default class CodeEditor extends React.Component {
539
539
rulers,
540
540
enableRulers,
541
541
enableMarkdownLint,
542
- customMarkdownLintConfig,
542
+ customMarkdownLintConfig
543
543
} = this . props
544
544
if ( prevProps . mode !== this . props . mode ) {
545
545
this . setMode ( this . props . mode )
@@ -558,8 +558,8 @@ export default class CodeEditor extends React.Component {
558
558
needRefresh = true
559
559
}
560
560
if ( prevProps . RTL !== this . props . RTL ) {
561
- this . editor . setOption ( 'direction' , this . props . RTL ? 'rtl' : 'ltr' )
562
- this . editor . setOption ( 'rtlMoveVisually' , this . props . RTL ? 'true' : 'false' )
561
+ this . editor . setOption ( 'direction' , this . props . RTL ? 'rtl' : 'ltr' )
562
+ this . editor . setOption ( 'rtlMoveVisually' , this . props . RTL ? 'true' : 'false' )
563
563
}
564
564
if ( prevProps . enableMarkdownLint !== enableMarkdownLint || prevProps . customMarkdownLintConfig !== customMarkdownLintConfig ) {
565
565
if ( ! enableMarkdownLint ) {
Original file line number Diff line number Diff line change @@ -325,7 +325,7 @@ class MarkdownEditor extends React.Component {
325
325
customMarkdownLintConfig = { config . editor . customMarkdownLintConfig }
326
326
prettierConfig = { config . editor . prettierConfig }
327
327
deleteUnusedAttachments = { config . editor . deleteUnusedAttachments }
328
- RTL = { RTL }
328
+ RTL = { RTL }
329
329
/>
330
330
< MarkdownPreview styleName = { this . state . status === 'PREVIEW'
331
331
? 'preview'
@@ -361,7 +361,7 @@ class MarkdownEditor extends React.Component {
361
361
allowCustomCSS = { config . preview . allowCustomCSS }
362
362
lineThroughCheckbox = { config . preview . lineThroughCheckbox }
363
363
onDrop = { ( e ) => this . handleDropImage ( e ) }
364
- RTL = { RTL }
364
+ RTL = { RTL }
365
365
/>
366
366
</ div >
367
367
)
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ import { confirmDeleteNote } from 'browser/lib/confirmDeleteNote'
31
31
import markdownToc from 'browser/lib/markdown-toc-generator'
32
32
import queryString from 'query-string'
33
33
import { replace } from 'connected-react-router'
34
- import ToggleDirectionButton from " browser/main/Detail/ToggleDirectionButton" ;
34
+ import ToggleDirectionButton from ' browser/main/Detail/ToggleDirectionButton'
35
35
36
36
class MarkdownNoteDetail extends React . Component {
37
37
constructor ( props ) {
@@ -358,7 +358,7 @@ class MarkdownNoteDetail extends React.Component {
358
358
359
359
handleSwitchDirection ( ) {
360
360
// If in split mode, hide the lock button
361
- let direction = this . state . RTL
361
+ const direction = this . state . RTL
362
362
this . setState ( { RTL : ! direction } )
363
363
}
364
364
@@ -529,7 +529,6 @@ class MarkdownNoteDetail extends React.Component {
529
529
/>
530
530
</ div >
531
531
532
-
533
532
</ div >
534
533
535
534
return (
Original file line number Diff line number Diff line change 212
212
},
213
213
"husky" : {
214
214
"hooks" : {
215
- "pre-commit" : " "
215
+ "pre-commit" : " npm run lint "
216
216
}
217
217
}
218
218
}
You can’t perform that action at this time.
0 commit comments