Skip to content

Commit

Permalink
refactor: use kebab-case
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWoelki committed Oct 16, 2023
1 parent 5a25161 commit 12b0958
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/lib/customRule.test.ts → src/lib/custom-rule.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { vi, it, describe, beforeEach, expect, SpyInstance } from 'vitest';
import { Plugin, TAbstractFile } from 'obsidian';
import dom from './util/dom';
import { CustomRule } from '../settings/data';
import customRule, { CustomRuleFileType } from './customRule';
import customRule, { CustomRuleFileType } from './custom-rule';
import config from '../config';

describe('doesMatchFileType', () => {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/lib/iconTabs.ts → src/lib/icon-tabs.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { TFile } from 'obsidian';
import IconFolderPlugin, { FolderIconObject } from '../main';
import customRule from './customRule';
import customRule from './custom-rule';
import dom from './util/dom';
import { DEFAULT_FILE_ICON, getAllOpenedFiles } from '../util';
import { TabHeaderLeaf } from '../@types/obsidian';
Expand Down
2 changes: 1 addition & 1 deletion src/lib/titleIcon.test.ts → src/lib/icon-title.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, it, vi } from 'vitest';
import titleIcon from './titleIcon';
import titleIcon from './icon-title';
import config from '../config';
import svg from './util/svg';

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/lib/icon.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ExplorerView, TabHeaderLeaf } from '../@types/obsidian';
import emoji from '../emoji';
import IconFolderPlugin, { FolderIconObject } from '../main';
import customRule from './customRule';
import customRule from './custom-rule';
import dom from './util/dom';
import iconTabs from './iconTabs';
import iconTabs from './icon-tabs';
import inheritance from './inheritance';
import { getFileItemInnerTitleEl, getFileItemTitleEl } from '../util';
import {
Expand Down
6 changes: 3 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ import { migrateIcons } from './migration';
import IconFolderSettingsUI from './settings/ui';
import StarredInternalPlugin from './internal-plugins/starred';
import InternalPluginInjector from './@types/internalPluginInjector';
import iconTabs from './lib/iconTabs';
import iconTabs from './lib/icon-tabs';
import inheritance from './lib/inheritance';
import dom from './lib/util/dom';
import customRule from './lib/customRule';
import customRule from './lib/custom-rule';
import icon from './lib/icon';
import BookmarkInternalPlugin from './internal-plugins/bookmark';
import {
Expand All @@ -46,7 +46,7 @@ import {
saveIconToIconPack,
} from '@app/util';
import config from '@app/config';
import titleIcon from './lib/titleIcon';
import titleIcon from './lib/icon-title';

export interface FolderIconObject {
iconName: string | null;
Expand Down
2 changes: 1 addition & 1 deletion src/settings/helper.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import customRule from '@lib/customRule';
import customRule from '@lib/custom-rule';
import inheritance from '@lib/inheritance';
import style from '@lib/util/style';
import IconFolderPlugin from '@app/main';
Expand Down
4 changes: 2 additions & 2 deletions src/settings/ui/customIconRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import {
saveIconToIconPack,
} from '@app/util';
import { CustomRule } from '../data';
import customRule from '@lib/customRule';
import iconTabs from '@lib/iconTabs';
import customRule from '@lib/custom-rule';
import iconTabs from '@lib/icon-tabs';
import dom from '../../lib/util/dom';
import svg from '../../lib/util/svg';
import { getNormalizedName } from '../../iconPackManager';
Expand Down
4 changes: 2 additions & 2 deletions src/settings/ui/emojiStyle.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Setting } from 'obsidian';
import emoji from '@app/emoji';
import customRule from '@lib/customRule';
import customRule from '@lib/custom-rule';
import dom from '@lib/util/dom';
import { FolderIconObject } from '@app/main';
import IconFolderSetting from './iconFolderSetting';
import inheritance from '../../lib/inheritance';
import iconTabs from '../../lib/iconTabs';
import iconTabs from '../../lib/icon-tabs';

export default class EmojiStyleSetting extends IconFolderSetting {
public display(): void {
Expand Down
2 changes: 1 addition & 1 deletion src/settings/ui/toggleIconInTabs.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Setting } from 'obsidian';
import iconTabs from '@lib/iconTabs';
import iconTabs from '@lib/icon-tabs';
import IconFolderSetting from './iconFolderSetting';
import { TabHeaderLeaf } from '../../@types/obsidian';

Expand Down
2 changes: 1 addition & 1 deletion src/settings/ui/toggleIconInTitle.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MarkdownView, Setting } from 'obsidian';
import IconFolderSetting from './iconFolderSetting';
import icon from '../../lib/icon';
import titleIcon from '../../lib/titleIcon';
import titleIcon from '../../lib/icon-title';
import { InlineTitleView } from '../../@types/obsidian';

export default class ToggleIconInTitle extends IconFolderSetting {
Expand Down

0 comments on commit 12b0958

Please sign in to comment.