Skip to content
Permalink
Browse files

Chore: Update references to the new @hint/utils-types

  • Loading branch information
sarvaje committed Oct 28, 2019
1 parent 7aa67bf commit 97bb31d0fafb53572220cd647bb493716587ca2b
Showing with 432 additions and 262 deletions.
  1. +3 βˆ’1 packages/create-hint/package.json
  2. +2 βˆ’1 packages/create-hint/src/create-hint.ts
  3. +1 βˆ’1 packages/create-hint/src/templates/meta.ts.hbs
  4. +2 βˆ’1 packages/create-hint/tsconfig.json
  5. +1 βˆ’0 packages/extension-browser/package.json
  6. +3 βˆ’2 packages/extension-browser/src/content-script/formatter.ts
  7. +1 βˆ’1 packages/extension-browser/src/devtools/utils/categories.ts
  8. +1 βˆ’1 packages/extension-browser/src/devtools/views/pages/results/category-summary.tsx
  9. +2 βˆ’1 packages/extension-browser/src/devtools/views/pages/results/hint.tsx
  10. +1 βˆ’1 packages/extension-browser/src/devtools/views/pages/results/message-group.tsx
  11. +1 βˆ’1 packages/extension-browser/src/devtools/views/pages/results/problem.tsx
  12. +3 βˆ’2 packages/extension-browser/src/shared/types.ts
  13. +1 βˆ’1 packages/extension-browser/tests/content-script.ts
  14. +1 βˆ’1 packages/extension-browser/tests/devtools.ts
  15. +1 βˆ’1 packages/extension-browser/tests/devtools/utils/hints.ts
  16. +2 βˆ’1 packages/extension-browser/tsconfig.json
  17. +8 βˆ’2 packages/extension-vscode/package.json
  18. +1 βˆ’1 packages/extension-vscode/src/utils/analytics.ts
  19. +1 βˆ’1 packages/extension-vscode/src/utils/problems.ts
  20. +2 βˆ’1 packages/extension-vscode/tests/utils/analytics.ts
  21. +1 βˆ’1 packages/extension-vscode/tests/utils/problems.ts
  22. +2 βˆ’1 packages/extension-vscode/tsconfig.json
  23. +1 βˆ’0 packages/formatter-codeframe/package.json
  24. +2 βˆ’2 packages/formatter-codeframe/src/formatter.ts
  25. +1 βˆ’2 packages/formatter-codeframe/tests/fixtures/list-of-problems.ts
  26. +2 βˆ’1 packages/formatter-codeframe/tsconfig.json
  27. +1 βˆ’0 packages/formatter-excel/package.json
  28. +2 βˆ’1 packages/formatter-excel/src/formatter.ts
  29. +1 βˆ’2 packages/formatter-excel/tests/fixtures/list-of-problems.ts
  30. +2 βˆ’1 packages/formatter-excel/tsconfig.json
  31. +1 βˆ’0 packages/formatter-html/package.json
  32. +3 βˆ’2 packages/formatter-html/src/formatter.ts
  33. +3 βˆ’2 packages/formatter-html/src/result.ts
  34. +1 βˆ’2 packages/formatter-html/tests/fixtures/list-of-problems.ts
  35. +1 βˆ’1 packages/formatter-html/tests/tests.ts
  36. +2 βˆ’1 packages/formatter-html/tsconfig.json
  37. +1 βˆ’0 packages/formatter-json/package.json
  38. +2 βˆ’1 packages/formatter-json/src/formatter.ts
  39. +1 βˆ’2 packages/formatter-json/tests/fixtures/list-of-problems.ts
  40. +1 βˆ’1 packages/formatter-json/tests/tests.ts
  41. +2 βˆ’1 packages/formatter-json/tsconfig.json
  42. +1 βˆ’0 packages/formatter-stylish/package.json
  43. +2 βˆ’1 packages/formatter-stylish/src/formatter.ts
  44. +1 βˆ’2 packages/formatter-stylish/tests/fixtures/list-of-problems.ts
  45. +2 βˆ’1 packages/formatter-stylish/tsconfig.json
  46. +1 βˆ’0 packages/formatter-summary/package.json
  47. +2 βˆ’1 packages/formatter-summary/src/formatter.ts
  48. +1 βˆ’2 packages/formatter-summary/tests/fixtures/list-of-problems.ts
  49. +2 βˆ’1 packages/formatter-summary/tsconfig.json
  50. +1 βˆ’0 packages/hint-amp-validator/package.json
  51. +1 βˆ’1 packages/hint-amp-validator/src/meta.ts
  52. +2 βˆ’1 packages/hint-amp-validator/tsconfig.json
  53. +1 βˆ’0 packages/hint-apple-touch-icons/package.json
  54. +2 βˆ’1 packages/hint-apple-touch-icons/src/meta.ts
  55. +2 βˆ’1 packages/hint-apple-touch-icons/tsconfig.json
  56. +1 βˆ’0 packages/hint-axe/package.json
  57. +1 βˆ’1 packages/hint-axe/scripts/create/create-metas.js
  58. +1 βˆ’1 packages/hint-axe/src/meta/aria.ts
  59. +1 βˆ’1 packages/hint-axe/src/meta/color.ts
  60. +1 βˆ’1 packages/hint-axe/src/meta/forms.ts
  61. +1 βˆ’1 packages/hint-axe/src/meta/keyboard.ts
  62. +1 βˆ’1 packages/hint-axe/src/meta/language.ts
  63. +1 βˆ’1 packages/hint-axe/src/meta/name-role-value.ts
  64. +1 βˆ’1 packages/hint-axe/src/meta/other.ts
  65. +1 βˆ’1 packages/hint-axe/src/meta/parsing.ts
  66. +1 βˆ’1 packages/hint-axe/src/meta/semantics.ts
  67. +1 βˆ’1 packages/hint-axe/src/meta/sensory-and-visual-cues.ts
  68. +1 βˆ’1 packages/hint-axe/src/meta/structure.ts
  69. +1 βˆ’1 packages/hint-axe/src/meta/tables.ts
  70. +1 βˆ’1 packages/hint-axe/src/meta/text-alternatives.ts
  71. +1 βˆ’1 packages/hint-axe/src/meta/time-and-media.ts
  72. +2 βˆ’1 packages/hint-axe/src/util/axe.ts
  73. +2 βˆ’1 packages/hint-axe/tsconfig.json
  74. +2 βˆ’1 packages/hint-babel-config/package.json
  75. +2 βˆ’1 packages/hint-babel-config/src/meta/is-valid.ts
  76. +2 βˆ’1 packages/hint-babel-config/tsconfig.json
  77. +2 βˆ’1 packages/hint-button-type/package.json
  78. +1 βˆ’1 packages/hint-button-type/src/meta.ts
  79. +2 βˆ’1 packages/hint-button-type/tsconfig.json
  80. +1 βˆ’0 packages/hint-compat-api/package.json
  81. +1 βˆ’1 packages/hint-compat-api/src/meta/css.ts
  82. +1 βˆ’1 packages/hint-compat-api/src/meta/html.ts
  83. +2 βˆ’1 packages/hint-compat-api/tsconfig.json
  84. +2 βˆ’1 packages/hint-content-type/package.json
  85. +1 βˆ’1 packages/hint-content-type/src/meta.ts
  86. +2 βˆ’1 packages/hint-content-type/tsconfig.json
  87. +2 βˆ’1 packages/hint-create-element-svg/package.json
  88. +1 βˆ’1 packages/hint-create-element-svg/src/meta.ts
  89. +2 βˆ’1 packages/hint-create-element-svg/tsconfig.json
  90. +1 βˆ’0 packages/hint-css-prefix-order/package.json
  91. +1 βˆ’1 packages/hint-css-prefix-order/src/meta.ts
  92. +2 βˆ’1 packages/hint-css-prefix-order/tsconfig.json
  93. +2 βˆ’1 packages/hint-disown-opener/package.json
  94. +1 βˆ’1 packages/hint-disown-opener/src/meta.ts
  95. +2 βˆ’1 packages/hint-disown-opener/tsconfig.json
  96. +2 βˆ’1 packages/hint-doctype/package.json
  97. +3 βˆ’1 packages/hint-doctype/src/hint.ts
  98. +2 βˆ’1 packages/hint-doctype/src/meta.ts
  99. +1 βˆ’1 packages/hint-doctype/src/types.ts
  100. +2 βˆ’1 packages/hint-doctype/tsconfig.json
  101. +2 βˆ’1 packages/hint-highest-available-document-mode/package.json
  102. +1 βˆ’1 packages/hint-highest-available-document-mode/src/meta.ts
  103. +2 βˆ’1 packages/hint-highest-available-document-mode/tsconfig.json
  104. +1 βˆ’0 packages/hint-html-checker/package.json
  105. +2 βˆ’1 packages/hint-html-checker/src/hint.ts
  106. +2 βˆ’1 packages/hint-html-checker/src/meta.ts
  107. +2 βˆ’1 packages/hint-html-checker/tsconfig.json
  108. +2 βˆ’1 packages/hint-http-cache/package.json
  109. +1 βˆ’1 packages/hint-http-cache/src/meta.ts
  110. +2 βˆ’1 packages/hint-http-cache/tsconfig.json
  111. +1 βˆ’0 packages/hint-http-compression/package.json
  112. +2 βˆ’1 packages/hint-http-compression/src/meta.ts
  113. +2 βˆ’1 packages/hint-http-compression/tsconfig.json
  114. +2 βˆ’1 packages/hint-https-only/package.json
  115. +2 βˆ’1 packages/hint-https-only/src/meta.ts
  116. +2 βˆ’1 packages/hint-https-only/tsconfig.json
  117. +1 βˆ’0 packages/hint-image-optimization-cloudinary/package.json
  118. +2 βˆ’1 packages/hint-image-optimization-cloudinary/src/meta.ts
  119. +2 βˆ’1 packages/hint-image-optimization-cloudinary/tsconfig.json
  120. +1 βˆ’0 packages/hint-manifest-app-name/package.json
  121. +1 βˆ’1 packages/hint-manifest-app-name/src/meta.ts
  122. +2 βˆ’1 packages/hint-manifest-app-name/tsconfig.json
  123. +2 βˆ’1 packages/hint-manifest-exists/package.json
  124. +2 βˆ’1 packages/hint-manifest-exists/src/meta.ts
  125. +2 βˆ’1 packages/hint-manifest-exists/tsconfig.json
  126. +2 βˆ’1 packages/hint-manifest-file-extension/package.json
  127. +1 βˆ’1 packages/hint-manifest-file-extension/src/meta.ts
  128. +2 βˆ’1 packages/hint-manifest-file-extension/tsconfig.json
  129. +1 βˆ’0 packages/hint-manifest-icons/package.json
  130. +3 βˆ’2 packages/hint-manifest-icons/src/hint.ts
  131. +1 βˆ’1 packages/hint-manifest-icons/src/meta.ts
  132. +2 βˆ’1 packages/hint-manifest-icons/tsconfig.json
  133. +1 βˆ’0 packages/hint-manifest-is-valid/package.json
  134. +1 βˆ’1 packages/hint-manifest-is-valid/src/meta.ts
  135. +2 βˆ’1 packages/hint-manifest-is-valid/tsconfig.json
  136. +2 βˆ’1 packages/hint-manifest-scoped-urls/package.json
  137. +2 βˆ’1 packages/hint-manifest-scoped-urls/src/hint.ts
  138. +1 βˆ’1 packages/hint-manifest-scoped-urls/src/meta.ts
  139. +2 βˆ’1 packages/hint-manifest-scoped-urls/tsconfig.json
  140. +2 βˆ’1 packages/hint-meta-charset-utf-8/package.json
  141. +1 βˆ’1 packages/hint-meta-charset-utf-8/src/meta.ts
  142. +2 βˆ’1 packages/hint-meta-charset-utf-8/tsconfig.json
  143. +1 βˆ’0 packages/hint-meta-theme-color/package.json
  144. +2 βˆ’1 packages/hint-meta-theme-color/src/meta.ts
  145. +2 βˆ’1 packages/hint-meta-theme-color/tsconfig.json
  146. +1 βˆ’0 packages/hint-meta-viewport/package.json
  147. +1 βˆ’1 packages/hint-meta-viewport/src/meta.ts
  148. +2 βˆ’1 packages/hint-meta-viewport/tsconfig.json
  149. +2 βˆ’1 packages/hint-minified-js/package.json
  150. +1 βˆ’1 packages/hint-minified-js/src/meta.ts
  151. +2 βˆ’1 packages/hint-minified-js/tsconfig.json
  152. +2 βˆ’1 packages/hint-no-bom/package.json
  153. +2 βˆ’1 packages/hint-no-bom/src/meta.ts
  154. +2 βˆ’1 packages/hint-no-bom/tsconfig.json
  155. +2 βˆ’1 packages/hint-no-broken-links/package.json
  156. +2 βˆ’1 packages/hint-no-broken-links/src/meta.ts
  157. +2 βˆ’1 packages/hint-no-broken-links/tsconfig.json
  158. +2 βˆ’1 packages/hint-no-disallowed-headers/package.json
  159. +1 βˆ’1 packages/hint-no-disallowed-headers/src/meta.ts
  160. +2 βˆ’1 packages/hint-no-disallowed-headers/tsconfig.json
  161. +2 βˆ’1 packages/hint-no-friendly-error-pages/package.json
  162. +2 βˆ’1 packages/hint-no-friendly-error-pages/src/meta.ts
  163. +2 βˆ’1 packages/hint-no-friendly-error-pages/tsconfig.json
  164. +2 βˆ’1 packages/hint-no-html-only-headers/package.json
  165. +1 βˆ’1 packages/hint-no-html-only-headers/src/meta.ts
  166. +2 βˆ’1 packages/hint-no-html-only-headers/tsconfig.json
  167. +2 βˆ’1 packages/hint-no-http-redirects/package.json
  168. +1 βˆ’1 packages/hint-no-http-redirects/src/meta.ts
  169. +2 βˆ’1 packages/hint-no-http-redirects/tsconfig.json
  170. +2 βˆ’1 packages/hint-no-p3p/package.json
  171. +2 βˆ’1 packages/hint-no-p3p/src/meta.ts
  172. +2 βˆ’1 packages/hint-no-p3p/tsconfig.json
  173. +2 βˆ’1 packages/hint-no-protocol-relative-urls/package.json
  174. +1 βˆ’1 packages/hint-no-protocol-relative-urls/src/meta.ts
  175. +2 βˆ’1 packages/hint-no-protocol-relative-urls/tsconfig.json
  176. +1 βˆ’0 packages/hint-no-vulnerable-javascript-libraries/package.json
  177. +4 βˆ’3 packages/hint-no-vulnerable-javascript-libraries/src/hint.ts
  178. +1 βˆ’1 packages/hint-no-vulnerable-javascript-libraries/src/meta.ts
  179. +2 βˆ’1 packages/hint-no-vulnerable-javascript-libraries/tsconfig.json
  180. +2 βˆ’1 packages/hint-performance-budget/package.json
  181. +2 βˆ’1 packages/hint-performance-budget/src/meta.ts
  182. +2 βˆ’1 packages/hint-performance-budget/tsconfig.json
  183. +2 βˆ’1 packages/hint-scoped-svg-styles/package.json
  184. +1 βˆ’1 packages/hint-scoped-svg-styles/src/meta.ts
  185. +2 βˆ’1 packages/hint-scoped-svg-styles/tsconfig.json
  186. +2 βˆ’1 packages/hint-sri/package.json
  187. +1 βˆ’1 packages/hint-sri/src/meta.ts
  188. +2 βˆ’1 packages/hint-sri/tsconfig.json
  189. +1 βˆ’0 packages/hint-ssllabs/package.json
  190. +2 βˆ’1 packages/hint-ssllabs/src/meta.ts
  191. +2 βˆ’1 packages/hint-ssllabs/tsconfig.json
  192. +2 βˆ’1 packages/hint-strict-transport-security/package.json
  193. +2 βˆ’1 packages/hint-strict-transport-security/src/meta.ts
  194. +2 βˆ’1 packages/hint-strict-transport-security/tsconfig.json
  195. +2 βˆ’1 packages/hint-stylesheet-limits/package.json
  196. +1 βˆ’1 packages/hint-stylesheet-limits/src/meta.ts
  197. +2 βˆ’1 packages/hint-stylesheet-limits/tsconfig.json
  198. +6 βˆ’5 packages/hint-summary-display/package.json
  199. +1 βˆ’1 packages/hint-summary-display/src/meta.ts
  200. +2 βˆ’1 packages/hint-summary-display/tsconfig.json
  201. +2 βˆ’1 packages/hint-typescript-config/package.json
  202. +2 βˆ’1 packages/hint-typescript-config/src/meta/consistent-casing.ts
  203. +2 βˆ’1 packages/hint-typescript-config/src/meta/import-helpers.ts
  204. +2 βˆ’1 packages/hint-typescript-config/src/meta/is-valid.ts
  205. +2 βˆ’1 packages/hint-typescript-config/src/meta/no-comments.ts
  206. +2 βˆ’1 packages/hint-typescript-config/src/meta/strict.ts
  207. +2 βˆ’1 packages/hint-typescript-config/src/meta/target.ts
  208. +2 βˆ’1 packages/hint-typescript-config/tsconfig.json
  209. +2 βˆ’1 packages/hint-validate-set-cookie-header/package.json
  210. +1 βˆ’1 packages/hint-validate-set-cookie-header/src/meta.ts
  211. +2 βˆ’1 packages/hint-validate-set-cookie-header/tsconfig.json
  212. +2 βˆ’1 packages/hint-webpack-config/package.json
  213. +2 βˆ’1 packages/hint-webpack-config/src/meta/config-exists.ts
  214. +2 βˆ’1 packages/hint-webpack-config/src/meta/is-installed.ts
  215. +2 βˆ’1 packages/hint-webpack-config/src/meta/is-valid.ts
  216. +2 βˆ’1 packages/hint-webpack-config/src/meta/module-esnext-typescript.ts
  217. +2 βˆ’1 packages/hint-webpack-config/src/meta/modules-false-babel.ts
  218. +2 βˆ’1 packages/hint-webpack-config/src/meta/no-devtool-in-prod.ts
  219. +2 βˆ’1 packages/hint-webpack-config/tsconfig.json
  220. +2 βˆ’1 packages/hint-x-content-type-options/package.json
  221. +1 βˆ’1 packages/hint-x-content-type-options/src/meta.ts
  222. +2 βˆ’1 packages/hint-x-content-type-options/tsconfig.json
  223. +1 βˆ’1 packages/hint/docs/contributor-guide/how-to/hint.md
  224. +1 βˆ’0 packages/hint/package.json
  225. +2 βˆ’2 packages/hint/src/lib/analyzer.ts
  226. +1 βˆ’1 packages/hint/src/lib/cli/analyze.ts
  227. +1 βˆ’1 packages/hint/src/lib/config/config-hints.ts
  228. +2 βˆ’4 packages/hint/src/lib/engine.ts
  229. +3 βˆ’2 packages/hint/src/lib/hint-context.ts
  230. +1 βˆ’1 packages/hint/src/lib/types/analyzer.ts
  231. +1 βˆ’1 packages/hint/src/lib/types/events.ts
  232. +1 βˆ’1 packages/hint/src/lib/types/formatters.ts
  233. +1 βˆ’1 packages/hint/src/lib/types/hint-meta.ts
  234. +1 βˆ’1 packages/hint/tests/lib/analyzer.ts
  235. +2 βˆ’1 packages/hint/tests/lib/cli/analyze.ts
  236. +2 βˆ’2 packages/hint/tests/lib/engine.ts
  237. +1 βˆ’1 packages/hint/tests/lib/hint-context.ts
  238. +2 βˆ’1 packages/hint/tsconfig.json
  239. +2 βˆ’1 packages/parser-manifest/package.json
  240. +2 βˆ’2 packages/parser-manifest/tests/tests.ts
  241. +2 βˆ’1 packages/parser-manifest/tsconfig.json
  242. +0 βˆ’1 packages/parser-typescript/tsconfig.json
  243. +1 βˆ’1 packages/utils-i18n/package.json
  244. +1 βˆ’1 packages/utils-i18n/src/get-category-name.ts
  245. +1 βˆ’1 packages/utils-i18n/tsconfig.json
  246. +1 βˆ’0 packages/utils-tests-helpers/package.json
  247. +2 βˆ’1 packages/utils-tests-helpers/src/hint-runner.ts
  248. +1 βˆ’1 packages/utils-tests-helpers/src/hint-test-type.ts
  249. +2 βˆ’1 packages/utils-tests-helpers/tsconfig.json
  250. +5 βˆ’2 packages/utils-types/src/severity.ts
  251. +1 βˆ’0 packages/utils/package.json
  252. +1 βˆ’1 packages/utils/src/config/normalize-hints.ts
  253. +1 βˆ’1 packages/utils/src/dom/html.ts
  254. +1 βˆ’1 packages/utils/src/json-parser.ts
  255. +1 βˆ’1 packages/utils/src/report/get-css-location-from-node.ts
  256. +1 βˆ’1 packages/utils/src/schema-validation/schema-validation-result.ts
  257. +1 βˆ’1 packages/utils/src/types/config.ts
  258. +1 βˆ’1 packages/utils/src/types/json-parser.ts
  259. +2 βˆ’1 packages/utils/tsconfig.json
  260. +2 βˆ’1 tsconfig.json
@@ -10,7 +10,9 @@
"bin": {
"create-hint": "./dist/src/create-hint.js"
},
"dependencies": {},
"dependencies": {
"@hint/utils-types": "^1.0.0"
},
"description": "webhint's hint initializer package",
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^1.13.0",
@@ -15,7 +15,8 @@ import {
toPascalCase,
writeFileAsync
} from '@hint/utils';
import { Category, HintScope } from 'hint';
import { Category } from '@hint/utils-types';
import { HintScope } from 'hint';

import Handlebars, { compileTemplate, escapeSafeString } from './handlebars-utils';

@@ -1,4 +1,4 @@
import { Category } from 'hint/dist/src/lib/enums/category';
import { Category } from '@hint/utils-types';
import { HintScope } from 'hint/dist/src/lib/enums/hint-scope';
import { HintMetadata } from 'hint/dist/src/lib/types';
{{#if packageData.official}}
@@ -15,6 +15,7 @@
"references": [
{ "path": "../hint" },
{ "path": "../utils" },
{ "path": "../utils-tests-helpers" }
{ "path": "../utils-tests-helpers" },
{ "path": "../utils-types" }
]
}
@@ -44,6 +44,7 @@
"@hint/utils": "^6.1.0",
"@hint/utils-create-server": "^3.3.0",
"@hint/utils-i18n": "^1.0.0",
"@hint/utils-types": "^1.0.0",
"@microsoft/applicationinsights-web-basic": "^2.2.0",
"@types/chrome": "^0.0.91",
"@types/har-format": "^1.2.4",
@@ -1,5 +1,6 @@
import { Category } from 'hint/dist/src/lib/enums/category';
import { FormatterOptions, HintResources, IFormatter, IHintConstructor, Problem } from 'hint/dist/src/lib/types';
import { Category } from '@hint/utils-types/dist/src/category';
import { Problem } from '@hint/utils-types/dist/src/problems';
import { FormatterOptions, HintResources, IFormatter, IHintConstructor } from 'hint/dist/src/lib/types';

import { browser } from '../shared/globals';
import { CategoryResults, HintResults } from '../shared/types';
@@ -1,4 +1,4 @@
import { Category } from 'hint/dist/src/lib/enums/category';
import { Category } from '@hint/utils-types/dist/src/category';

import metas from '../../shared/metas.import';

@@ -1,7 +1,7 @@
import * as React from 'react';

import { getCategoryName } from '@hint/utils-i18n/dist/src/get-category-name';
import { Severity } from '@hint/utils/dist/src/types/problems';
import { Severity } from '@hint/utils-types/dist/src/severity';

import { CategoryResults, HintResults } from '../../../../shared/types';

@@ -1,6 +1,7 @@
import * as React from 'react';

import { Problem as ProblemData, Severity } from '@hint/utils/dist/src/types/problems';
import { Problem as ProblemData } from '@hint/utils-types/dist/src/problems';
import { Severity } from '@hint/utils-types/dist/src/severity';

import { HintResults } from '../../../../shared/types';

@@ -1,6 +1,6 @@
import * as React from 'react';

import { Problem as ProblemData } from '@hint/utils/dist/src/types/problems';
import { Problem as ProblemData } from '@hint/utils-types/dist/src/problems';

import Summary from '../../controls/summary';

@@ -1,7 +1,7 @@
import * as React from 'react';
import { useCallback, MouseEvent } from 'react';

import { Problem as ProblemData } from '@hint/utils/dist/src/types/problems';
import { Problem as ProblemData } from '@hint/utils-types/dist/src/problems';

import { browser } from '../../../../shared/globals';

@@ -1,5 +1,6 @@
import { Category } from 'hint/dist/src/lib/enums/category';
import { FetchEnd, FetchStart, Problem } from 'hint/dist/src/lib/types';
import { Category } from '@hint/utils-types/dist/src/category';
import { Problem } from '@hint/utils-types/dist/src/problems';
import { FetchEnd, FetchStart } from 'hint/dist/src/lib/types';

export type Config = {
disabledCategories?: string[];
@@ -3,7 +3,7 @@ import * as proxyquire from 'proxyquire';
import * as sinon from 'sinon';
import test from 'ava';

import { Category } from 'hint/dist/src/lib/enums/category';
import { Category } from '@hint/utils-types/dist/src/category';
import { FetchEnd } from 'hint/dist/src/lib/types';

import { Config, Events, Results } from '../src/shared/types';
@@ -2,7 +2,7 @@ import * as path from 'path';
import { launch } from 'puppeteer-core';
import test from 'ava';

import { Category } from 'hint';
import { Category } from '@hint/utils-types';

import { getInstallationPath, readFileAsync } from '@hint/utils';
import { Server } from '@hint/utils-create-server';
@@ -1,5 +1,5 @@
import test from 'ava';
import { Category } from 'hint';
import { Category } from '@hint/utils-types';

import { determineHintStatus, HintStatus } from '../../../src/devtools/utils/hints';

@@ -47,6 +47,7 @@
{ "path": "../parser-manifest" },
{ "path": "../utils" },
{ "path": "../utils-create-server" },
{ "path": "../utils-i18n" }
{ "path": "../utils-i18n" },
{ "path": "../utils-types" }
]
}
@@ -46,6 +46,9 @@
}
}
},
"dependencies": {
"@hint/utils-types": "^1.0.0"
},
"description": "Run webhint in Visual Studio Code.",
"devDependencies": {
"@types/node": "^12.7.5",
@@ -82,6 +85,9 @@
"license": "Apache-2.0",
"main": "./dist/bundle/extension",
"name": "vscode-webhint",
"nyc": {
"extends": "../../.nycrc"
},
"preview": true,
"publisher": "webhint",
"repository": {
@@ -101,8 +107,8 @@
"lint:dependencies": "node ../../scripts/lint-dependencies.js",
"lint:md": "node ../../scripts/lint-markdown.js",
"test": "npm run lint && npm run build:assets && npm run build:ts && npm run test-only",
"test-only": "nyc ava && npm run build-release && vsce package && npm run validate-bundle-size",
"test-release": "npm run lint && npm run build-release && ava && vsce package && npm run validate-bundle-size",
"test-only": "nyc ava && npm run build-release && vsce package --yarn && npm run validate-bundle-size",
"test-release": "npm run lint && npm run build-release && ava && vsce package --yarn && npm run validate-bundle-size",
"validate-bundle-size": "node ./scripts/bundle-size.js",
"vscode:prepublish": "npm run build-release",
"watch": "npm run build && npm-run-all --parallel -c watch:*",
@@ -4,7 +4,7 @@ import { trackEvent } from './app-insights';

export type ResultData = {
hints: import('hint').IHintConstructor[];
problems: import('hint').Problem[];
problems: import('@hint/utils-types').Problem[];
};

export type TelemetryState = 'ask' | 'disabled' | 'enabled';
@@ -1,6 +1,6 @@
import { Diagnostic, DiagnosticSeverity } from 'vscode-languageserver';

import { Problem, Severity } from 'hint';
import { Problem, Severity } from '@hint/utils-types';

// Translate a webhint severity into the VSCode DiagnosticSeverity format.
const webhintToDiagnosticServerity = (severity: Severity): DiagnosticSeverity => {
@@ -1,7 +1,8 @@
import * as proxyquire from 'proxyquire';
import * as sinon from 'sinon';
import test from 'ava';
import { IHintConstructor, Problem } from 'hint';
import { Problem } from '@hint/utils-types';
import { IHintConstructor } from 'hint';

const stubContext = () => {
const stubs = { './app-insights': {} as typeof import('../../src/utils/app-insights') };
@@ -1,6 +1,6 @@
import test from 'ava';

import { Problem, Severity } from 'hint';
import { Problem, Severity } from '@hint/utils-types';
import { DiagnosticSeverity } from 'vscode-languageserver';

import { problemToDiagnostic } from '../../src/utils/problems';
@@ -13,6 +13,7 @@
"tests/**/*.ts"
],
"references": [
{ "path": "../hint" }
{ "path": "../hint" },
{ "path": "../utils-types" }
]
}
@@ -12,6 +12,7 @@
"@hint/utils": "^6.1.0",
"@hint/utils-debug": "^1.0.0",
"@hint/utils-i18n": "^1.0.0",
"@hint/utils-types": "^1.0.0",
"chalk": "^2.4.2",
"lodash": "^4.17.15",
"log-symbols": "^3.0.0",
@@ -20,8 +20,8 @@ const stripAnsi = require('strip-ansi');

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

import { FormatterOptions, IFormatter } from 'hint';
import { Problem, ProblemLocation, Severity } from '@hint/utils-types';
import { getMessage } from './i18n.import';

const _ = {
@@ -1,5 +1,4 @@
import { Problem, Severity } from 'hint/dist/src/lib/types';
import { Category } from 'hint/dist/src/lib/enums/category';
import { Category, Problem, Severity } from '@hint/utils-types';

const codeframeproblems: Problem[] = [{
category: Category.other,
@@ -16,6 +16,7 @@
{ "path": "../hint" },
{ "path": "../utils" },
{ "path": "../utils-debug" },
{ "path": "../utils-i18n" }
{ "path": "../utils-i18n" },
{ "path": "../utils-types" }
]
}
@@ -12,6 +12,7 @@
"@hint/utils": "^6.1.0",
"@hint/utils-debug": "^1.0.0",
"@hint/utils-i18n": "^1.0.0",
"@hint/utils-types": "^1.0.0",
"exceljs": "3.0.0",
"fs-extra": "^8.0.1",
"lodash": "^4.17.15"
@@ -18,7 +18,8 @@ import sortBy = require('lodash/sortBy');

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

import { getMessage } from './i18n.import';

@@ -1,5 +1,4 @@
import { Problem, Severity } from 'hint/dist/src/lib/types';
import { Category } from 'hint/dist/src/lib/enums/category';
import { Category, Problem, Severity } from '@hint/utils-types';

const multipleproblems: Problem[] = [{
category: Category.other,
@@ -16,6 +16,7 @@
{ "path": "../hint" },
{ "path": "../utils" },
{ "path": "../utils-debug" },
{ "path": "../utils-i18n" }
{ "path": "../utils-i18n" },
{ "path": "../utils-types" }
]
}
@@ -12,6 +12,7 @@
"@hint/utils": "^6.1.0",
"@hint/utils-debug": "^1.0.0",
"@hint/utils-i18n": "^1.0.0",
"@hint/utils-types": "^1.0.0",
"ejs": "^2.7.1",
"fs-extra": "^8.0.1",
"lodash": "^4.17.15",
@@ -13,9 +13,10 @@ import * as path from 'path';
import * as ejs from 'ejs';
import * as fs from 'fs-extra';

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

const utils = require('./utils');

@@ -4,9 +4,10 @@ import * as moment from 'moment';

import cloneDeep = require('lodash/cloneDeep');

import { Category, loadJSONFile } from '@hint/utils';
import { Category, Problem, Severity } from '@hint/utils-types';
import { loadJSONFile } from '@hint/utils';
import { getCategoryName } from '@hint/utils-i18n';
import { FormatterOptions, Severity, Problem } from 'hint';
import { FormatterOptions } from 'hint';

const thirdPartyServices = loadJSONFile(path.join(__dirname, 'configs', 'third-party-service-config.json'));
const categoryImages = loadJSONFile(path.join(__dirname, 'configs', 'category-images.json'));
@@ -1,5 +1,4 @@
import { Problem, Severity } from 'hint/dist/src/lib/types';
import { Category } from 'hint/dist/src/lib/enums/category';
import { Category, Problem, Severity } from '@hint/utils-types';

const multipleproblems: Problem[] = [{
category: Category.other,
@@ -3,7 +3,7 @@ import * as path from 'path';
import anyTest, { TestInterface, ExecutionContext } from 'ava';
import * as proxyquire from 'proxyquire';
import * as sinon from 'sinon';
import { Category } from 'hint';
import { Category } from '@hint/utils-types';

import Result from '../src/result';
import * as problems from './fixtures/list-of-problems';
@@ -16,6 +16,7 @@
{ "path": "../hint" },
{ "path": "../utils" },
{ "path": "../utils-debug" },
{ "path": "../utils-i18n" }
{ "path": "../utils-i18n" },
{ "path": "../utils-types" }
]
}
@@ -12,6 +12,7 @@
"@hint/utils": "^6.1.0",
"@hint/utils-debug": "^1.0.0",
"@hint/utils-i18n": "^1.0.0",
"@hint/utils-types": "^1.0.0",
"lodash": "^4.17.15"
},
"devDependencies": {
@@ -15,7 +15,8 @@ import sortBy = require('lodash/sortBy');

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

import { getMessage } from './i18n.import';

@@ -1,5 +1,4 @@
import { Problem, Severity } from 'hint/dist/src/lib/types';
import { Category } from 'hint/dist/src/lib/enums/category';
import { Category, Problem, Severity } from '@hint/utils-types';

const multipleproblems: Problem[] = [{
category: Category.other,
@@ -4,7 +4,7 @@ import anyTest, { TestInterface, ExecutionContext } from 'ava';
import * as sinon from 'sinon';
import * as proxyquire from 'proxyquire';

import { Severity } from 'hint';
import { Severity } from '@hint/utils-types';

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

@@ -16,6 +16,7 @@
{ "path": "../hint" },
{ "path": "../utils" },
{ "path": "../utils-debug" },
{ "path": "../utils-i18n" }
{ "path": "../utils-i18n" },
{ "path": "../utils-types" }
]
}
@@ -12,6 +12,7 @@
"@hint/utils": "^6.1.0",
"@hint/utils-debug": "^1.0.0",
"@hint/utils-i18n": "^1.0.0",
"@hint/utils-types": "^1.0.0",
"chalk": "^2.4.2",
"lodash": "^4.17.15",
"log-symbols": "^3.0.0",

0 comments on commit 97bb31d

Please sign in to comment.
You can’t perform that action at this time.