diff --git a/.prettierignore b/.prettierignore index 514a00e6..ab4752e7 100644 --- a/.prettierignore +++ b/.prettierignore @@ -3,5 +3,6 @@ packages/webamp/demo/built/ packages/webamp/built/ packages/webamp/dist/ +packages/webamp/types/ packages/webamp-modern/build/ packages/webamp-modern/tools/eslint-rules/dist/ \ No newline at end of file diff --git a/package.json b/package.json index bdddc24a..b85d106c 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,9 @@ "eslint": "^8.14.0", "eslint-config-react-app": "^7.0.1", "eslint-plugin-prettier": "^4.0.0", + "eslint-plugin-import": "^2.25.4", + "eslint-plugin-react": "^7.16.0", + "eslint-plugin-react-hooks": "^4.3.0", "events": "^3.3.0", "jest": "^27.5.1", "prettier": "^2.3.2", diff --git a/packages/webamp/.eslintignore b/packages/webamp/.eslintignore index 7b8f38be..767ec581 100644 --- a/packages/webamp/.eslintignore +++ b/packages/webamp/.eslintignore @@ -1,6 +1,7 @@ *.min.js built/ dist/ +types/ coverage/ **/node_modules/ examples/webpack/bundle.js diff --git a/packages/webamp/package.json b/packages/webamp/package.json index f030d6be..5354a16f 100644 --- a/packages/webamp/package.json +++ b/packages/webamp/package.json @@ -98,10 +98,6 @@ "@typescript-eslint/parser": "^5.13.0", "canvas-mock": "0.0.0", "data-uri-to-buffer": "^2.0.0", - "eslint": "^8.10.0", - "eslint-plugin-import": "^2.25.4", - "eslint-plugin-react": "^7.16.0", - "eslint-plugin-react-hooks": "^4.3.0", "glob": "^7.1.4", "http-server": "^0.11.1", "imagemin": "^6.1.0", diff --git a/yarn.lock b/yarn.lock index 0a330704..3d7e12a0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2504,7 +2504,7 @@ minimatch "^3.0.4" strip-json-comments "^3.1.1" -"@eslint/eslintrc@^1.2.0", "@eslint/eslintrc@^1.3.3": +"@eslint/eslintrc@^1.3.3": version "1.3.3" resolved "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.3.3.tgz" integrity sha512-uj3pT6Mg+3t39fvLrj8iuCIJ38zKO9FpGtJ4BBJebJhEwjoT+KLVNCcHT5QC9NGRIEi7fZ0ZR8YRb884auB4Lg== @@ -2710,15 +2710,6 @@ debug "^4.1.1" minimatch "^3.0.4" -"@humanwhocodes/config-array@^0.9.2": - version "0.9.5" - resolved "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.9.5.tgz" - integrity sha512-ObyMyWxZiCu/yTisA7uzx81s40xR2fD5Cg/2Kq7G02ajkNubJf6BopgDTmDyc3U7sXpNKM8cYOw7s7Tyr+DnCw== - dependencies: - "@humanwhocodes/object-schema" "^1.2.1" - debug "^4.1.1" - minimatch "^3.0.4" - "@humanwhocodes/module-importer@^1.0.1": version "1.0.1" resolved "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz" @@ -12222,47 +12213,6 @@ eslint@^7.30.0: text-table "^0.2.0" v8-compile-cache "^2.0.3" -eslint@^8.10.0: - version "8.10.0" - resolved "https://registry.npmjs.org/eslint/-/eslint-8.10.0.tgz" - integrity sha512-tcI1D9lfVec+R4LE1mNDnzoJ/f71Kl/9Cv4nG47jOueCMBrCCKYXr4AUVS7go6mWYGFD4+EoN6+eXSrEbRzXVw== - dependencies: - "@eslint/eslintrc" "^1.2.0" - "@humanwhocodes/config-array" "^0.9.2" - ajv "^6.10.0" - chalk "^4.0.0" - cross-spawn "^7.0.2" - debug "^4.3.2" - doctrine "^3.0.0" - escape-string-regexp "^4.0.0" - eslint-scope "^7.1.1" - eslint-utils "^3.0.0" - eslint-visitor-keys "^3.3.0" - espree "^9.3.1" - esquery "^1.4.0" - esutils "^2.0.2" - fast-deep-equal "^3.1.3" - file-entry-cache "^6.0.1" - functional-red-black-tree "^1.0.1" - glob-parent "^6.0.1" - globals "^13.6.0" - ignore "^5.2.0" - import-fresh "^3.0.0" - imurmurhash "^0.1.4" - is-glob "^4.0.0" - js-yaml "^4.1.0" - json-stable-stringify-without-jsonify "^1.0.1" - levn "^0.4.1" - lodash.merge "^4.6.2" - minimatch "^3.0.4" - natural-compare "^1.4.0" - optionator "^0.9.1" - regexpp "^3.2.0" - strip-ansi "^6.0.1" - strip-json-comments "^3.1.0" - text-table "^0.2.0" - v8-compile-cache "^2.0.3" - eslint@^8.11.0, eslint@^8.14.0, eslint@^8.3.0: version "8.27.0" resolved "https://registry.npmjs.org/eslint/-/eslint-8.27.0.tgz" @@ -12329,7 +12279,7 @@ espree@^7.3.0, espree@^7.3.1: acorn-jsx "^5.3.1" eslint-visitor-keys "^1.3.0" -espree@^9.3.1, espree@^9.4.0: +espree@^9.4.0: version "9.4.1" resolved "https://registry.npmjs.org/espree/-/espree-9.4.1.tgz" integrity sha512-XwctdmTO6SIvCzd9810yyNzIrOrqNYV9Koizx4C/mRhf9uq0o4yHoCEU/670pOxOL/MSraektvSAji79kX90Vg== @@ -13792,7 +13742,7 @@ glob-parent@^5.1.1, glob-parent@^5.1.2, glob-parent@~5.1.2: dependencies: is-glob "^4.0.1" -glob-parent@^6.0.1, glob-parent@^6.0.2: +glob-parent@^6.0.2: version "6.0.2" resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz" integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==