mirror of
				https://github.com/zulip/zulip-desktop.git
				synced 2025-11-04 05:53:21 +00:00 
			
		
		
		
	xo: Enable @typescript-eslint/member-ordering.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
		
				
					committed by
					
						
						Anders Kaseorg
					
				
			
			
				
	
			
			
			
						parent
						
							963c2e5388
						
					
				
				
					commit
					39c6fa4ace
				
			@@ -2,6 +2,12 @@ import Tab, { TabProps } from './tab';
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
export default class FunctionalTab extends Tab {
 | 
					export default class FunctionalTab extends Tab {
 | 
				
			||||||
	$closeButton: Element;
 | 
						$closeButton: Element;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						constructor(props: TabProps) {
 | 
				
			||||||
 | 
							super(props);
 | 
				
			||||||
 | 
							this.init();
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	template(): string {
 | 
						template(): string {
 | 
				
			||||||
		return `<div class="tab functional-tab" data-tab-id="${this.props.tabIndex}">
 | 
							return `<div class="tab functional-tab" data-tab-id="${this.props.tabIndex}">
 | 
				
			||||||
					<div class="server-tab-badge close-button">
 | 
										<div class="server-tab-badge close-button">
 | 
				
			||||||
@@ -13,11 +19,6 @@ export default class FunctionalTab extends Tab {
 | 
				
			|||||||
				</div>`;
 | 
									</div>`;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	constructor(props: TabProps) {
 | 
					 | 
				
			||||||
		super(props);
 | 
					 | 
				
			||||||
		this.init();
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	init(): void {
 | 
						init(): void {
 | 
				
			||||||
		this.$el = this.generateNodeFromTemplate(this.template());
 | 
							this.$el = this.generateNodeFromTemplate(this.template());
 | 
				
			||||||
		if (this.props.name !== 'Settings') {
 | 
							if (this.props.name !== 'Settings') {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,6 +6,11 @@ import * as SystemUtil from '../utils/system-util';
 | 
				
			|||||||
export default class ServerTab extends Tab {
 | 
					export default class ServerTab extends Tab {
 | 
				
			||||||
	$badge: Element;
 | 
						$badge: Element;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						constructor(props: TabProps) {
 | 
				
			||||||
 | 
							super(props);
 | 
				
			||||||
 | 
							this.init();
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	template(): string {
 | 
						template(): string {
 | 
				
			||||||
		return `<div class="tab" data-tab-id="${this.props.tabIndex}">
 | 
							return `<div class="tab" data-tab-id="${this.props.tabIndex}">
 | 
				
			||||||
					<div class="server-tooltip" style="display:none">${this.props.name}</div>
 | 
										<div class="server-tooltip" style="display:none">${this.props.name}</div>
 | 
				
			||||||
@@ -17,11 +22,6 @@ export default class ServerTab extends Tab {
 | 
				
			|||||||
				</div>`;
 | 
									</div>`;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	constructor(props: TabProps) {
 | 
					 | 
				
			||||||
		super(props);
 | 
					 | 
				
			||||||
		this.init();
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	init(): void {
 | 
						init(): void {
 | 
				
			||||||
		this.$el = this.generateNodeFromTemplate(this.template());
 | 
							this.$el = this.generateNodeFromTemplate(this.template());
 | 
				
			||||||
		this.props.$root.append(this.$el);
 | 
							this.props.$root.append(this.$el);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -28,6 +28,10 @@ interface WebViewProps {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export default class WebView extends BaseComponent {
 | 
					export default class WebView extends BaseComponent {
 | 
				
			||||||
 | 
						// This is required because in main.js we access WebView.method as
 | 
				
			||||||
 | 
						// webview[method].
 | 
				
			||||||
 | 
						[key: string]: any;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	props: WebViewProps;
 | 
						props: WebViewProps;
 | 
				
			||||||
	zoomFactor: number;
 | 
						zoomFactor: number;
 | 
				
			||||||
	badgeCount: number;
 | 
						badgeCount: number;
 | 
				
			||||||
@@ -37,10 +41,6 @@ export default class WebView extends BaseComponent {
 | 
				
			|||||||
	$el: Electron.WebviewTag;
 | 
						$el: Electron.WebviewTag;
 | 
				
			||||||
	domReady?: Promise<void>;
 | 
						domReady?: Promise<void>;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// This is required because in main.js we access WebView.method as
 | 
					 | 
				
			||||||
	// webview[method].
 | 
					 | 
				
			||||||
	[key: string]: any;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	constructor(props: WebViewProps) {
 | 
						constructor(props: WebViewProps) {
 | 
				
			||||||
		super();
 | 
							super();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -45,11 +45,11 @@ const browserConsole: PatchedConsole = console;
 | 
				
			|||||||
const logDir = `${app.getPath('userData')}/Logs`;
 | 
					const logDir = `${app.getPath('userData')}/Logs`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export default class Logger {
 | 
					export default class Logger {
 | 
				
			||||||
 | 
						[key: string]: any;
 | 
				
			||||||
	nodeConsole: PatchedConsole;
 | 
						nodeConsole: PatchedConsole;
 | 
				
			||||||
	timestamp?: () => string;
 | 
						timestamp?: () => string;
 | 
				
			||||||
	level: boolean;
 | 
						level: boolean;
 | 
				
			||||||
	logInDevMode: boolean;
 | 
						logInDevMode: boolean;
 | 
				
			||||||
	[key: string]: any;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	constructor(options: LoggerOptions = {}) {
 | 
						constructor(options: LoggerOptions = {}) {
 | 
				
			||||||
		let {
 | 
							let {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -202,7 +202,6 @@
 | 
				
			|||||||
  },
 | 
					  },
 | 
				
			||||||
  "xo": {
 | 
					  "xo": {
 | 
				
			||||||
    "rules": {
 | 
					    "rules": {
 | 
				
			||||||
      "@typescript-eslint/member-ordering": "off",
 | 
					 | 
				
			||||||
      "@typescript-eslint/no-dynamic-delete": "off",
 | 
					      "@typescript-eslint/no-dynamic-delete": "off",
 | 
				
			||||||
      "@typescript-eslint/no-unused-vars": "off",
 | 
					      "@typescript-eslint/no-unused-vars": "off",
 | 
				
			||||||
      "@typescript-eslint/prefer-readonly-parameter-types": "off",
 | 
					      "@typescript-eslint/prefer-readonly-parameter-types": "off",
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user