Eslint no-used-vars

Я импортирую decko и использую bind для сохранения контекста.

введите сюда описание изображения

Но при этом eslint жалуется, что я не использую его. Пример использования:

@bind
  private handlePointerMoveWindow (event: PointerEvent) {
    if (this.dragThumb) {
      const coords = this.components.bar.getValidatedCoords(event);
      const value = this.convertCoordsToValue(coords);

      this.notify('slide', { handle: this.dragThumb, value });
    }
  }

eslintrc:

{
  "root": true,
  "parser": "@typescript-eslint/parser",
  "extends": ["airbnb-typescript/base"],
  "parserOptions": {
    "project": "./tsconfig.json"
  },
  "plugins": ["@typescript-eslint"],
  "rules": {
    "linebreak-style": 0,
    "@typescript-eslint/space-before-function-paren": ["error", "always"],
    "semi": "off",
    "@typescript-eslint/semi": "off",
    "eol-last": "off",
    "quotes": "off",
    "@typescript-eslint/quotes": "off"
  },
  "globals": {
    "window": true,
    "document": true
  }
}

tsconfig:

{
  "compilerOptions": {
    "outDir": "./built",
    "sourceMap": true,
    "target": "es5",
    "module": "commonjs",
    "esModuleInterop": true,
    "skipLibCheck": true,
    "forceConsistentCasingInFileNames": true,
    "strictPropertyInitialization": false,
    "experimentalDecorators": true,
    "strict": true,
    "allowJs": true,
  },
  "exclude": [
    "node_modules",
    "dist"
],
}

Ответы (0 шт):