Shin'ya Ueoka 6 years ago
parent 39d65b136a
commit fc1cd234d5
  1. 3
      .eslintrc
  2. 1
      src/background/domains/CompletionGroup.ts
  3. 1
      src/background/domains/CompletionItem.ts
  4. 1
      src/background/domains/GlobalMark.ts
  5. 2
      src/console/components/Console.tsx
  6. 2
      src/content/client/AddonIndicatorClient.ts
  7. 2
      src/content/client/ConsoleClient.ts
  8. 2
      src/content/client/FindClient.ts
  9. 2
      src/content/client/FindMasterClient.ts
  10. 2
      src/content/client/FollowMasterClient.ts
  11. 2
      src/content/client/FollowSlaveClient.ts
  12. 2
      src/content/client/FollowSlaveClientFactory.ts
  13. 2
      src/content/client/MarkClient.ts
  14. 2
      src/content/client/SettingClient.ts
  15. 2
      src/content/client/TabsClient.ts
  16. 2
      src/content/domains/Key.ts
  17. 1
      src/content/domains/Mark.ts
  18. 2
      src/content/presenters/ConsoleFramePresenter.ts
  19. 2
      src/content/presenters/FindPresenter.ts
  20. 2
      src/content/presenters/FocusPresenter.ts
  21. 4
      src/content/presenters/FollowPresenter.ts
  22. 2
      src/content/presenters/NavigationPresenter.ts
  23. 2
      src/content/presenters/ScrollPresenter.ts
  24. 2
      src/content/repositories/AddonEnabledRepository.ts
  25. 2
      src/content/repositories/ClipboardRepository.ts
  26. 2
      src/content/repositories/FindRepository.ts
  27. 2
      src/content/repositories/FollowKeyRepository.ts
  28. 2
      src/content/repositories/FollowMasterRepository.ts
  29. 2
      src/content/repositories/FollowSlaveRepository.ts
  30. 2
      src/content/repositories/KeymapRepository.ts
  31. 2
      src/content/repositories/MarkKeyRepository.ts
  32. 2
      src/content/repositories/MarkRepository.ts
  33. 2
      src/content/repositories/SettingRepository.ts
  34. 2
      src/settings/components/form/KeymapsForm.tsx
  35. 2
      src/settings/components/form/SearchForm.tsx
  36. 1
      src/shared/Settings.ts

@ -72,6 +72,7 @@
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"require-jsdoc": "off",
"require-unicode-regexp": "off",
"semi": "off",
"sort-imports": "off",
"sort-keys": "off",
"sort-vars": "off",
@ -80,6 +81,8 @@
"react/jsx-indent": ["error", 2],
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"@typescript-eslint/no-unused-vars": ["error", { args: "none" }],
"@typescript-eslint/semi": ["error"]
}
}

@ -3,5 +3,4 @@ import CompletionItem from './CompletionItem';
export default interface CompletionGroup {
name: string;
items: CompletionItem[];
// eslint-disable-next-line semi
}

@ -3,5 +3,4 @@ export default interface CompletionItem {
readonly content?: string;
readonly url?: string;
readonly icon?: string;
// eslint-disable-next-line semi
}

@ -3,5 +3,4 @@ export default interface GlobalMark {
readonly url: string;
readonly x: number;
readonly y: number;
// eslint-disable-next-line semi
}

@ -13,7 +13,7 @@ type StateProps = ReturnType<typeof mapStateToProps>;
interface DispatchProps {
dispatch: (action: any) => void,
}
type Props = StateProps & DispatchProps
type Props = StateProps & DispatchProps;
class Console extends React.Component<Props> {
private input: React.RefObject<Input>;

@ -2,8 +2,6 @@ import * as messages from '../../shared/messages';
export default interface AddonIndicatorClient {
setEnabled(enabled: boolean): Promise<void>;
// eslint-disable-next-line semi
}
export class AddonIndicatorClientImpl implements AddonIndicatorClient {

@ -3,8 +3,6 @@ import * as messages from '../../shared/messages';
export default interface ConsoleClient {
info(text: string): Promise<void>;
error(text: string): Promise<void>;
// eslint-disable-next-line semi
}
export class ConsoleClientImpl implements ConsoleClient {

@ -4,8 +4,6 @@ export default interface FindClient {
getGlobalLastKeyword(): Promise<string | null>;
setGlobalLastKeyword(keyword: string): Promise<void>;
// eslint-disable-next-line semi
}
export class FindClientImpl implements FindClient {

@ -4,8 +4,6 @@ export default interface FindMasterClient {
findNext(): void;
findPrev(): void;
// eslint-disable-next-line semi
}
export class FindMasterClientImpl implements FindMasterClient {

@ -7,8 +7,6 @@ export default interface FollowMasterClient {
responseHintCount(count: number): void;
sendKey(key: Key): void;
// eslint-disable-next-line semi
}
export class FollowMasterClientImpl implements FollowMasterClient {

@ -20,8 +20,6 @@ export default interface FollowSlaveClient {
clearHints(): void;
activateIfExists(tag: string, newTab: boolean, background: boolean): void;
// eslint-disable-next-line semi
}
export class FollowSlaveClientImpl implements FollowSlaveClient {

@ -2,8 +2,6 @@ import FollowSlaveClient, { FollowSlaveClientImpl } from './FollowSlaveClient';
export default interface FollowSlaveClientFactory {
create(window: Window): FollowSlaveClient;
// eslint-disable-next-line semi
}
export class FollowSlaveClientFactoryImpl implements FollowSlaveClientFactory {

@ -5,8 +5,6 @@ export default interface MarkClient {
setGloablMark(key: string, mark: Mark): Promise<void>;
jumpGlobalMark(key: string): Promise<void>;
// eslint-disable-next-line semi
}
export class MarkClientImpl implements MarkClient {

@ -3,8 +3,6 @@ import * as messages from '../../shared/messages';
export default interface SettingClient {
load(): Promise<Settings>;
// eslint-disable-next-line semi
}
export class SettingClientImpl {

@ -2,8 +2,6 @@ import * as messages from '../../shared/messages';
export default interface TabsClient {
openUrl(url: string, newTab: boolean, background?: boolean): Promise<void>;
// eslint-disable-next-line semi
}
export class TabsClientImpl implements TabsClient {

@ -4,8 +4,6 @@ export default interface Key {
ctrlKey?: boolean;
altKey?: boolean;
metaKey?: boolean;
// eslint-disable-next-line semi
}
const modifiedKeyName = (name: string): string => {

@ -1,6 +1,5 @@
export default interface Mark {
x: number;
y: number;
// eslint-disable-next-line semi
}

@ -2,8 +2,6 @@ export default interface ConsoleFramePresenter {
initialize(): void;
blur(): void;
// eslint-disable-next-line semi
}
export class ConsoleFramePresenterImpl implements ConsoleFramePresenter {

@ -3,8 +3,6 @@ export default interface FindPresenter {
find(keyword: string, backwards: boolean): boolean;
clearSelection(): void;
// eslint-disable-next-line semi
}
// window.find(aString, aCaseSensitive, aBackwards, aWrapAround,

@ -2,8 +2,6 @@ import * as doms from '../../shared/utils/dom';
export default interface FocusPresenter {
focusFirstElement(): boolean;
// eslint-disable-next-line semi
}
export class FocusPresenterImpl implements FocusPresenter {

@ -69,12 +69,10 @@ export default interface FollowPresenter {
clearHints(): void;
getHint(tag: string): Hint | undefined;
// eslint-disable-next-line semi
}
export class FollowPresenterImpl implements FollowPresenter {
private hints: Hint[]
private hints: Hint[];
constructor() {
this.hints = [];

@ -10,8 +10,6 @@ export default interface NavigationPresenter {
openParent(): void;
openRoot(): void;
// eslint-disable-next-line semi
}
const REL_PATTERN: {[key: string]: RegExp} = {

@ -106,8 +106,6 @@ export default interface ScrollPresenter {
scrollToBottom(smooth: boolean): void;
scrollToHome(smooth: boolean): void;
scrollToEnd(smooth: boolean): void;
// eslint-disable-next-line semi
}
export class ScrollPresenterImpl {

@ -4,8 +4,6 @@ export default interface AddonEnabledRepository {
set(on: boolean): void;
get(): boolean;
// eslint-disable-next-line semi
}
export class AddonEnabledRepositoryImpl implements AddonEnabledRepository {

@ -2,8 +2,6 @@ export default interface ClipboardRepository {
read(): string;
write(text: string): void;
// eslint-disable-next-line semi
}
export class ClipboardRepositoryImpl {

@ -2,8 +2,6 @@ export default interface FindRepository {
getLastKeyword(): string | null;
setLastKeyword(keyword: string): void;
// eslint-disable-next-line semi
}
let current: string | null = null;

@ -6,8 +6,6 @@ export default interface FollowKeyRepository {
popKey(): void;
clearKeys(): void;
// eslint-disable-next-line semi
}
const current: {

@ -12,8 +12,6 @@ export default interface FollowMasterRepository {
getCurrentNewTabMode(): boolean;
getCurrentBackgroundMode(): boolean;
// eslint-disable-next-line semi
}
const current: {

@ -4,8 +4,6 @@ export default interface FollowSlaveRepository {
disableFollowMode(): void;
isFollowMode(): boolean;
// eslint-disable-next-line semi
}
const current: {

@ -5,8 +5,6 @@ export default interface KeymapRepository {
enqueueKey(key: Key): KeySequence;
clear(): void;
// eslint-disable-next-line semi
}
let current: KeySequence = KeySequence.from([]);

@ -10,8 +10,6 @@ export default interface MarkKeyRepository {
enableJumpMode(): void;
disabeJumpMode(): void;
// eslint-disable-next-line semi
}
interface Mode {

@ -4,8 +4,6 @@ export default interface MarkRepository {
set(key: string, mark: Mark): void;
get(key: string): Mark | null;
// eslint-disable-next-line semi
}
const saved: {[key: string]: Mark} = {};

@ -6,8 +6,6 @@ export default interface SettingRepository {
set(setting: Settings): void;
get(): Settings;
// eslint-disable-next-line semi
}
export class SettingRepositoryImpl implements SettingRepository {

@ -15,7 +15,7 @@ class KeymapsForm extends React.Component<Props> {
value: FormKeymaps.valueOf({}),
onChange: () => {},
onBlur: () => {},
}
};
render() {
let values = this.props.value.toJSON();

@ -15,7 +15,7 @@ class SearchForm extends React.Component<Props> {
value: FormSearch.valueOf({ default: '', engines: []}),
onChange: () => {},
onBlur: () => {},
}
};
render() {
let value = this.props.value.toJSON();

@ -19,7 +19,6 @@ export default interface Settings {
search: Search;
properties: Properties;
blacklist: string[];
// eslint-disable-next-line semi
}
const DefaultProperties: Properties = PropertyDefs.defs.reduce(