Nock - недопустимая ошибка в расширении значения конфигурации tslint - PullRequest
0 голосов
/ 03 октября 2019

Я получаю приведенную ниже ошибку tslint после того, как начал использовать nock в своих тестах.

Failed to load <project-folder>\node_modules\nock\types\tslint.json: Invalid "extends" configuration value - could not require "dtslint/dtslint.json". Review the Node lookup algorithm (https://nodejs.org/api/modules.html#modules_all_together) for the approximate method TSLint uses to find the referenced configuration file.

Версия узла - 10.16.2 Версия Nock - 11.3.5

TSLint Config

  "defaultSeverity": "error",
  "extends": ["tslint:recommended", "tslint-config-prettier"],
  "jsRules": {},
  "rules": {
    "ordered-imports": [false],
    "object-literal-sort-keys": false
  },
  "rulesDirectory": [],
  "linterOptions": {
    "exclude": ["node_modules/**"]
  }
} 

Тестовый скрипт в пакете json tslint --project tsconfig.json **/*.ts && jest --colors --coverage --passWithNoTests

Когда я использую nock версии 10.0.6, я не вижу ошибки. Кто-нибудь сталкивался с этим раньше?

...