Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Refactoring based on ESLint #1636

Closed
hata6502 opened this issue Apr 8, 2021 · 0 comments
Closed

[Bug] Refactoring based on ESLint #1636

hata6502 opened this issue Apr 8, 2021 · 0 comments
Labels

Comments

@hata6502
Copy link
Contributor

hata6502 commented Apr 8, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant