Browse Source

Ensures relative path imports

main
Eric Amodio 2 years ago
parent
commit
993a115602
5 changed files with 11 additions and 7 deletions
  1. +4
    -0
      .eslintrc.base.json
  2. +3
    -3
      src/quickpicks/commitPicker.ts
  3. +2
    -2
      src/views/nodes/stashFileNode.ts
  4. +1
    -1
      src/webviews/apps/plus/graph/graph.tsx
  5. +1
    -1
      src/webviews/apps/settings/settings.ts

+ 4
- 0
.eslintrc.base.json View File

@ -98,6 +98,10 @@
{
"group": ["**/env/**/*"],
"message": "Use @env/ instead"
},
{
"group": ["src/**/*"],
"message": "Use relative paths instead"
}
]
}

+ 3
- 3
src/quickpicks/commitPicker.ts View File

@ -1,10 +1,10 @@
import type { Disposable } from 'vscode';
import { window } from 'vscode';
import type { GitCommit, GitStashCommit } from 'src/git/models/commit';
import type { GitLog } from 'src/git/models/log';
import type { GitStash } from 'src/git/models/stash';
import { configuration } from '../configuration';
import { Container } from '../container';
import type { GitCommit, GitStashCommit } from '../git/models/commit';
import type { GitLog } from '../git/models/log';
import type { GitStash } from '../git/models/stash';
import type { KeyboardScope, Keys } from '../keyboard';
import { CommandQuickPickItem } from '../quickpicks/items/common';
import { filter, map } from '../system/iterable';

+ 2
- 2
src/views/nodes/stashFileNode.ts View File

@ -1,5 +1,5 @@
import type { GitStashCommit } from 'src/git/models/commit';
import type { GitFile } from 'src/git/models/file';
import type { GitStashCommit } from '../../git/models/commit';
import type { GitFile } from '../../git/models/file';
import type { RepositoriesView } from '../repositoriesView';
import type { StashesView } from '../stashesView';
import { CommitFileNode } from './commitFileNode';

+ 1
- 1
src/webviews/apps/plus/graph/graph.tsx View File

@ -2,8 +2,8 @@
import type { CssVariables } from '@gitkraken/gitkraken-components';
import React from 'react';
import { render, unmountComponentAtNode } from 'react-dom';
import type { GitGraphRowType } from 'src/git/models/graph';
import type { GraphColumnConfig } from '../../../../config';
import type { GitGraphRowType } from '../../../../git/models/graph';
import type {
DismissBannerParams,
GraphRepository,

+ 1
- 1
src/webviews/apps/settings/settings.ts View File

@ -1,6 +1,6 @@
/*global document IntersectionObserver*/
import './settings.scss';
import type { AutolinkReference } from 'src/config';
import type { AutolinkReference } from '../../../config';
import type { State } from '../../settings/protocol';
import { AppWithConfig } from '../shared/appWithConfigBase';
import { DOM } from '../shared/dom';

Loading…
Cancel
Save