Skip to content
Permalink
Browse files

Chore: Update packages to use @hint/utils-debug

  • Loading branch information
sarvaje committed Oct 24, 2019
1 parent 6d00391 commit 45f015dea045a0bf9e01a55ac0a186dbc37161ca
Showing with 258 additions and 621 deletions.
  1. +1 โˆ’0 packages/connector-jsdom/package.json
  2. +1 โˆ’1 packages/connector-jsdom/src/connector.ts
  3. +1 โˆ’1 packages/connector-jsdom/src/evaluate-resource-loader.ts
  4. +1 โˆ’1 packages/connector-jsdom/src/evaluate-runner.ts
  5. +1 โˆ’1 packages/connector-jsdom/src/resource-loader.ts
  6. +2 โˆ’1 packages/connector-jsdom/tsconfig.json
  7. +1 โˆ’0 packages/connector-puppeteer/package.json
  8. +1 โˆ’1 packages/connector-puppeteer/src/connector.ts
  9. +2 โˆ’1 packages/connector-puppeteer/src/lib/events.ts
  10. +2 โˆ’1 packages/connector-puppeteer/src/lib/get-favicon.ts
  11. +2 โˆ’1 packages/connector-puppeteer/src/lib/lifecycle.ts
  12. +2 โˆ’1 packages/connector-puppeteer/tsconfig.json
  13. +3 โˆ’0 packages/create-hint/src/shared-templates/package.hbs
  14. +1 โˆ’1 packages/create-hint/src/templates/hint.ts.hbs
  15. +4 โˆ’1 packages/create-hintrc/package.json
  16. +2 โˆ’1 packages/create-hintrc/src/browserslist.ts
  17. +1 โˆ’1 packages/create-hintrc/src/create-hintrc.ts
  18. +1 โˆ’6 packages/create-hintrc/tests/browserslist.ts
  19. +2 โˆ’1 packages/create-hintrc/tsconfig.json
  20. +1 โˆ’0 packages/formatter-codeframe/package.json
  21. +2 โˆ’1 packages/formatter-codeframe/src/formatter.ts
  22. +0 โˆ’1 packages/formatter-codeframe/tests/tests.ts
  23. +2 โˆ’1 packages/formatter-codeframe/tsconfig.json
  24. +1 โˆ’0 packages/formatter-excel/package.json
  25. +2 โˆ’1 packages/formatter-excel/src/formatter.ts
  26. +2 โˆ’1 packages/formatter-excel/tsconfig.json
  27. +1 โˆ’0 packages/formatter-html/package.json
  28. +2 โˆ’1 packages/formatter-html/src/formatter.ts
  29. +2 โˆ’1 packages/formatter-html/tsconfig.json
  30. +1 โˆ’0 packages/formatter-json/package.json
  31. +2 โˆ’1 packages/formatter-json/src/formatter.ts
  32. +0 โˆ’2 packages/formatter-json/tests/tests.ts
  33. +2 โˆ’1 packages/formatter-json/tsconfig.json
  34. +1 โˆ’0 packages/formatter-stylish/package.json
  35. +2 โˆ’1 packages/formatter-stylish/src/formatter.ts
  36. +0 โˆ’1 packages/formatter-stylish/tests/tests.ts
  37. +2 โˆ’1 packages/formatter-stylish/tsconfig.json
  38. +1 โˆ’0 packages/formatter-summary/package.json
  39. +2 โˆ’1 packages/formatter-summary/src/formatter.ts
  40. +0 โˆ’3 packages/formatter-summary/tests/tests.ts
  41. +2 โˆ’1 packages/formatter-summary/tsconfig.json
  42. +1 โˆ’0 packages/hint-amp-validator/package.json
  43. +1 โˆ’1 packages/hint-amp-validator/src/hint.ts
  44. +1 โˆ’0 packages/hint-amp-validator/tsconfig.json
  45. +1 โˆ’0 packages/hint-apple-touch-icons/package.json
  46. +2 โˆ’1 packages/hint-apple-touch-icons/src/hint.ts
  47. +1 โˆ’0 packages/hint-apple-touch-icons/tsconfig.json
  48. +2 โˆ’1 packages/hint-babel-config/package.json
  49. +1 โˆ’1 packages/hint-babel-config/src/is-valid.ts
  50. +1 โˆ’0 packages/hint-babel-config/tsconfig.json
  51. +2 โˆ’1 packages/hint-button-type/package.json
  52. +1 โˆ’1 packages/hint-button-type/src/hint.ts
  53. +1 โˆ’0 packages/hint-button-type/tsconfig.json
  54. +1 โˆ’0 packages/hint-content-type/package.json
  55. +1 โˆ’1 packages/hint-content-type/src/hint.ts
  56. +1 โˆ’0 packages/hint-content-type/tsconfig.json
  57. +2 โˆ’1 packages/hint-create-element-svg/package.json
  58. +1 โˆ’1 packages/hint-create-element-svg/src/hint.ts
  59. +1 โˆ’0 packages/hint-create-element-svg/tsconfig.json
  60. +1 โˆ’0 packages/hint-css-prefix-order/package.json
  61. +1 โˆ’1 packages/hint-css-prefix-order/src/hint.ts
  62. +1 โˆ’0 packages/hint-css-prefix-order/tsconfig.json
  63. +2 โˆ’1 packages/hint-disown-opener/package.json
  64. +1 โˆ’1 packages/hint-disown-opener/src/hint.ts
  65. +1 โˆ’0 packages/hint-disown-opener/tsconfig.json
  66. +1 โˆ’0 packages/hint-html-checker/package.json
  67. +1 โˆ’1 packages/hint-html-checker/src/hint.ts
  68. +1 โˆ’0 packages/hint-html-checker/tsconfig.json
  69. +2 โˆ’1 packages/hint-http-cache/package.json
  70. +1 โˆ’1 packages/hint-http-cache/src/hint.ts
  71. +1 โˆ’0 packages/hint-http-cache/tsconfig.json
  72. +2 โˆ’1 packages/hint-https-only/package.json
  73. +2 โˆ’1 packages/hint-https-only/src/hint.ts
  74. +1 โˆ’0 packages/hint-https-only/tsconfig.json
  75. +1 โˆ’0 packages/hint-manifest-icons/package.json
  76. +1 โˆ’1 packages/hint-manifest-icons/src/hint.ts
  77. +1 โˆ’0 packages/hint-manifest-icons/tsconfig.json
  78. +2 โˆ’1 packages/hint-manifest-scoped-urls/package.json
  79. +1 โˆ’1 packages/hint-manifest-scoped-urls/src/hint.ts
  80. +1 โˆ’0 packages/hint-manifest-scoped-urls/tsconfig.json
  81. +2 โˆ’1 packages/hint-minified-js/package.json
  82. +1 โˆ’1 packages/hint-minified-js/src/hint.ts
  83. +1 โˆ’0 packages/hint-minified-js/tsconfig.json
  84. +2 โˆ’1 packages/hint-no-bom/package.json
  85. +2 โˆ’1 packages/hint-no-bom/src/hint.ts
  86. +1 โˆ’0 packages/hint-no-bom/tsconfig.json
  87. +2 โˆ’1 packages/hint-no-broken-links/package.json
  88. +2 โˆ’1 packages/hint-no-broken-links/src/hint.ts
  89. +1 โˆ’0 packages/hint-no-broken-links/tsconfig.json
  90. +2 โˆ’1 packages/hint-no-disallowed-headers/package.json
  91. +1 โˆ’1 packages/hint-no-disallowed-headers/src/hint.ts
  92. +1 โˆ’0 packages/hint-no-disallowed-headers/tsconfig.json
  93. +2 โˆ’1 packages/hint-no-friendly-error-pages/package.json
  94. +2 โˆ’1 packages/hint-no-friendly-error-pages/src/hint.ts
  95. +1 โˆ’0 packages/hint-no-friendly-error-pages/tsconfig.json
  96. +2 โˆ’1 packages/hint-no-html-only-headers/package.json
  97. +1 โˆ’1 packages/hint-no-html-only-headers/src/hint.ts
  98. +1 โˆ’0 packages/hint-no-html-only-headers/tsconfig.json
  99. +2 โˆ’1 packages/hint-no-p3p/package.json
  100. +2 โˆ’1 packages/hint-no-p3p/src/hint.ts
  101. +1 โˆ’0 packages/hint-no-p3p/tsconfig.json
  102. +2 โˆ’1 packages/hint-no-protocol-relative-urls/package.json
  103. +1 โˆ’1 packages/hint-no-protocol-relative-urls/src/hint.ts
  104. +1 โˆ’0 packages/hint-no-protocol-relative-urls/tsconfig.json
  105. +1 โˆ’0 packages/hint-no-vulnerable-javascript-libraries/package.json
  106. +1 โˆ’1 packages/hint-no-vulnerable-javascript-libraries/src/hint.ts
  107. +1 โˆ’0 packages/hint-no-vulnerable-javascript-libraries/tsconfig.json
  108. +2 โˆ’1 packages/hint-performance-budget/package.json
  109. +2 โˆ’1 packages/hint-performance-budget/src/hint.ts
  110. +1 โˆ’0 packages/hint-performance-budget/tsconfig.json
  111. +2 โˆ’1 packages/hint-scoped-svg-styles/package.json
  112. +1 โˆ’1 packages/hint-scoped-svg-styles/src/hint.ts
  113. +1 โˆ’0 packages/hint-scoped-svg-styles/tsconfig.json
  114. +2 โˆ’1 packages/hint-sri/package.json
  115. +1 โˆ’1 packages/hint-sri/src/hint.ts
  116. +1 โˆ’0 packages/hint-sri/tsconfig.json
  117. +1 โˆ’0 packages/hint-ssllabs/package.json
  118. +1 โˆ’1 packages/hint-ssllabs/src/hint.ts
  119. +1 โˆ’0 packages/hint-ssllabs/tsconfig.json
  120. +2 โˆ’1 packages/hint-strict-transport-security/package.json
  121. +2 โˆ’1 packages/hint-strict-transport-security/src/hint.ts
  122. +1 โˆ’0 packages/hint-strict-transport-security/tsconfig.json
  123. +2 โˆ’1 packages/hint-typescript-config/package.json
  124. +1 โˆ’1 packages/hint-typescript-config/src/import-helpers.ts
  125. +1 โˆ’1 packages/hint-typescript-config/src/is-valid.ts
  126. +1 โˆ’0 packages/hint-typescript-config/tsconfig.json
  127. +2 โˆ’1 packages/hint-validate-set-cookie-header/package.json
  128. +1 โˆ’1 packages/hint-validate-set-cookie-header/src/hint.ts
  129. +1 โˆ’0 packages/hint-validate-set-cookie-header/tsconfig.json
  130. +2 โˆ’1 packages/hint-webpack-config/package.json
  131. +1 โˆ’1 packages/hint-webpack-config/src/config-exists.ts
  132. +1 โˆ’1 packages/hint-webpack-config/src/is-installed.ts
  133. +1 โˆ’1 packages/hint-webpack-config/src/is-valid.ts
  134. +1 โˆ’1 packages/hint-webpack-config/src/module-esnext-typescript.ts
  135. +1 โˆ’1 packages/hint-webpack-config/src/modules-false-babel.ts
  136. +1 โˆ’1 packages/hint-webpack-config/src/no-devtool-in-prod.ts
  137. +1 โˆ’0 packages/hint-webpack-config/tsconfig.json
  138. +2 โˆ’1 packages/hint-x-content-type-options/package.json
  139. +1 โˆ’1 packages/hint-x-content-type-options/src/hint.ts
  140. +1 โˆ’0 packages/hint-x-content-type-options/tsconfig.json
  141. +1 โˆ’0 packages/hint/package.json
  142. +1 โˆ’1 packages/hint/src/lib/cli/analyze.ts
  143. +1 โˆ’1 packages/hint/src/lib/config.ts
  144. +1 โˆ’1 packages/hint/src/lib/config/config-hints.ts
  145. +2 โˆ’1 packages/hint/src/lib/config/config-validator.ts
  146. +1 โˆ’1 packages/hint/src/lib/engine.ts
  147. +1 โˆ’1 packages/hint/src/lib/utils/resource-loader.ts
  148. +0 โˆ’1 packages/hint/tests/lib/cli/analyze.ts
  149. +0 โˆ’1 packages/hint/tests/lib/utils/resource-loader.ts
  150. +2 โˆ’1 packages/hint/tsconfig.json
  151. +1 โˆ’0 packages/parser-javascript/package.json
  152. +1 โˆ’1 packages/parser-javascript/src/parser.ts
  153. +2 โˆ’1 packages/parser-javascript/tsconfig.json
  154. +1 โˆ’0 packages/parser-jsx/package.json
  155. +1 โˆ’1 packages/parser-jsx/src/parser.ts
  156. +2 โˆ’1 packages/parser-jsx/tsconfig.json
  157. +1 โˆ’0 packages/parser-less/package.json
  158. +1 โˆ’1 packages/parser-less/src/parser.ts
  159. +2 โˆ’1 packages/parser-less/tsconfig.json
  160. +1 โˆ’0 packages/parser-sass/package.json
  161. +1 โˆ’1 packages/parser-sass/src/parser.ts
  162. +2 โˆ’1 packages/parser-sass/tsconfig.json
  163. +1 โˆ’0 packages/parser-typescript-config/package.json
  164. +2 โˆ’1 packages/parser-typescript-config/src/parser.ts
  165. +2 โˆ’1 packages/parser-typescript-config/tsconfig.json
  166. +1 โˆ’1 packages/parser-typescript/package.json
  167. +1 โˆ’1 packages/parser-typescript/src/parser.ts
  168. +2 โˆ’1 packages/parser-typescript/tsconfig.json
  169. +0 โˆ’1 packages/parser-webpack-config/tests/webpack-config.ts
  170. +1 โˆ’0 packages/utils-connector-tools/package.json
  171. +1 โˆ’1 packages/utils-connector-tools/src/requester.ts
  172. +2 โˆ’1 packages/utils-connector-tools/tsconfig.json
  173. +1 โˆ’0 tsconfig.json
  174. +27 โˆ’496 yarn.lock
@@ -10,6 +10,7 @@
"dependencies": {
"@hint/utils": "^6.1.0",
"@hint/utils-connector-tools": "^4.0.14",
"@hint/utils-debug": "^1.0.0",
"@types/tough-cookie": "^2.3.5",
"jsdom": "^15.2.0",
"mutationobserver-shim": "^0.3.3"
@@ -33,7 +33,6 @@ import { JSDOM, ResourceLoader, VirtualConsole } from 'jsdom';

import {
createHTMLDocument,
debug as d,
getContentTypeData,
getType,
HTMLDocument,
@@ -42,6 +41,7 @@ import {
isHTMLDocument,
traverse
} from '@hint/utils';
import { debug as d } from '@hint/utils-debug';
import { Engine, Event, FetchEnd, FetchError, IConnector, NetworkData } from 'hint';
import { Requester } from '@hint/utils-connector-tools';

@@ -1,7 +1,7 @@
import { Requester } from '@hint/utils-connector-tools';
import { ResourceLoader } from 'jsdom';
import { NetworkData } from 'hint';
import { debug as d } from '@hint/utils';
import { debug as d } from '@hint/utils-debug';

const debug: debug.IDebugger = d(__filename);

@@ -3,7 +3,7 @@ import * as vm from 'vm';
import { JSDOM, VirtualConsole } from 'jsdom';
import * as jsdomutils from 'jsdom/lib/jsdom/living/generated/utils';

import { debug as d } from '@hint/utils';
import { debug as d } from '@hint/utils-debug';
import { Requester } from '@hint/utils-connector-tools';

import { beforeParse } from './before-parse';
@@ -1,12 +1,12 @@
import { URL } from 'url';

import {
debug as d,
getContentTypeData,
getElementByUrl,
getType,
HTMLDocument
} from '@hint/utils';
import { debug as d } from '@hint/utils-debug';
import { ResourceLoader } from 'jsdom';

import { FetchEnd, FetchError, NetworkData } from 'hint';
@@ -17,6 +17,7 @@
{ "path": "../parser-html" },
{ "path": "../utils" },
{ "path": "../utils-connector-tools" },
{ "path": "../utils-create-server" }
{ "path": "../utils-create-server" },
{ "path": "../utils-debug" }
]
}
@@ -10,6 +10,7 @@
"dependencies": {
"@hint/utils": "^6.1.0",
"@hint/utils-connector-tools": "^4.0.14",
"@hint/utils-debug": "^1.0.0",
"is-ci": "^2.0.0",
"lockfile": "^1.0.4",
"puppeteer-core": "^1.20.0"
@@ -7,7 +7,6 @@ import * as puppeteer from 'puppeteer-core';
import {
Browser,
getInstallationPath,
debug as d,
createHTMLDocument,
traverse,
HTMLElement,
@@ -16,6 +15,7 @@ import {
getPlatform,
isRegularProtocol
} from '@hint/utils';
import { debug as d } from '@hint/utils-debug';
import { normalizeHeaders, Requester } from '@hint/utils-connector-tools';
import { IConnector, Engine, NetworkData } from 'hint';

@@ -1,5 +1,6 @@
import * as puppeteer from 'puppeteer-core';
import { getType, debug as d, HTMLDocument } from '@hint/utils';
import { getType, HTMLDocument } from '@hint/utils';
import { debug as d } from '@hint/utils-debug';
import { Events } from 'hint';
import { createFetchEndPayload, Fetcher } from './create-fetchend-payload';
import { getElementFromResponse } from './get-element-from-response';
@@ -1,6 +1,7 @@
import { URL } from 'url';

import { debug as d, HTMLDocument } from '@hint/utils';
import { HTMLDocument } from '@hint/utils';
import { debug as d } from '@hint/utils-debug';
import { Engine } from 'hint';

import { Fetcher } from './create-fetchend-payload';
@@ -6,7 +6,8 @@ import { spawn } from 'child_process';
import * as locker from 'lockfile';
import * as puppeteer from 'puppeteer-core';

import { debug as d, readFileAsync, writeFileAsync } from '@hint/utils';
import { readFileAsync, writeFileAsync } from '@hint/utils';
import { debug as d } from '@hint/utils-debug';
import { LaunchOptions } from 'puppeteer-core';

const debug: debug.IDebugger = d(__filename);
@@ -17,6 +17,7 @@
{ "path": "../parser-html" },
{ "path": "../utils" },
{ "path": "../utils-connector-tools" },
{ "path": "../utils-create-server" }
{ "path": "../utils-create-server" },
{ "path": "../utils-debug" }
]
}
@@ -7,6 +7,9 @@
],
"timeout": "1m"
},
"dependencies": {
{{{dependencyVersion "@hint/utils-debug"}}}
},
"description": "{{description}}",
"devDependencies": {
{{{dependencyVersion "@hint/utils-tests-helpers"}}},
@@ -5,7 +5,7 @@
import { HintContext } from 'hint/dist/src/lib/hint-context';
// The list of types depends on the events you want to capture.
import { IHint, {{hint.events}} } from 'hint/dist/src/lib/types';
import { debug as d } from '@hint/utils';
import { debug as d } from '@hint/utils-debug';

import meta from './meta{{#if hint.parentName}}/{{hint.normalizedName}}{{/if}}';
{{#if packageData.official}}
@@ -11,7 +11,10 @@
"create-hintrc": "./dist/src/create-hintrc.js"
},
"dependencies": {
"browserslist": "^4.7.2"
"@hint/utils": "^6.0.0",
"@hint/utils-debug": "^1.0.0",
"browserslist": "^4.7.2",
"inquirer": "^7.0.0"
},
"description": "webhint's configuration file initializer package",
"devDependencies": {
@@ -9,7 +9,8 @@
*/

import * as inquirer from 'inquirer';
import { debug as d, logger } from '@hint/utils';
import { logger } from '@hint/utils';
import { debug as d } from '@hint/utils-debug';

const browserslist = require('browserslist'); // `require` used because `browserslist` exports a function
const debug: debug.IDebugger = d(__filename);
@@ -18,12 +18,12 @@ import { ResourceType, UserConfig, utils } from 'hint';
import {
appInsights,
cwd,
debug as d,
getOfficialPackages,
installPackages,
logger,
NpmPackage
} from '@hint/utils';
import { debug as d } from '@hint/utils-debug';

import { generateBrowserslistConfig } from './browserslist';

@@ -2,8 +2,6 @@ import * as proxyquire from 'proxyquire';
import * as sinon from 'sinon';
import anyTest, { TestInterface } from 'ava';

import * as utils from '@hint/utils';

type Inquirer = {
prompt: () => Promise<any>;
};
@@ -32,10 +30,7 @@ const invalidQueries = {

const loadScript = (context: BrowserslistContext): () => Promise<string> => {
const browserlist = proxyquire('../src/browserslist', {
'@hint/utils': {
debug: utils.debug,
logger: context.logger
},
'@hint/utils': { logger: context.logger },
inquirer: context.inquirer
});

@@ -14,6 +14,7 @@
],
"references": [
{ "path": "../hint" },
{ "path": "../utils" }
{ "path": "../utils" },
{ "path": "../utils-debug" }
]
}
@@ -10,6 +10,7 @@
"description": "hint formatter that prints the results using the codeframe style",
"dependencies": {
"@hint/utils": "^6.1.0",
"@hint/utils-debug": "^1.0.0",
"chalk": "^2.4.2",
"lodash": "^4.17.15",
"log-symbols": "^3.0.0",
@@ -18,7 +18,8 @@ import sortBy = require('lodash/sortBy');
import * as logSymbols from 'log-symbols';
const stripAnsi = require('strip-ansi');

import { cutString, debug as d, logger, writeFileAsync } from '@hint/utils';
import { cutString, logger, writeFileAsync } from '@hint/utils';
import { debug as d } from '@hint/utils-debug';
import { FormatterOptions, IFormatter, Problem, ProblemLocation, Severity } from 'hint';

import { getMessage } from './i18n.import';
@@ -35,7 +35,6 @@ const loadScript = (context: CodeframeContext) => {
const script = proxyquire('../src/formatter', {
'@hint/utils': {
cutString: utils.cutString,
debug: utils.debug,
fs: { },
logger: context.logging,
writeFileAsync: context.writeFileAsync
@@ -14,6 +14,7 @@
],
"references": [
{ "path": "../hint" },
{ "path": "../utils" }
{ "path": "../utils" },
{ "path": "../utils-debug" }
]
}
@@ -10,6 +10,7 @@
"description": "webhint formatter that outputs the result in an Excel file (xlsx)",
"dependencies": {
"@hint/utils": "^6.1.0",
"@hint/utils-debug": "^1.0.0",
"exceljs": "3.0.0",
"fs-extra": "^8.0.1",
"lodash": "^4.17.15"
@@ -16,7 +16,8 @@ import forEach = require('lodash/forEach');
import groupBy = require('lodash/groupBy');
import sortBy = require('lodash/sortBy');

import { cwd, debug as d, logger } from '@hint/utils';
import { cwd, logger } from '@hint/utils';
import { debug as d } from '@hint/utils-debug';
import { FormatterOptions, IFormatter, Problem } from 'hint';

import { getMessage } from './i18n.import';
@@ -14,6 +14,7 @@
],
"references": [
{ "path": "../hint" },
{ "path": "../utils" }
{ "path": "../utils" },
{ "path": "../utils-debug" }
]
}
@@ -10,6 +10,7 @@
"description": "A hint formatter that outputs the issues in an HTML file.",
"dependencies": {
"@hint/utils": "^6.1.0",
"@hint/utils-debug": "^1.0.0",
"ejs": "^2.7.1",
"fs-extra": "^8.0.1",
"lodash": "^4.17.15",
@@ -13,7 +13,8 @@ import * as path from 'path';
import * as ejs from 'ejs';
import * as fs from 'fs-extra';

import { cwd, Category, debug as d, logger } from '@hint/utils';
import { cwd, Category, logger } from '@hint/utils';
import { debug as d } from '@hint/utils-debug';
import { FormatterOptions, HintResources, IFormatter, Problem } from 'hint';

const utils = require('./utils');
@@ -14,6 +14,7 @@
],
"references": [
{ "path": "../hint" },
{ "path": "../utils" }
{ "path": "../utils" },
{ "path": "../utils-debug" }
]
}
@@ -10,6 +10,7 @@
"description": "webhint formatter that prints the JSON object of the results",
"dependencies": {
"@hint/utils": "^6.1.0",
"@hint/utils-debug": "^1.0.0",
"lodash": "^4.17.15"
},
"devDependencies": {
@@ -13,7 +13,8 @@ import groupBy = require('lodash/groupBy');
import reduce = require('lodash/reduce');
import sortBy = require('lodash/sortBy');

import { debug as d, logger, writeFileAsync } from '@hint/utils';
import { logger, writeFileAsync } from '@hint/utils';
import { debug as d } from '@hint/utils-debug';
import { FormatterOptions, IFormatter, Problem } from 'hint';

import { getMessage } from './i18n.import';
@@ -5,7 +5,6 @@ import * as sinon from 'sinon';
import * as proxyquire from 'proxyquire';

import { Severity } from 'hint';
import * as utils from '@hint/utils';

import * as problems from './fixtures/list-of-problems';

@@ -34,7 +33,6 @@ const initContext = (t: ExecutionContext<JSONContext>) => {
const loadScript = (context: JSONContext) => {
const script = proxyquire('../src/formatter', {
'@hint/utils': {
debug: utils.debug,
logger: context.logging,
writeFileAsync: context.writeFileAsync
}
@@ -14,6 +14,7 @@
],
"references": [
{ "path": "../hint" },
{ "path": "../utils" }
{ "path": "../utils" },
{ "path": "../utils-debug" }
]
}
@@ -10,6 +10,7 @@
"description": "webhint formatter that prints the results using the stylish style",
"dependencies": {
"@hint/utils": "^6.1.0",
"@hint/utils-debug": "^1.0.0",
"chalk": "^2.4.2",
"lodash": "^4.17.15",
"log-symbols": "^3.0.0",
@@ -19,7 +19,8 @@ import * as logSymbols from 'log-symbols';
import * as table from 'text-table';
const stripAnsi = require('strip-ansi');

import { cutString, debug as d, logger, writeFileAsync } from '@hint/utils';
import { cutString, logger, writeFileAsync } from '@hint/utils';
import { debug as d } from '@hint/utils-debug';
import { FormatterOptions, IFormatter, Problem, Severity } from 'hint';

import { getMessage } from './i18n.import';
@@ -36,7 +36,6 @@ const loadScript = (context: StylishContext) => {
const script = proxyquire('../src/formatter', {
'@hint/utils': {
cutString: utils.cutString,
debug: utils.debug,
logger: context.logging,
writeFileAsync: context.writeFileAsync
}
@@ -14,6 +14,7 @@
],
"references": [
{ "path": "../hint" },
{ "path": "../utils" }
{ "path": "../utils" },
{ "path": "../utils-debug" }
]
}
@@ -9,6 +9,7 @@
},
"dependencies": {
"@hint/utils": "^6.1.0",
"@hint/utils-debug": "^1.0.0",
"chalk": "^2.4.2",
"lodash": "^4.17.15",
"log-symbols": "^3.0.0",
@@ -15,7 +15,8 @@ import * as table from 'text-table';
import * as logSymbols from 'log-symbols';
const stripAnsi = require('strip-ansi');

import { debug as d, logger, writeFileAsync } from '@hint/utils';
import { logger, writeFileAsync } from '@hint/utils';
import { debug as d } from '@hint/utils-debug';
import { FormatterOptions, IFormatter, Problem, Severity } from 'hint';

const _ = {

0 comments on commit 45f015d

Please sign in to comment.
You canโ€™t perform that action at this time.