Skip to content

[Bug] Refactoring based on ESLint #1636

Description

@hata6502

Describe a bug.

$ yarn lint:fix
yarn run v1.22.10
$ eslint src/ --ext .ts --fix

/home/hata6502/editor.js/src/components/__module.ts
  97:0  warning  @param "eventsDispatcher" does not match an existing function parameter  jsdoc/check-param-names

/home/hata6502/editor.js/src/components/modules/caret.ts
  394:27  warning  'Tools' is assigned a value but never used  @typescript-eslint/no-unused-vars

/home/hata6502/editor.js/src/components/modules/saver.ts
  107:21  warning  Unexpected any. Specify a different type  @typescript-eslint/no-explicit-any

/home/hata6502/editor.js/src/components/tools/base.ts
  179:0   warning  @param "constructable" does not match an existing function parameter  jsdoc/check-param-names
  281:35  warning  Unexpected any. Specify a different type                              @typescript-eslint/no-explicit-any

✖ 5 problems (0 errors, 5 warnings)

Done in 7.36s.

Expected behavior: The ESLint warning should be fixed.

Editor.js version: 2.20.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions