Skip to content

Commit

Permalink
lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
neSpecc committed Jun 3, 2020
1 parent 8341c33 commit 239aaf6
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 20 deletions.
12 changes: 6 additions & 6 deletions src/components/block/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,12 @@ export default class Block {
private readonly blockAPI: BlockAPIInterface;

/**
* @class
* @param {string} tool - Tool name that passed on initialization
* @param {BlockToolData} data - Tool's initial data
* @param {BlockToolConstructable} Tool — Tool's class
* @param {ToolSettings} settings - default tool's config
* @param {ApiModule} api - Editor API module for pass it to the Block Tunes
* @param {object} options - block constructor options
* @param {string} options.name - Tool name that passed on initialization
* @param {BlockToolData} options.data - Tool's initial data
* @param {BlockToolConstructable} options.Tool — Tool's class
* @param {ToolSettings} options.settings - default tool's config
* @param {ApiModule} options.api - Editor API module for pass it to the Block Tunes
*/
constructor({
name,
Expand Down
2 changes: 0 additions & 2 deletions src/components/flipper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ export default class Flipper {
private readonly activateCallback: (item: HTMLElement) => void;

/**
* @class
*
* @param {FlipperOptions} options - different constructing settings
*/
constructor(options: FlipperOptions) {
Expand Down
21 changes: 12 additions & 9 deletions src/components/modules/blockManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,9 @@ export default class BlockManager extends Module {
/**
* Creates Block instance by tool name
*
* @param {string} tool - tools passed in editor config {@link EditorConfig#tools}
* @param {BlockToolData} [data] - constructor params
* @param {object} options - block creation options
* @param {string} options.tool - tools passed in editor config {@link EditorConfig#tools}
* @param {BlockToolData} [options.data] - constructor params
*
* @returns {Block}
*/
Expand All @@ -228,11 +229,12 @@ export default class BlockManager extends Module {
/**
* Insert new block into _blocks
*
* @param {string} tool — plugin name, by default method inserts initial block type
* @param {object} data — plugin data
* @param {number} index - index where to insert new Block
* @param {boolean} needToFocus - flag shows if needed to update current Block index
* @param {boolean} replace - flag shows if block by passed index should be replaced with inserted one
* @param {object} options - insert options
* @param {string} options.tool - plugin name, by default method inserts initial block type
* @param {object} options.data - plugin data
* @param {number} options.index - index where to insert new Block
* @param {boolean} options.needToFocus - flag shows if needed to update current Block index
* @param {boolean} options.replace - flag shows if block by passed index should be replaced with inserted one
*
* @returns {Block}
*/
Expand Down Expand Up @@ -274,8 +276,9 @@ export default class BlockManager extends Module {
/**
* Replace current working block
*
* @param {string} tool — plugin name
* @param {BlockToolData} data — plugin data
* @param {object} options - replace options
* @param {string} options.tool — plugin name
* @param {BlockToolData} options.data — plugin data
*
* @returns {Block}
*/
Expand Down
7 changes: 4 additions & 3 deletions src/components/tools/stub/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default class Stub implements BlockTool {
/**
* Stub styles
*
* @type {{wrapper: string; info: string; title: string; subtitle: string}}
* @type {{wrapper: string, info: string, title: string, subtitle: string}}
*/
private CSS = {
wrapper: 'ce-stub',
Expand Down Expand Up @@ -49,8 +49,9 @@ export default class Stub implements BlockTool {
private readonly savedData: BlockToolData;

/**
* @param data - stub tool data
* @param api - Editor.js API
* @param options - constructor options
* @param options.data - stub tool data
* @param options.api - Editor.js API
*/
constructor({ data, api }: BlockToolConstructorOptions<StubData>) {
this.api = api;
Expand Down

0 comments on commit 239aaf6

Please sign in to comment.