mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-21 09:38:01 +02:00
Tools: Add "@typescript-eslint/object-curly-spacing" rule
This commit is contained in:
parent
dc976047d2
commit
625689dbb1
@ -170,6 +170,7 @@ module.exports = {
|
|||||||
'tuples': 'always-multiline',
|
'tuples': 'always-multiline',
|
||||||
'functions': 'never',
|
'functions': 'never',
|
||||||
}],
|
}],
|
||||||
|
'@typescript-eslint/object-curly-spacing': ['error', 'always'],
|
||||||
'@typescript-eslint/semi': ['error', 'always'],
|
'@typescript-eslint/semi': ['error', 'always'],
|
||||||
'@typescript-eslint/member-delimiter-style': ['error', {
|
'@typescript-eslint/member-delimiter-style': ['error', {
|
||||||
'multiline': {
|
'multiline': {
|
||||||
|
@ -55,7 +55,7 @@ export interface PluginItem {
|
|||||||
hasBeenUpdated: boolean;
|
hasBeenUpdated: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
const CellRoot = styled.div<{isCompatible: boolean}>`
|
const CellRoot = styled.div<{ isCompatible: boolean }>`
|
||||||
display: flex;
|
display: flex;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
background-color: ${props => props.theme.backgroundColor};
|
background-color: ${props => props.theme.backgroundColor};
|
||||||
@ -104,7 +104,7 @@ const DevModeLabel = styled.div`
|
|||||||
color: ${props => props.theme.color};
|
color: ${props => props.theme.color};
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const StyledNameAndVersion = styled.div<{mb: any}>`
|
const StyledNameAndVersion = styled.div<{ mb: any }>`
|
||||||
font-family: ${props => props.theme.fontFamily};
|
font-family: ${props => props.theme.fontFamily};
|
||||||
color: ${props => props.theme.color};
|
color: ${props => props.theme.color};
|
||||||
font-size: ${props => props.theme.fontSize}px;
|
font-size: ${props => props.theme.fontSize}px;
|
||||||
|
@ -352,7 +352,7 @@ function CodeMirror(props: NoteBodyEditorProps, ref: any) {
|
|||||||
let cancelled = false;
|
let cancelled = false;
|
||||||
|
|
||||||
async function loadScripts() {
|
async function loadScripts() {
|
||||||
const scriptsToLoad: {src: string; id: string; loaded: boolean}[] = [
|
const scriptsToLoad: { src: string; id: string; loaded: boolean }[] = [
|
||||||
{
|
{
|
||||||
src: `${bridge().vendorDir()}/lib/codemirror/addon/dialog/dialog.css`,
|
src: `${bridge().vendorDir()}/lib/codemirror/addon/dialog/dialog.css`,
|
||||||
id: 'codemirrorDialogStyle',
|
id: 'codemirrorDialogStyle',
|
||||||
|
@ -24,7 +24,7 @@ const StyledRoot = styled.div`
|
|||||||
max-width: 1200px;
|
max-width: 1200px;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const SyncTargetDescription = styled.div<{height: number}>`
|
const SyncTargetDescription = styled.div<{ height: number }>`
|
||||||
${props => props.height ? `height: ${props.height}px` : ''};
|
${props => props.height ? `height: ${props.height}px` : ''};
|
||||||
margin-bottom: 1.3em;
|
margin-bottom: 1.3em;
|
||||||
line-height: ${props => props.theme.lineHeight};
|
line-height: ${props => props.theme.lineHeight};
|
||||||
@ -69,7 +69,7 @@ const SyncTargetLogo = styled.img`
|
|||||||
margin-right: 0.4em;
|
margin-right: 0.4em;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const SyncTargetBox = styled.div<{faded: boolean}>`
|
const SyncTargetBox = styled.div<{ faded: boolean }>`
|
||||||
display: flex;
|
display: flex;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -96,7 +96,7 @@ const FeatureIcon = styled.i`
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const FeatureLine = styled.div<{enabled: boolean}>`
|
const FeatureLine = styled.div<{ enabled: boolean }>`
|
||||||
margin-bottom: .5em;
|
margin-bottom: .5em;
|
||||||
opacity: ${props => props.enabled ? 1 : 0.5};
|
opacity: ${props => props.enabled ? 1 : 0.5};
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
|
||||||
const StyledMessage = styled.div<{type: string}>`
|
const StyledMessage = styled.div<{ type: string }>`
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
background-color: ${props => props.type === 'error' ? props.theme.warningBackgroundColor : 'transparent'};
|
background-color: ${props => props.type === 'error' ? props.theme.warningBackgroundColor : 'transparent'};
|
||||||
font-size: ${props => props.theme.fontSize}px;
|
font-size: ${props => props.theme.fontSize}px;
|
||||||
|
@ -28,7 +28,7 @@ export interface Props {
|
|||||||
onReady?: Function;
|
onReady?: Function;
|
||||||
}
|
}
|
||||||
|
|
||||||
const StyledFrame = styled.iframe<{fitToContent: boolean; borderBottom: boolean}>`
|
const StyledFrame = styled.iframe<{ fitToContent: boolean; borderBottom: boolean }>`
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
width: ${(props: any) => props.fitToContent ? `${props.width}px` : '100%'};
|
width: ${(props: any) => props.fitToContent ? `${props.width}px` : '100%'};
|
||||||
|
@ -271,7 +271,7 @@ export default class FsDriverRN extends FsDriverBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** always returns an array */
|
/** always returns an array */
|
||||||
public async pickDocument(options: {multiple: false}) {
|
public async pickDocument(options: { multiple: false }) {
|
||||||
const { multiple = false } = options || {};
|
const { multiple = false } = options || {};
|
||||||
let result;
|
let result;
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user