Skip to content
Permalink
Browse files

Chore: Fully migrate to `@typescript-eslint/eslint-plugin|parser`

  • Loading branch information...
molant committed Feb 8, 2019
1 parent eb90fb4 commit f15cde0c3a5c496d2f21cadc6d2301d76fa6197c
Showing with 267 additions and 282 deletions.
  1. +15 βˆ’15 .eslintrc.json
  2. +1 βˆ’1 package.json
  3. +1 βˆ’1 packages/connector-chrome/package.json
  4. +1 βˆ’1 packages/connector-edge/package.json
  5. +1 βˆ’1 packages/connector-jsdom/package.json
  6. +1 βˆ’1 packages/connector-local/package.json
  7. +1 βˆ’1 packages/create-hint/package.json
  8. +15 βˆ’15 packages/create-hint/src/no-official-files/.eslintrc.json
  9. +1 βˆ’1 packages/create-hint/src/shared-templates/package.hbs
  10. +1 βˆ’1 packages/create-hintrc/package.json
  11. +1 βˆ’1 packages/create-parser/package.json
  12. +15 βˆ’15 packages/create-parser/src/no-official-files/.eslintrc.json
  13. +2 βˆ’2 packages/create-parser/src/shared-templates/package.hbs
  14. +2 βˆ’2 packages/extension-browser/package.json
  15. +2 βˆ’2 packages/extension-browser/src/devtools/panel/views/pages/configuration.ts
  16. +1 βˆ’1 packages/extension-vscode/package.json
  17. +1 βˆ’1 packages/formatter-codeframe/package.json
  18. +1 βˆ’1 packages/formatter-excel/package.json
  19. +1 βˆ’1 packages/formatter-html/package.json
  20. +1 βˆ’1 packages/formatter-json/package.json
  21. +1 βˆ’1 packages/formatter-stylish/package.json
  22. +1 βˆ’1 packages/formatter-summary/package.json
  23. +1 βˆ’1 packages/hint-amp-validator/package.json
  24. +1 βˆ’1 packages/hint-apple-touch-icons/package.json
  25. +1 βˆ’1 packages/hint-axe/package.json
  26. +1 βˆ’1 packages/hint-babel-config/package.json
  27. +1 βˆ’1 packages/hint-button-type/package.json
  28. +2 βˆ’2 packages/hint-compat-api/package.json
  29. +1 βˆ’1 packages/hint-compat-api/src/helpers/compat-library-factory.ts
  30. +1 βˆ’1 packages/hint-content-type/package.json
  31. +1 βˆ’1 packages/hint-css-prefix-order/package.json
  32. +1 βˆ’1 packages/hint-disown-opener/package.json
  33. +1 βˆ’1 packages/hint-doctype/package.json
  34. +1 βˆ’1 packages/hint-highest-available-document-mode/package.json
  35. +1 βˆ’1 packages/hint-html-checker/package.json
  36. +1 βˆ’1 packages/hint-http-cache/package.json
  37. +2 βˆ’2 packages/hint-http-compression/package.json
  38. +1 βˆ’1 packages/hint-https-only/package.json
  39. +1 βˆ’1 packages/hint-image-optimization-cloudinary/package.json
  40. +1 βˆ’1 packages/hint-manifest-app-name/package.json
  41. +1 βˆ’1 packages/hint-manifest-exists/package.json
  42. +1 βˆ’1 packages/hint-manifest-file-extension/package.json
  43. +1 βˆ’1 packages/hint-manifest-is-valid/package.json
  44. +1 βˆ’1 packages/hint-meta-charset-utf-8/package.json
  45. +1 βˆ’1 packages/hint-meta-theme-color/package.json
  46. +1 βˆ’1 packages/hint-meta-viewport/package.json
  47. +1 βˆ’1 packages/hint-minified-js/package.json
  48. +1 βˆ’1 packages/hint-no-bom/package.json
  49. +1 βˆ’1 packages/hint-no-broken-links/package.json
  50. +1 βˆ’1 packages/hint-no-disallowed-headers/package.json
  51. +1 βˆ’1 packages/hint-no-friendly-error-pages/package.json
  52. +1 βˆ’1 packages/hint-no-html-only-headers/package.json
  53. +1 βˆ’1 packages/hint-no-http-redirects/package.json
  54. +1 βˆ’1 packages/hint-no-p3p/package.json
  55. +1 βˆ’1 packages/hint-no-protocol-relative-urls/package.json
  56. +1 βˆ’1 packages/hint-no-vulnerable-javascript-libraries/package.json
  57. +1 βˆ’1 packages/hint-performance-budget/package.json
  58. +1 βˆ’1 packages/hint-sri/package.json
  59. +1 βˆ’1 packages/hint-ssllabs/package.json
  60. +1 βˆ’1 packages/hint-strict-transport-security/package.json
  61. +1 βˆ’1 packages/hint-stylesheet-limits/package.json
  62. +1 βˆ’1 packages/hint-typescript-config/package.json
  63. +1 βˆ’1 packages/hint-validate-set-cookie-header/package.json
  64. +1 βˆ’1 packages/hint-webpack-config/package.json
  65. +1 βˆ’1 packages/hint-x-content-type-options/package.json
  66. +1 βˆ’1 packages/hint/package.json
  67. +1 βˆ’1 packages/hint/src/lib/types/jsdom-async-html.ts
  68. +1 βˆ’1 packages/hint/src/lib/utils/content-type.ts
  69. +1 βˆ’1 packages/hint/src/lib/utils/schema-validator.ts
  70. +1 βˆ’1 packages/parser-babel-config/package.json
  71. +1 βˆ’1 packages/parser-css/package.json
  72. +1 βˆ’1 packages/parser-html/package.json
  73. +1 βˆ’1 packages/parser-javascript/package.json
  74. +1 βˆ’1 packages/parser-manifest/package.json
  75. +1 βˆ’1 packages/parser-package-json/package.json
  76. +1 βˆ’1 packages/parser-typescript-config/package.json
  77. +1 βˆ’1 packages/parser-webpack-config/package.json
  78. +1 βˆ’1 packages/utils-connector-tools/package.json
  79. +1 βˆ’1 packages/utils-create-server/package.json
  80. +1 βˆ’1 packages/utils-debugging-protocol-common/package.json
  81. +2 βˆ’2 packages/utils-debugging-protocol-common/src/cdp-async-html.ts
  82. +1 βˆ’1 packages/utils-tests-helpers/package.json
  83. +137 βˆ’152 yarn.lock
@@ -12,7 +12,7 @@
"plugins": [
"import",
"markdown",
"typescript"
"@typescript-eslint"
],
"rules": {
"accessor-pairs": "off",
@@ -248,19 +248,19 @@
"wrap-regex": "error",
"yoda": ["error", "never"],

"typescript/class-name-casing": "error",
"typescript/explicit-member-accessibility": "error",
"typescript/interface-name-prefix": [ "error", "always" ],
"typescript/member-delimiter-style": "error",
"typescript/member-naming": "error",
"typescript/no-angle-bracket-type-assertion": "error",
"typescript/no-array-constructor": "error",
"typescript/no-namespace": "error",
"typescript/no-parameter-properties": "error",
"typescript/no-triple-slash-reference": "error",
"typescript/no-unused-vars": "off",
"typescript/no-use-before-define": "error",
"typescript/prefer-namespace-keyword": "error",
"typescript/type-annotation-spacing": "error"
"@typescript-eslint/class-name-casing": "error",
"@typescript-eslint/explicit-member-accessibility": "error",
"@typescript-eslint/interface-name-prefix": [ "error", "always" ],
"@typescript-eslint/member-delimiter-style": "error",
"@typescript-eslint/member-naming": "error",
"@typescript-eslint/no-angle-bracket-type-assertion": "error",
"@typescript-eslint/no-array-constructor": "error",
"@typescript-eslint/no-namespace": "error",
"@typescript-eslint/no-parameter-properties": "error",
"@typescript-eslint/no-triple-slash-reference": "error",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-use-before-define": "error",
"@typescript-eslint/prefer-namespace-keyword": "error",
"@typescript-eslint/type-annotation-spacing": "error"
}
}
@@ -11,7 +11,7 @@
"eslint": "^5.13.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-markdown": "^1.0.0",
"eslint-plugin-typescript": "0.14.0",
"@typescript-eslint/eslint-plugin": "^1.3.0",
"husky": "^1.3.1",
"listr": "^0.14.2",
"listr-input": "^0.1.2",
@@ -24,7 +24,7 @@
"eslint": "^5.13.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-markdown": "^1.0.0",
"eslint-plugin-typescript": "0.14.0",
"@typescript-eslint/eslint-plugin": "^1.3.0",
"hint": "^4.4.0",
"lodash": "^4.17.11",
"npm-run-all": "^4.1.5",
@@ -9,7 +9,7 @@
"eslint": "^5.4.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-markdown": "^1.0.0-beta.6",
"eslint-plugin-typescript": "0.14.0",
"@typescript-eslint/eslint-plugin": "^1.3.0",
"hint": "^4.4.0",
"npm-run-all": "^4.1.5",
"rimraf": "^2.6.3",
@@ -24,7 +24,7 @@
"eslint": "^5.13.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-markdown": "^1.0.0",
"eslint-plugin-typescript": "0.14.0",
"@typescript-eslint/eslint-plugin": "^1.3.0",
"hint": "^4.4.0",
"lodash": "^4.17.11",
"npm-run-all": "^4.1.5",
@@ -21,7 +21,7 @@
"eslint": "^5.13.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-markdown": "^1.0.0",
"eslint-plugin-typescript": "0.14.0",
"@typescript-eslint/eslint-plugin": "^1.3.0",
"hint": "^4.4.0",
"lodash": "^4.17.11",
"npm-run-all": "^4.1.5",
@@ -18,7 +18,7 @@
"eslint": "^5.13.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-markdown": "^1.0.0",
"eslint-plugin-typescript": "0.14.0",
"@typescript-eslint/eslint-plugin": "^1.3.0",
"fork-ts-checker-webpack-plugin": "^0.5.2",
"fs-extra": "^7.0.0",
"handlebars": "^4.0.11",
@@ -12,7 +12,7 @@
"plugins": [
"import",
"markdown",
"typescript"
"@typescript-eslint"
],
"rules": {
"accessor-pairs": "off",
@@ -248,19 +248,19 @@
"wrap-regex": "error",
"yoda": ["error", "never"],

"typescript/class-name-casing": "error",
"typescript/explicit-member-accessibility": "error",
"typescript/interface-name-prefix": [ "error", "always" ],
"typescript/member-delimiter-style": "error",
"typescript/member-naming": "error",
"typescript/no-angle-bracket-type-assertion": "error",
"typescript/no-array-constructor": "error",
"typescript/no-namespace": "error",
"typescript/no-parameter-properties": "error",
"typescript/no-triple-slash-reference": "error",
"typescript/no-unused-vars": "off",
"typescript/no-use-before-define": "error",
"typescript/prefer-namespace-keyword": "error",
"typescript/type-annotation-spacing": "error"
"@typescript-eslint/class-name-casing": "error",
"@typescript-eslint/explicit-member-accessibility": "error",
"@typescript-eslint/interface-name-prefix": [ "error", "always" ],
"@typescript-eslint/member-delimiter-style": "error",
"@typescript-eslint/member-naming": "error",
"@typescript-eslint/no-angle-bracket-type-assertion": "error",
"@typescript-eslint/no-array-constructor": "error",
"@typescript-eslint/no-namespace": "error",
"@typescript-eslint/no-parameter-properties": "error",
"@typescript-eslint/no-triple-slash-reference": "error",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-use-before-define": "error",
"@typescript-eslint/prefer-namespace-keyword": "error",
"@typescript-eslint/type-annotation-spacing": "error"
}
}
@@ -11,12 +11,12 @@
{{{dependencyVersion "@hint/utils-tests-helpers" "^2.0.3"}}},
{{{dependencyVersion "@types/debug" "0.0.31"}}},
"@types/node": "10.12.18",
{{{dependencyVersion "@typescript-eslint/eslint-plugin" "^1.3.0"}}},
{{{dependencyVersion "@typescript-eslint/parser" "^1.3.0"}}},
{{{dependencyVersion "ava" "^1.2.0"}}},
{{{dependencyVersion "cpx" "^1.5.0"}}},
{{{dependencyVersion "eslint" "^5.13.0"}}},
{{{dependencyVersion "eslint-plugin-markdown" "^1.0.0"}}},
{{{dependencyVersion "eslint-plugin-typescript" "^0.14.0"}}},
{{{dependencyVersion "npm-run-all" "^4.1.5"}}},
{{{dependencyVersion "nyc" "^13.1.0"}}},
{{{dependencyVersion "rimraf" "^2.6.3"}}},
@@ -23,7 +23,7 @@
"eslint": "^5.13.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-markdown": "^1.0.0",
"eslint-plugin-typescript": "0.14.0",
"@typescript-eslint/eslint-plugin": "^1.3.0",
"fork-ts-checker-webpack-plugin": "^0.5.2",
"fs-extra": "^7.0.0",
"handlebars": "^4.0.11",
@@ -19,7 +19,7 @@
"eslint": "^5.13.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-markdown": "^1.0.0",
"eslint-plugin-typescript": "0.14.0",
"@typescript-eslint/eslint-plugin": "^1.3.0",
"fork-ts-checker-webpack-plugin": "^0.5.2",
"fs-extra": "^7.0.0",
"handlebars": "^4.0.11",
@@ -12,7 +12,7 @@
"plugins": [
"import",
"markdown",
"typescript"
"@typescript-eslint"
],
"rules": {
"accessor-pairs": "off",
@@ -248,19 +248,19 @@
"wrap-regex": "error",
"yoda": ["error", "never"],

"typescript/class-name-casing": "error",
"typescript/explicit-member-accessibility": "error",
"typescript/interface-name-prefix": [ "error", "always" ],
"typescript/member-delimiter-style": "error",
"typescript/member-naming": "error",
"typescript/no-angle-bracket-type-assertion": "error",
"typescript/no-array-constructor": "error",
"typescript/no-namespace": "error",
"typescript/no-parameter-properties": "error",
"typescript/no-triple-slash-reference": "error",
"typescript/no-unused-vars": "off",
"typescript/no-use-before-define": "error",
"typescript/prefer-namespace-keyword": "error",
"typescript/type-annotation-spacing": "error"
"@typescript-eslint/class-name-casing": "error",
"@typescript-eslint/explicit-member-accessibility": "error",
"@typescript-eslint/interface-name-prefix": [ "error", "always" ],
"@typescript-eslint/member-delimiter-style": "error",
"@typescript-eslint/member-naming": "error",
"@typescript-eslint/no-angle-bracket-type-assertion": "error",
"@typescript-eslint/no-array-constructor": "error",
"@typescript-eslint/no-namespace": "error",
"@typescript-eslint/no-parameter-properties": "error",
"@typescript-eslint/no-triple-slash-reference": "error",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-use-before-define": "error",
"@typescript-eslint/prefer-namespace-keyword": "error",
"@typescript-eslint/type-annotation-spacing": "error"
}
}
@@ -10,12 +10,12 @@
"devDependencies": {
{{{dependencyVersion "@types/debug" "0.0.31"}}},
"@types/node": "10.12.18",
{{{dependencyVersion "@typescript-eslint/parser" "^1.2.0"}}}
{{{dependencyVersion "@typescript-eslint/eslint-plugin" "^1.3.0"}}},
{{{dependencyVersion "@typescript-eslint/parser" "^1.3.0"}}}
{{{dependencyVersion "ava" "^1.2.0"}}},
{{{dependencyVersion "cpx" "^1.5.0"}}},
{{{dependencyVersion "eslint" "^5.12.0"}}},
{{{dependencyVersion "eslint-plugin-markdown" "^1.0.0"}}},
{{{dependencyVersion "eslint-plugin-typescript" "^0.14.0"}}},
{{{dependencyVersion "eventemitter2" "^5.0.1"}}},
{{{dependencyVersion "proxyquire" "2.0.0"}}},
{{{dependencyVersion "sinon" "^7.2.3"}}},
@@ -46,7 +46,7 @@
"eslint": "^5.13.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-markdown": "^1.0.0",
"eslint-plugin-typescript": "^0.14.0",
"@typescript-eslint/eslint-plugin": "^1.3.0",
"highlight.js": "^9.14.2",
"hint": "^4.4.0",
"html-minifier": "^3.5.21",
@@ -62,7 +62,7 @@
"svg-url-loader": "^2.3.2",
"typed-css-modules": "^0.3.7",
"typescript": "^3.3.3",
"typescript-eslint-parser": "^22.0.0",
"@typescript-eslint/parser": "1.3.0",
"util.promisify": "^1.0.0",
"webpack": "^4.29.3",
"webpack-cli": "^3.2.3"
@@ -28,7 +28,7 @@ const categories = [...new Set(metas.map((meta) => {
}))].sort();

export default function view({ onAnalyzeClick }: Props) {
/* eslint-disable no-use-before-define, typescript/no-use-before-define */
/* eslint-disable no-use-before-define, @typescript-eslint/no-use-before-define */
const fragment = configurationHtmlView({
categories,
onAnalyzeClick: async () => {
@@ -45,7 +45,7 @@ export default function view({ onAnalyzeClick }: Props) {
resetConfiguration();
}
});
/* eslint-enable no-use-before-define, typescript/no-use-before-define */
/* eslint-enable no-use-before-define, @typescript-eslint/no-use-before-define */

const configRoot = fragment.firstElementChild!;

@@ -28,7 +28,7 @@
"eslint": "^5.13.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-markdown": "^1.0.0",
"eslint-plugin-typescript": "0.14.0",
"@typescript-eslint/eslint-plugin": "^1.3.0",
"hint": "^4.4.0",
"npm-link-check": "^3.0.0",
"npm-run-all": "^4.1.5",
@@ -20,7 +20,7 @@
"eslint": "^5.13.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-markdown": "^1.0.0",
"eslint-plugin-typescript": "0.14.0",
"@typescript-eslint/eslint-plugin": "^1.3.0",
"hint": "^4.4.0",
"npm-link-check": "^3.0.0",
"npm-run-all": "^4.1.5",
@@ -18,7 +18,7 @@
"eslint": "^5.13.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-markdown": "^1.0.0",
"eslint-plugin-typescript": "0.14.0",
"@typescript-eslint/eslint-plugin": "^1.3.0",
"hint": "^4.4.0",
"npm-link-check": "^3.0.0",
"npm-run-all": "^4.1.5",
@@ -24,7 +24,7 @@
"eslint": "^5.13.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-markdown": "^1.0.0",
"eslint-plugin-typescript": "0.14.0",
"@typescript-eslint/eslint-plugin": "^1.3.0",
"hint": "^4.4.0",
"npm-link-check": "^3.0.0",
"npm-run-all": "^4.1.5",
@@ -17,7 +17,7 @@
"eslint": "^5.13.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-markdown": "^1.0.0",
"eslint-plugin-typescript": "0.14.0",
"@typescript-eslint/eslint-plugin": "^1.3.0",
"hint": "^4.4.0",
"npm-link-check": "^3.0.0",
"npm-run-all": "^4.1.5",
@@ -22,7 +22,7 @@
"eslint": "^5.13.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-markdown": "^1.0.0",
"eslint-plugin-typescript": "0.14.0",
"@typescript-eslint/eslint-plugin": "^1.3.0",
"hint": "^4.4.0",
"npm-link-check": "^3.0.0",
"npm-run-all": "^4.1.5",
@@ -20,7 +20,7 @@
"eslint": "^5.13.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-markdown": "^1.0.0",
"eslint-plugin-typescript": "0.14.0",
"@typescript-eslint/eslint-plugin": "^1.3.0",
"hint": "^4.4.0",
"npm-link-check": "^3.0.0",
"npm-run-all": "^4.1.5",
@@ -18,7 +18,7 @@
"eslint": "^5.13.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-markdown": "^1.0.0",
"eslint-plugin-typescript": "0.14.0",
"@typescript-eslint/eslint-plugin": "^1.3.0",
"hint": "^4.4.0",
"npm-link-check": "^3.0.0",
"npm-run-all": "^4.1.5",
@@ -18,7 +18,7 @@
"eslint": "^5.13.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-markdown": "^1.0.0",
"eslint-plugin-typescript": "0.14.0",
"@typescript-eslint/eslint-plugin": "^1.3.0",
"hint": "^4.4.0",
"npm-link-check": "^3.0.0",
"npm-run-all": "^4.1.5",
@@ -17,7 +17,7 @@
"eslint": "^5.13.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-markdown": "^1.0.0",
"eslint-plugin-typescript": "0.14.0",
"@typescript-eslint/eslint-plugin": "^1.3.0",
"hint": "^4.4.0",
"npm-link-check": "^3.0.0",
"npm-run-all": "^4.1.5",
@@ -15,7 +15,7 @@
"eslint": "^5.13.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-markdown": "^1.0.0",
"eslint-plugin-typescript": "0.14.0",
"@typescript-eslint/eslint-plugin": "^1.3.0",
"hint": "^4.4.0",
"npm-link-check": "^3.0.0",
"npm-run-all": "^4.1.5",
@@ -15,7 +15,7 @@
"cpx": "^1.5.0",
"eslint": "^5.13.0",
"eslint-plugin-markdown": "^1.0.0-rc.0",
"eslint-plugin-typescript": "0.14.0",
"@typescript-eslint/eslint-plugin": "^1.3.0",
"hint": "^4.4.0",
"npm-link-check": "^3.0.0",
"npm-run-all": "^4.1.5",
@@ -19,7 +19,7 @@
"cpx": "^1.5.0",
"eslint": "^5.13.0",
"eslint-plugin-markdown": "^1.0.0",
"eslint-plugin-typescript": "^0.14.0",
"@typescript-eslint/eslint-plugin": "^1.3.0",
"hint": "^4.4.0",
"markdownlint-cli": "^0.13.0",
"npm-link-check": "^3.0.0",
@@ -28,7 +28,7 @@
"postcss": "^7.0.14",
"rimraf": "^2.6.3",
"typescript": "^3.3.3",
"typescript-eslint-parser": "^22.0.0"
"@typescript-eslint/parser": "1.3.0"
},
"engines": {
"node": ">=8.0.0"
@@ -21,6 +21,6 @@ export class CompatLibraryFactory {
}

// WORKAROUND: https://github.com/Microsoft/TypeScript/issues/28067#issuecomment-433952156
return new CompatCSS(<unknown>hintContext as HintContext<StyleEvents>, mdnData, testFunction);
return new CompatCSS(hintContext as unknown as HintContext<StyleEvents>, mdnData, testFunction);
}
}
Oops, something went wrong.

0 comments on commit f15cde0

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