Skip to content

Commit

Permalink
fix: Update prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
3y3 committed Dec 12, 2023
1 parent 8c1147f commit e301c68
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 32 deletions.
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[{*.json,*.yml,*.yaml}]
indent_style = space
indent_size = 2

[GNUmakefile]
indent_style = tab
indent_size = 4
49 changes: 21 additions & 28 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
},
"devDependencies": {
"@diplodoc/eslint-config": "^2.0.0",
"@diplodoc/prettier-config": "^1.0.0",
"@diplodoc/prettier-config": "^2.0.0",
"@diplodoc/transform": "^4.7.0",
"@diplodoc/tsconfig": "^1.0.2",
"@types/github-slugger": "^2.0.0",
Expand All @@ -61,7 +61,6 @@
"jest": "^29.5.0",
"markdown-it": "^13.0.1",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.8",
"ts-jest": "^29.1.0",
"typescript": "^5.0.2"
}
Expand Down
3 changes: 2 additions & 1 deletion src/react/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {useDiplodocTabs, Tab, UseDiplodocTabsCallback} from './useDiplodocTabs';
export type {Tab, UseDiplodocTabsCallback} from './useDiplodocTabs';
export {useDiplodocTabs} from './useDiplodocTabs';
2 changes: 1 addition & 1 deletion src/react/useDiplodocTabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {useCallback, useEffect} from 'react';
import {GLOBAL_SYMBOL, SelectedTabEvent, Tab} from '../common';
import {ISelectTabByIdOptions} from '../runtime/TabsController';

export {Tab};
export type {Tab};

export type UseDiplodocTabsCallback = (tab: Tab, currentTabId?: string) => void;

Expand Down

0 comments on commit e301c68

Please sign in to comment.