Skip to content
Permalink
Browse files

Breaking: Remove `utils` in favor of `@hint/utils`

  • Loading branch information...
sarvaje authored and molant committed Mar 25, 2019
1 parent f8cbcef commit 09c5383540d207e1b1a1a96cf17a0a32c51ea946
Showing with 66 additions and 2,106 deletions.
  1. +0 −15 packages/hint/package.json
  2. +0 −105 packages/hint/src/lib/utils/app-insights.ts
  3. +0 −15 packages/hint/src/lib/utils/async-wrapper.ts
  4. +0 −3 packages/hint/src/lib/utils/caniuse.ts
  5. +0 −17 packages/hint/src/lib/utils/config-store.ts
  6. +6 −5 packages/hint/src/lib/utils/content-type.ts
  7. +0 −59 packages/hint/src/lib/utils/debug.ts
  8. +0 −3 packages/hint/src/lib/utils/fs/cwd.ts
  9. +0 −23 packages/hint/src/lib/utils/fs/file-extension.ts
  10. +0 −6 packages/hint/src/lib/utils/fs/file-name.ts
  11. +0 −12 packages/hint/src/lib/utils/fs/is-directory.ts
  12. +0 −12 packages/hint/src/lib/utils/fs/is-file.ts
  13. +0 −14 packages/hint/src/lib/utils/fs/load-js-file.ts
  14. +0 −8 packages/hint/src/lib/utils/fs/load-json-file.ts
  15. +0 −12 packages/hint/src/lib/utils/fs/path-exists.ts
  16. +0 −18 packages/hint/src/lib/utils/fs/read-file-async.ts
  17. +0 −8 packages/hint/src/lib/utils/fs/read-file.ts
  18. +0 −7 packages/hint/src/lib/utils/fs/write-file-async.ts
  19. +0 −73 packages/hint/src/lib/utils/hint-helpers.ts
  20. +0 −22 packages/hint/src/lib/utils/logging.ts
  21. +0 −22 packages/hint/src/lib/utils/misc/ask-question.ts
  22. +0 −13 packages/hint/src/lib/utils/misc/cut-string.ts
  23. +0 −6 packages/hint/src/lib/utils/misc/delay.ts
  24. +0 −12 packages/hint/src/lib/utils/misc/generate-html-page.ts
  25. +0 −6 packages/hint/src/lib/utils/misc/normalize-includes.ts
  26. +0 −6 packages/hint/src/lib/utils/misc/normalize-string-by-delimeter.ts
  27. +0 −12 packages/hint/src/lib/utils/misc/normalize-string.ts
  28. +0 −33 packages/hint/src/lib/utils/misc/pretty-print-array.ts
  29. +0 −14 packages/hint/src/lib/utils/misc/to-camel-case.ts
  30. +0 −13 packages/hint/src/lib/utils/misc/to-lowercase-keys.ts
  31. +0 −10 packages/hint/src/lib/utils/misc/to-pascal-case.ts
  32. +0 −21 packages/hint/src/lib/utils/network/as-path-string.ts
  33. +0 −98 packages/hint/src/lib/utils/network/as-uri.ts
  34. +0 −6 packages/hint/src/lib/utils/network/has-protocol.ts
  35. +0 −6 packages/hint/src/lib/utils/network/is-data-uri.ts
  36. +0 −26 packages/hint/src/lib/utils/network/is-html-document.ts
  37. +0 −6 packages/hint/src/lib/utils/network/is-http.ts
  38. +0 −6 packages/hint/src/lib/utils/network/is-https.ts
  39. +0 −6 packages/hint/src/lib/utils/network/is-local-file.ts
  40. +0 −28 packages/hint/src/lib/utils/network/is-regular-protocol.ts
  41. +0 −11 packages/hint/src/lib/utils/network/normalized-header-value.ts
  42. +0 −14 packages/hint/src/lib/utils/network/request-async.ts
  43. +0 −11 packages/hint/src/lib/utils/network/request-json-async.ts
  44. +0 −150 packages/hint/src/lib/utils/npm.ts
  45. +0 −30 packages/hint/src/lib/utils/packages/find-node-modules-root.ts
  46. +0 −28 packages/hint/src/lib/utils/packages/find-package-root.ts
  47. +0 −22 packages/hint/src/lib/utils/packages/is-official.ts
  48. +5 −3 packages/hint/src/lib/utils/packages/load-hint-package.ts
  49. +0 −7 packages/hint/src/lib/utils/packages/load-package.ts
  50. +9 −11 packages/hint/src/lib/utils/resource-loader.ts
  51. +1 −2 packages/hint/src/lib/utils/schema-validator.ts
  52. +0 −194 packages/hint/tests/lib/utils/app-insights.ts
  53. +0 −1 packages/hint/tests/lib/utils/fixtures/bom.txt
  54. +0 −7 packages/hint/tests/lib/utils/fixtures/dep-package.json
  55. +0 −7 packages/hint/tests/lib/utils/fixtures/dev-package.json
  56. 0 packages/hint/tests/lib/utils/fixtures/empty.txt
  57. +0 −1 packages/hint/tests/lib/utils/fixtures/fixture.js
  58. +0 −31 packages/hint/tests/lib/utils/fs/load-js-file.ts
  59. +0 −32 packages/hint/tests/lib/utils/fs/load-json-file.ts
  60. +0 −48 packages/hint/tests/lib/utils/fs/read-file-async.ts
  61. +0 −100 packages/hint/tests/lib/utils/hint-helpers.ts
  62. +0 −45 packages/hint/tests/lib/utils/logging.ts
  63. +0 −18 packages/hint/tests/lib/utils/misc/cut-string.ts
  64. +0 −11 packages/hint/tests/lib/utils/misc/to-camel-case.ts
  65. +0 −15 packages/hint/tests/lib/utils/misc/to-lower-case-keys.ts
  66. +0 −27 packages/hint/tests/lib/utils/network/as-path-string.ts
  67. +0 −45 packages/hint/tests/lib/utils/network/as-uri.ts
  68. +0 −12 packages/hint/tests/lib/utils/network/has-protocol.ts
  69. +0 −11 packages/hint/tests/lib/utils/network/is-data-uri.ts
  70. +0 −20 packages/hint/tests/lib/utils/network/is-html-document.ts
  71. +0 −11 packages/hint/tests/lib/utils/network/is-http.ts
  72. +0 −11 packages/hint/tests/lib/utils/network/is-https.ts
  73. +0 −11 packages/hint/tests/lib/utils/network/is-local-file.ts
  74. +0 −16 packages/hint/tests/lib/utils/network/is-regular-protocol.ts
  75. +0 −22 packages/hint/tests/lib/utils/network/normalized-header-value.ts
  76. +0 −320 packages/hint/tests/lib/utils/npm.ts
  77. +43 −12 packages/hint/tests/lib/utils/resource-loader.ts
  78. +1 −1 packages/utils/src/fs/read-file-async.ts
  79. +1 −1 packages/utils/src/network/as-uri.ts
@@ -13,12 +13,10 @@
"applicationinsights": "^1.3.1",
"boxen": "^3.1.0",
"browserslist": "^4.5.4",
"caniuse-api": "^3.0.0",
"chalk": "^2.4.2",
"configstore": "^4.0.0",
"content-type": "^1.0.4",
"css-select": "^2.0.2",
"debug": "^4.1.1",
"eventemitter2": "^5.0.1",
"file-type": "^10.10.0",
"file-url": "^2.0.2",
@@ -28,37 +26,24 @@
"jsonc-parser": "^2.1.0",
"lodash": "^4.17.11",
"mime-db": "1.35.0",
"npm-registry-fetch": "^3.9.0",
"optionator": "^0.8.2",
"ora": "^3.4.0",
"parse5": "^5.1.0",
"parse5-htmlparser2-tree-adapter": "^5.1.0",
"request": "^2.88.0",
"semver": "^6.0.0",
"strip-bom": "^3.0.0",
"strip-json-comments": "^2.0.1",
"update-notifier": "^2.5.0"
},
"description": "The linting tool for the web",
"devDependencies": {
"@types/async": "^2.4.1",
"@types/configstore": "^4.0.0",
"@types/content-type": "^1.1.3",
"@types/debug": "4.1.3",
"@types/file-url": "^2.0.0",
"@types/jsdom": "^12.2.3",
"@types/lodash": "^4.14.123",
"@types/mime-db": "^1.27.0",
"@types/mkdirp": "^0.5.2",
"@types/node": "11.12.0",
"@types/parse5": "^5.0.0",
"@types/parse5-htmlparser2-tree-adapter": "^5.0.1",
"@types/proxyquire": "^1.3.28",
"@types/request": "^2.48.1",
"@types/semver": "^6.0.0",
"@types/sinon": "^7.0.11",
"@types/strip-bom": "^3.0.0",
"@types/strip-json-comments": "^0.0.30",
"@types/update-notifier": "^2.5.0",
"@typescript-eslint/eslint-plugin": "^1.4.2",
"@typescript-eslint/parser": "1.4.2",

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
@@ -3,11 +3,12 @@ import isSvg from 'is-svg';
import * as mimeDB from 'mime-db';
import { parse, MediaType } from 'content-type';

import { debug as d } from './debug';
import { HttpHeaders, HTMLElement } from '../types';
import getFileExtension from './fs/file-extension';
import getFileName from './fs/file-name';
import normalizeString from './misc/normalize-string';
import { HttpHeaders } from '@hint/utils/dist/src/types/http-header';
import { debug as d } from '@hint/utils/dist/src/debug';
import { fileExtension as getFileExtension, fileName as getFileName } from '@hint/utils/dist/src/fs';
import { normalizeString } from '@hint/utils/dist/src/misc/normalize-string';

import { HTMLElement } from '../types';

const debug = d(__filename);

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 09c5383

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