From 36b3746dd6ec5e5e797b77f38e277b22cc55a295 Mon Sep 17 00:00:00 2001 From: Vince Picone Date: Mon, 23 Aug 2021 19:22:42 -0500 Subject: [PATCH 1/3] chore: swap dependencies and config --- .eslintrc | 2 +- package.json | 18 +-- yarn.lock | 307 +++++++++++++++++---------------------------------- 3 files changed, 105 insertions(+), 222 deletions(-) diff --git a/.eslintrc b/.eslintrc index 7627ac8eed9..4890c646c80 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,5 +1,5 @@ { - "extends": ["wesbos"], + "extends": ["carbon"], "globals": { "fathom": "readonly" }, diff --git a/package.json b/package.json index b1868de0eda..60bc809d348 100644 --- a/package.json +++ b/package.json @@ -45,15 +45,15 @@ }, "dependencies": { "@carbon/charts-react": "0.42.1", + "@carbon/elements": "^10.41.0", + "@carbon/icons": "^10.38.0", + "@carbon/icons-react": "^10.38.0", "@carbon/pictograms": "^11.16.0", "@carbon/pictograms-react": "^11.16.0", "@loadable/component": "^5.15.0", "@slack/web-api": "^5.11.0", "carbon-components": "^10.42.0", "carbon-components-react": "^7.42.0", - "@carbon/elements": "^10.41.0", - "@carbon/icons": "^10.38.0", - "@carbon/icons-react": "^10.38.0", "change-case": "^4.1.1", "classnames": "^2.2.6", "codesandbox": "^2.1.10", @@ -84,16 +84,8 @@ "babel-preset-gatsby": "^1.7.1", "d3": "7.0.0", "dotenv": "^8.2.0", - "eslint": "^6.8.0", - "eslint-config-airbnb": "^18.1.0", - "eslint-config-prettier": "^6.10.1", - "eslint-config-wesbos": "0.0.19", - "eslint-plugin-html": "^6.0.0", - "eslint-plugin-import": "^2.20.1", - "eslint-plugin-jsx-a11y": "^6.2.3", - "eslint-plugin-prettier": "^3.1.2", - "eslint-plugin-react": "^7.19.0", - "eslint-plugin-react-hooks": "^2.5.1", + "eslint": "^7.32.0", + "eslint-config-carbon": "^2.8.0", "fs-extra": "^9.0.1", "gatsby-plugin-lodash": "^4.7.1", "gatsby-plugin-manifest": "^3.7.1", diff --git a/yarn.lock b/yarn.lock index d05a2720b8d..bd02759d371 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1278,6 +1278,15 @@ ts-node "^9" tslib "^2" +"@es-joy/jsdoccomment@0.10.7": + version "0.10.7" + resolved "https://registry.npmjs.org/@es-joy/jsdoccomment/-/jsdoccomment-0.10.7.tgz#bdb5dfcaa5cff8b5435f0c9f2777b533075a9c52" + integrity sha512-aNKZEoMESDzOBjKxCWrFuG50mcpMeKVBnBNko4+IZZ5t9zXYs8GT1KB0ZaOq1YUsKumDRc6YII/TQm309MJ0KQ== + dependencies: + comment-parser "1.2.3" + esquery "^1.4.0" + jsdoc-type-pratt-parser "1.1.1" + "@eslint/eslintrc@^0.4.3": version "0.4.3" resolved "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.3.tgz#9e42981ef035beb3dd49add17acb96e8ff6f394c" @@ -2439,7 +2448,7 @@ semver "^7.3.5" tsutils "^3.21.0" -"@typescript-eslint/experimental-utils@4.29.3": +"@typescript-eslint/experimental-utils@4.29.3", "@typescript-eslint/experimental-utils@^4.0.1": version "4.29.3" resolved "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-4.29.3.tgz#52e437a689ccdef73e83c5106b34240a706f15e1" integrity sha512-ffIvbytTVWz+3keg+Sy94FG1QeOvmV9dP2YSdLFHw/ieLXWCa3U1TYu8IRCOpMv2/SPS8XqhM1+ou1YHsdzKrg== @@ -2819,7 +2828,7 @@ acorn-import-assertions@^1.7.6: resolved "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.7.6.tgz#580e3ffcae6770eebeec76c3b9723201e9d01f78" integrity sha512-FlVvVFA1TX6l3lp8VjDnYYq7R1nyW6x3svAt4nDgrWQ9SBaSh9CnbwgSUTasgfNfOG5HlM1ehugCvM+hjo56LA== -acorn-jsx@^5.0.0, acorn-jsx@^5.0.1, acorn-jsx@^5.2.0, acorn-jsx@^5.3.1: +acorn-jsx@^5.0.0, acorn-jsx@^5.0.1, acorn-jsx@^5.3.1: version "5.3.2" resolved "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== @@ -2834,7 +2843,7 @@ acorn@^6.1.1, acorn@^6.4.1: resolved "https://registry.npmjs.org/acorn/-/acorn-6.4.2.tgz#35866fd710528e92de10cf06016498e47e39e1e6" integrity sha512-XtGIhXwF8YM8bJhGxG5kXgjkEuNGLTkoYqVE+KMR+aspr4KGYmKYg7yUe3KghyQ9yheNwLnjmzh/7+gfDBmHCQ== -acorn@^7.1.1, acorn@^7.4.0: +acorn@^7.4.0: version "7.4.1" resolved "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== @@ -3227,11 +3236,6 @@ ast-types@0.9.6: resolved "https://registry.npmjs.org/ast-types/-/ast-types-0.9.6.tgz#102c9e9e9005d3e7e3829bf0c4fa24ee862ee9b9" integrity sha1-ECyenpAF0+fjgpvwxPok7oYu6bk= -astral-regex@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9" - integrity sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg== - astral-regex@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31" @@ -4799,6 +4803,11 @@ commander@~2.19.0: resolved "https://registry.npmjs.org/commander/-/commander-2.19.0.tgz#f6198aa84e5b83c46054b94ddedbfed5ee9ff12a" integrity sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg== +comment-parser@1.2.3: + version "1.2.3" + resolved "https://registry.npmjs.org/comment-parser/-/comment-parser-1.2.3.tgz#303a7eb99c9b2632efd594e183ccbd32042caf69" + integrity sha512-vnqDwBSXSsdAkGS5NjwMIPelE47q+UkEgWKHvCDNhVIIaQSUFY6sNnEYGzdoPGMdpV+7KR3ZkRd7oyWIjtuvJg== + common-tags@^1.8.0: version "1.8.0" resolved "https://registry.npmjs.org/common-tags/-/common-tags-1.8.0.tgz#8e3153e542d4a39e9b10554434afaaf98956a937" @@ -5827,7 +5836,7 @@ debug@^3.0.0, debug@^3.1.0, debug@^3.1.1, debug@^3.2.6, debug@^3.2.7: dependencies: ms "^2.1.1" -debug@^4.0.0, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@~4.3.1: +debug@^4.0.0, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@~4.3.1: version "4.3.2" resolved "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz#f0a49c18ac8779e31d4a0c6029dfb76873c7428b" integrity sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw== @@ -5942,7 +5951,7 @@ deep-extend@^0.6.0: resolved "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA== -deep-is@^0.1.3, deep-is@~0.1.3: +deep-is@^0.1.3: version "0.1.3" resolved "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" integrity sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ= @@ -6758,7 +6767,7 @@ eslint-config-airbnb-base@^14.2.1: object.assign "^4.1.2" object.entries "^1.1.2" -eslint-config-airbnb@^18.1.0: +eslint-config-airbnb@^18.2.1: version "18.2.1" resolved "https://registry.npmjs.org/eslint-config-airbnb/-/eslint-config-airbnb-18.2.1.tgz#b7fe2b42f9f8173e825b73c8014b592e449c98d9" integrity sha512-glZNDEZ36VdlZWoxn/bUR1r/sdFKPd1mHPbqUtkctgNG4yT2DLLtJ3D+yCV+jzZCc2V1nBVkmdknOJBZ5Hc0fg== @@ -6767,12 +6776,29 @@ eslint-config-airbnb@^18.1.0: object.assign "^4.1.2" object.entries "^1.1.2" -eslint-config-prettier@^6.10.1: - version "6.15.0" - resolved "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-6.15.0.tgz#7f93f6cb7d45a92f1537a70ecc06366e1ac6fed9" - integrity sha512-a1+kOYLR8wMGustcgAjdydMsQ2A/2ipRPwRKUmfYaSxc9ZPcrku080Ctl6zrZzZNs/U82MjSv+qKREkoq3bJaw== +eslint-config-carbon@^2.8.0: + version "2.8.0" + resolved "https://registry.npmjs.org/eslint-config-carbon/-/eslint-config-carbon-2.8.0.tgz#1bfd50d28dca974e141f8610d3bd21d6eb7b2fe7" + integrity sha512-KvoYNNps4gs8wEHAz4hVT/nROiVI8MG4y1n3FkukBVEExVXofP26BS5ZImDnWfTuAeJhqBDw9wM7/Ia3RQPqjw== dependencies: - get-stdin "^6.0.0" + babel-eslint "^10.1.0" + eslint-config-airbnb "^18.2.1" + eslint-config-airbnb-base "^14.2.1" + eslint-config-prettier "^8.3.0" + eslint-plugin-cypress "^2.11.3" + eslint-plugin-import "^2.23.4" + eslint-plugin-jest "^24.3.6" + eslint-plugin-jsdoc "^36.0.3" + eslint-plugin-jsx-a11y "^6.4.1" + eslint-plugin-prettier "^3.4.0" + eslint-plugin-react "^7.24.0" + eslint-plugin-react-hooks "^4.2.0" + eslint-restricted-globals "^0.2.0" + +eslint-config-prettier@^8.3.0: + version "8.3.0" + resolved "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.3.0.tgz#f7471b20b6fe8a9a9254cc684454202886a2dd7a" + integrity sha512-BgZuLUSeKzvlL/VUjx/Yb787VQ26RU3gGjA3iiFvdsp/2bMfVIWUVP7tjxtjS0e+HP409cPlPvNkQloz8C91ew== eslint-config-react-app@^6.0.0: version "6.0.0" @@ -6781,11 +6807,6 @@ eslint-config-react-app@^6.0.0: dependencies: confusing-browser-globals "^1.0.10" -eslint-config-wesbos@0.0.19: - version "0.0.19" - resolved "https://registry.npmjs.org/eslint-config-wesbos/-/eslint-config-wesbos-0.0.19.tgz#e89a7ce5c27562295234088176346daf2b12e8b7" - integrity sha512-2NTh0BzSMd1VEE5jEgC40T3QQTrdCEe19mm15m/CV1/314lYtPp5GmM2t26AojxrjfKhBkJR9Thiv6w1U8i/zg== - eslint-import-resolver-node@^0.3.6: version "0.3.6" resolved "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz#4048b958395da89668252001dbd9eca6b83bacbd" @@ -6802,6 +6823,13 @@ eslint-module-utils@^2.6.2: debug "^3.2.7" pkg-dir "^2.0.0" +eslint-plugin-cypress@^2.11.3: + version "2.11.3" + resolved "https://registry.npmjs.org/eslint-plugin-cypress/-/eslint-plugin-cypress-2.11.3.tgz#54ee4067aa8192aa62810cd35080eb577e191ab7" + integrity sha512-hOoAid+XNFtpvOzZSNWP5LDrQBEJwbZwjib4XJ1KcRYKjeVj0mAmPmucG4Egli4j/aruv+Ow/acacoloWWCl9Q== + dependencies: + globals "^11.12.0" + eslint-plugin-flowtype@^5.8.2: version "5.9.0" resolved "https://registry.npmjs.org/eslint-plugin-flowtype/-/eslint-plugin-flowtype-5.9.0.tgz#8d2d81d3d79bb53470ed62b97409b31684757e30" @@ -6820,14 +6848,7 @@ eslint-plugin-graphql@^4.0.0: lodash.flatten "^4.4.0" lodash.without "^4.4.0" -eslint-plugin-html@^6.0.0: - version "6.1.2" - resolved "https://registry.npmjs.org/eslint-plugin-html/-/eslint-plugin-html-6.1.2.tgz#fa26e4804428956c80e963b6499c192061c2daf3" - integrity sha512-bhBIRyZFqI4EoF12lGDHAmgfff8eLXx6R52/K3ESQhsxzCzIE6hdebS7Py651f7U3RBotqroUnC3L29bR7qJWQ== - dependencies: - htmlparser2 "^6.0.1" - -eslint-plugin-import@^2.20.1, eslint-plugin-import@^2.23.4: +eslint-plugin-import@^2.23.4: version "2.24.1" resolved "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.24.1.tgz#64aba8b567a1ba9921d5465586e86c491b8e2135" integrity sha512-KSFWhNxPH8OGJwpRJJs+Z7I0a13E2iFQZJIvSnCu6KUs4qmgAm3xN9GYBCSoiGWmwA7gERZPXqYQjcoCROnYhQ== @@ -6848,7 +6869,29 @@ eslint-plugin-import@^2.20.1, eslint-plugin-import@^2.23.4: resolve "^1.20.0" tsconfig-paths "^3.10.1" -eslint-plugin-jsx-a11y@^6.2.3, eslint-plugin-jsx-a11y@^6.4.1: +eslint-plugin-jest@^24.3.6: + version "24.4.0" + resolved "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-24.4.0.tgz#fa4b614dbd46a98b652d830377971f097bda9262" + integrity sha512-8qnt/hgtZ94E9dA6viqfViKBfkJwFHXgJmTWlMGDgunw1XJEGqm3eiPjDsTanM3/u/3Az82nyQM9GX7PM/QGmg== + dependencies: + "@typescript-eslint/experimental-utils" "^4.0.1" + +eslint-plugin-jsdoc@^36.0.3: + version "36.0.7" + resolved "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-36.0.7.tgz#6e6f9897fc2ff3b3934b09c2748b998bc03d2bf6" + integrity sha512-x73l/WCRQ1qCjLq46Ca7csuGd5o3y3vbJIa3cktg11tdf3UZleBdIXKN9Cf0xjs3tXYPEy2SoNXowT8ydnjNDQ== + dependencies: + "@es-joy/jsdoccomment" "0.10.7" + comment-parser "1.2.3" + debug "^4.3.2" + esquery "^1.4.0" + jsdoc-type-pratt-parser "^1.1.1" + lodash "^4.17.21" + regextras "^0.8.0" + semver "^7.3.5" + spdx-expression-parse "^3.0.1" + +eslint-plugin-jsx-a11y@^6.4.1: version "6.4.1" resolved "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.4.1.tgz#a2d84caa49756942f42f1ffab9002436391718fd" integrity sha512-0rGPJBbwHoGNPU73/QCLP/vveMlM1b1Z9PponxO87jfr6tuH5ligXbDT6nHSSzBC8ovX2Z+BQu7Bk5D/Xgq9zg== @@ -6865,24 +6908,19 @@ eslint-plugin-jsx-a11y@^6.2.3, eslint-plugin-jsx-a11y@^6.4.1: jsx-ast-utils "^3.1.0" language-tags "^1.0.5" -eslint-plugin-prettier@^3.1.2: +eslint-plugin-prettier@^3.4.0: version "3.4.1" resolved "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.4.1.tgz#e9ddb200efb6f3d05ffe83b1665a716af4a387e5" integrity sha512-htg25EUYUeIhKHXjOinK4BgCcDwtLHjqaxCDsMy5nbnUMkKFvIhMVCp+5GFUXQ4Nr8lBsPqtGAqBenbpFqAA2g== dependencies: prettier-linter-helpers "^1.0.0" -eslint-plugin-react-hooks@^2.5.1: - version "2.5.1" - resolved "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-2.5.1.tgz#4ef5930592588ce171abeb26f400c7fbcbc23cd0" - integrity sha512-Y2c4b55R+6ZzwtTppKwSmK/Kar8AdLiC2f9NADCuxbcTgPPg41Gyqa6b9GppgXSvCtkRw43ZE86CT5sejKC6/g== - eslint-plugin-react-hooks@^4.2.0: version "4.2.0" resolved "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.2.0.tgz#8c229c268d468956334c943bb45fc860280f5556" integrity sha512-623WEiZJqxR7VdxFCKLI6d6LLpwJkGPYKODnkH3D7WpOG5KM8yWueBd8TLsNAetEJNF5iJmolaAKO3F8yzyVBQ== -eslint-plugin-react@^7.19.0, eslint-plugin-react@^7.24.0: +eslint-plugin-react@^7.24.0: version "7.24.0" resolved "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.24.0.tgz#eadedfa351a6f36b490aa17f4fa9b14e842b9eb4" integrity sha512-KJJIx2SYx7PBx3ONe/mEeMz4YE0Lcr7feJTCMyyKb/341NcjuAgim3Acgan89GfPv7nxXK2+0slu0CWXYM4x+Q== @@ -6900,7 +6938,12 @@ eslint-plugin-react@^7.19.0, eslint-plugin-react@^7.24.0: resolve "^2.0.0-next.3" string.prototype.matchall "^4.0.5" -eslint-scope@5.1.1, eslint-scope@^5.0.0, eslint-scope@^5.1.1: +eslint-restricted-globals@^0.2.0: + version "0.2.0" + resolved "https://registry.npmjs.org/eslint-restricted-globals/-/eslint-restricted-globals-0.2.0.tgz#7729f326af97bec7a7e56d9f7d9c064b79285c50" + integrity sha512-kwYJALm5KS2QW3Mc1PgObO4V+pTR6RQtRT65L1GQILlEnAhabUQqGAX7/qUjoQR4KZJKehWpBtyDEiDecwmY9A== + +eslint-scope@5.1.1, eslint-scope@^5.1.1: version "5.1.1" resolved "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== @@ -6916,13 +6959,6 @@ eslint-scope@^4.0.3: esrecurse "^4.1.0" estraverse "^4.1.1" -eslint-utils@^1.4.3: - version "1.4.3" - resolved "https://registry.npmjs.org/eslint-utils/-/eslint-utils-1.4.3.tgz#74fec7c54d0776b6f67e0251040b5806564e981f" - integrity sha512-fbBN5W2xdY45KulGXmLHZ3c3FHfVYmKg0IrAKGOkT/464PQsx2UeIzfz1RmEci+KLm1bBaAzZAh8+/E+XAeZ8Q== - dependencies: - eslint-visitor-keys "^1.1.0" - eslint-utils@^2.1.0: version "2.1.0" resolved "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz#d2de5e03424e707dc10c74068ddedae708741b27" @@ -6959,49 +6995,6 @@ eslint-webpack-plugin@^2.5.4: normalize-path "^3.0.0" schema-utils "^3.0.0" -eslint@^6.8.0: - version "6.8.0" - resolved "https://registry.npmjs.org/eslint/-/eslint-6.8.0.tgz#62262d6729739f9275723824302fb227c8c93ffb" - integrity sha512-K+Iayyo2LtyYhDSYwz5D5QdWw0hCacNzyq1Y821Xna2xSJj7cijoLLYmLxTQgcgZ9mC61nryMy9S7GRbYpI5Ig== - dependencies: - "@babel/code-frame" "^7.0.0" - ajv "^6.10.0" - chalk "^2.1.0" - cross-spawn "^6.0.5" - debug "^4.0.1" - doctrine "^3.0.0" - eslint-scope "^5.0.0" - eslint-utils "^1.4.3" - eslint-visitor-keys "^1.1.0" - espree "^6.1.2" - esquery "^1.0.1" - esutils "^2.0.2" - file-entry-cache "^5.0.1" - functional-red-black-tree "^1.0.1" - glob-parent "^5.0.0" - globals "^12.1.0" - ignore "^4.0.6" - import-fresh "^3.0.0" - imurmurhash "^0.1.4" - inquirer "^7.0.0" - is-glob "^4.0.0" - js-yaml "^3.13.1" - json-stable-stringify-without-jsonify "^1.0.1" - levn "^0.3.0" - lodash "^4.17.14" - minimatch "^3.0.4" - mkdirp "^0.5.1" - natural-compare "^1.4.0" - optionator "^0.8.3" - progress "^2.0.0" - regexpp "^2.0.1" - semver "^6.1.2" - strip-ansi "^5.2.0" - strip-json-comments "^3.0.1" - table "^5.2.3" - text-table "^0.2.0" - v8-compile-cache "^2.0.3" - eslint@^7.32.0: version "7.32.0" resolved "https://registry.npmjs.org/eslint/-/eslint-7.32.0.tgz#c6d328a14be3fb08c8d1d21e12c02fdb7a2a812d" @@ -7048,15 +7041,6 @@ eslint@^7.32.0: text-table "^0.2.0" v8-compile-cache "^2.0.3" -espree@^6.1.2: - version "6.2.1" - resolved "https://registry.npmjs.org/espree/-/espree-6.2.1.tgz#77fc72e1fd744a2052c20f38a5b575832e82734a" - integrity sha512-ysCxRQY3WaXJz9tdbWOwuWr5Y/XrPTGX9Kiz3yoUXwW0VZ4w30HTkQLaGx/+ttFjF8i+ACbArnB4ce68a9m5hw== - dependencies: - acorn "^7.1.1" - acorn-jsx "^5.2.0" - eslint-visitor-keys "^1.1.0" - espree@^7.3.0, espree@^7.3.1: version "7.3.1" resolved "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz#f2df330b752c6f55019f8bd89b7660039c1bbbb6" @@ -7076,7 +7060,7 @@ esprima@~3.1.0: resolved "https://registry.npmjs.org/esprima/-/esprima-3.1.3.tgz#fdca51cee6133895e3c88d535ce49dbff62a4633" integrity sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM= -esquery@^1.0.1, esquery@^1.4.0: +esquery@^1.4.0: version "1.4.0" resolved "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz#2148ffc38b82e8c7057dfed48425b3e61f0f24a5" integrity sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w== @@ -7425,7 +7409,7 @@ fast-json-stable-stringify@^2.0.0: resolved "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== -fast-levenshtein@^2.0.6, fast-levenshtein@~2.0.6: +fast-levenshtein@^2.0.6: version "2.0.6" resolved "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= @@ -7513,13 +7497,6 @@ figures@^3.0.0: dependencies: escape-string-regexp "^1.0.5" -file-entry-cache@^5.0.1: - version "5.0.1" - resolved "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-5.0.1.tgz#ca0f6efa6dd3d561333fb14515065c2fafdf439c" - integrity sha512-bCg29ictuBaKUwwArK4ouCaqDgLZcysCFLmM/Yn/FDoqndh/9vNuQfXRDvTuXKLxfD/JtZQGKFT8MGcJBK644g== - dependencies: - flat-cache "^2.0.1" - file-entry-cache@^6.0.1: version "6.0.1" resolved "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" @@ -7742,15 +7719,6 @@ find-versions@^4.0.0: dependencies: semver-regex "^3.1.2" -flat-cache@^2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/flat-cache/-/flat-cache-2.0.1.tgz#5d296d6f04bda44a4630a301413bdbc2ec085ec0" - integrity sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA== - dependencies: - flatted "^2.0.0" - rimraf "2.6.3" - write "1.0.3" - flat-cache@^3.0.4: version "3.0.4" resolved "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz#61b0338302b2fe9f957dcc32fc2a87f1c3048b11" @@ -7769,11 +7737,6 @@ flatpickr@4.6.9: resolved "https://registry.npmjs.org/flatpickr/-/flatpickr-4.6.9.tgz#9a13383e8a6814bda5d232eae3fcdccb97dc1499" integrity sha512-F0azNNi8foVWKSF+8X+ZJzz8r9sE1G4hl06RyceIaLvyltKvDl6vqk9Lm/6AUUCi5HWaIjiUbk7UpeE/fOXOpw== -flatted@^2.0.0: - version "2.0.2" - resolved "https://registry.npmjs.org/flatted/-/flatted-2.0.2.tgz#4575b21e2bcee7434aa9be662f4b7b5f9c2b5138" - integrity sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA== - flatted@^3.1.0: version "3.2.2" resolved "https://registry.npmjs.org/flatted/-/flatted-3.2.2.tgz#64bfed5cb68fe3ca78b3eb214ad97b63bedce561" @@ -8831,11 +8794,6 @@ get-stdin@^4.0.1: resolved "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz#b968c6b0a04384324902e8bf1a5df32579a450fe" integrity sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4= -get-stdin@^6.0.0: - version "6.0.0" - resolved "https://registry.npmjs.org/get-stdin/-/get-stdin-6.0.0.tgz#9e09bf712b360ab9225e812048f71fde9c89657b" - integrity sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g== - get-stream@3.0.0, get-stream@^3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" @@ -8947,7 +8905,7 @@ glob-parent@^3.1.0: is-glob "^3.1.0" path-dirname "^1.0.0" -glob-parent@^5.0.0, glob-parent@^5.1.2, glob-parent@~5.1.2: +glob-parent@^5.1.2, glob-parent@~5.1.2: version "5.1.2" resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== @@ -9027,18 +8985,11 @@ global@~4.4.0: min-document "^2.19.0" process "^0.11.10" -globals@^11.1.0: +globals@^11.1.0, globals@^11.12.0: version "11.12.0" resolved "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== -globals@^12.1.0: - version "12.4.0" - resolved "https://registry.npmjs.org/globals/-/globals-12.4.0.tgz#a18813576a41b00a24a97e7f815918c2e19925f8" - integrity sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg== - dependencies: - type-fest "^0.8.1" - globals@^13.6.0, globals@^13.9.0: version "13.11.0" resolved "https://registry.npmjs.org/globals/-/globals-13.11.0.tgz#40ef678da117fe7bd2e28f1fab24951bd0255be7" @@ -9667,7 +9618,7 @@ htmlparser2@^3.9.1: inherits "^2.0.1" readable-stream "^3.1.1" -htmlparser2@^6.0.1, htmlparser2@^6.1.0: +htmlparser2@^6.1.0: version "6.1.0" resolved "https://registry.npmjs.org/htmlparser2/-/htmlparser2-6.1.0.tgz#c4d762b6c3371a05dbe65e94ae43a9f845fb8fb7" integrity sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A== @@ -10823,6 +10774,11 @@ jsbn@~0.1.0: resolved "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" integrity sha1-peZUwuWi3rXyAdls77yoDA7y9RM= +jsdoc-type-pratt-parser@1.1.1, jsdoc-type-pratt-parser@^1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-1.1.1.tgz#10fe5e409ba38de22a48b555598955a26ff0160f" + integrity sha512-uelRmpghNwPBuZScwgBG/OzodaFk5RbO5xaivBdsAY70icWfShwZ7PCMO0x1zSkOa8T1FzHThmrdoyg/0AwV5g== + jsesc@^2.5.1: version "2.5.2" resolved "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" @@ -11044,14 +11000,6 @@ lazy-cache@^1.0.4: resolved "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e" integrity sha1-odePw6UEdMuAhF07O24dpJpEbo4= -levn@^0.3.0, levn@~0.3.0: - version "0.3.0" - resolved "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" - integrity sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4= - dependencies: - prelude-ls "~1.1.2" - type-check "~0.3.2" - levn@^0.4.1: version "0.4.1" resolved "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade" @@ -12903,18 +12851,6 @@ opn@^5.5.0: dependencies: is-wsl "^1.1.0" -optionator@^0.8.3: - version "0.8.3" - resolved "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495" - integrity sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA== - dependencies: - deep-is "~0.1.3" - fast-levenshtein "~2.0.6" - levn "~0.3.0" - prelude-ls "~1.1.2" - type-check "~0.3.2" - word-wrap "~1.2.3" - optionator@^0.9.1: version "0.9.1" resolved "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz#4f236a6373dae0566a6d43e1326674f50c291499" @@ -14034,11 +13970,6 @@ prelude-ls@^1.2.1: resolved "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== -prelude-ls@~1.1.2: - version "1.1.2" - resolved "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" - integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ= - prepend-http@^1.0.1: version "1.0.4" resolved "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc" @@ -14767,11 +14698,6 @@ regexp.prototype.flags@^1.2.0, regexp.prototype.flags@^1.3.1: call-bind "^1.0.2" define-properties "^1.1.3" -regexpp@^2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/regexpp/-/regexpp-2.0.1.tgz#8d19d31cf632482b589049f8281f93dbcba4d07f" - integrity sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw== - regexpp@^3.1.0: version "3.2.0" resolved "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz#0425a2768d8f23bad70ca4b90461fa2f1213e1b2" @@ -14789,6 +14715,11 @@ regexpu-core@^4.2.0, regexpu-core@^4.5.4, regexpu-core@^4.7.1: unicode-match-property-ecmascript "^1.0.4" unicode-match-property-value-ecmascript "^1.2.0" +regextras@^0.8.0: + version "0.8.0" + resolved "https://registry.npmjs.org/regextras/-/regextras-0.8.0.tgz#ec0f99853d4912839321172f608b544814b02217" + integrity sha512-k519uI04Z3SaY0fLX843MRXnDeG2+vHOFsyhiPZvNLe7r8rD2YNRjq4BQLZZ0oAr2NrtvZlICsXysGNFPGa3CQ== + registry-auth-token@^3.0.1: version "3.4.0" resolved "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-3.4.0.tgz#d7446815433f5d5ed6431cd5dca21048f66b397e" @@ -15304,13 +15235,6 @@ rework@1.0.1: convert-source-map "^0.3.3" css "^2.0.0" -rimraf@2.6.3: - version "2.6.3" - resolved "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab" - integrity sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA== - dependencies: - glob "^7.1.3" - rimraf@^2.5.4, rimraf@^2.6.1, rimraf@^2.6.2, rimraf@^2.6.3: version "2.7.1" resolved "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec" @@ -15836,15 +15760,6 @@ slash@^3.0.0: resolved "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== -slice-ansi@^2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/slice-ansi/-/slice-ansi-2.1.0.tgz#cacd7693461a637a5788d92a7dd4fba068e81636" - integrity sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ== - dependencies: - ansi-styles "^3.2.0" - astral-regex "^1.0.0" - is-fullwidth-code-point "^2.0.0" - slice-ansi@^3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/slice-ansi/-/slice-ansi-3.0.0.tgz#31ddc10930a1b7e0b67b08c96c2f49b77a789787" @@ -16112,7 +16027,7 @@ spdx-exceptions@^2.1.0: resolved "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz#3f28ce1a77a00372683eade4a433183527a2163d" integrity sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A== -spdx-expression-parse@^3.0.0: +spdx-expression-parse@^3.0.0, spdx-expression-parse@^3.0.1: version "3.0.1" resolved "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz#cf70f50482eefdc98e3ce0a6833e4a53ceeba679" integrity sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q== @@ -16579,7 +16494,7 @@ strip-indent@^3.0.0: dependencies: min-indent "^1.0.0" -strip-json-comments@^3.0.1, strip-json-comments@^3.1.0, strip-json-comments@^3.1.1: +strip-json-comments@^3.1.0, strip-json-comments@^3.1.1: version "3.1.1" resolved "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== @@ -16748,16 +16663,6 @@ tabbable@^5.2.1: resolved "https://registry.npmjs.org/tabbable/-/tabbable-5.2.1.tgz#e3fda7367ddbb172dcda9f871c0fdb36d1c4cd9c" integrity sha512-40pEZ2mhjaZzK0BnI+QGNjJO8UYx9pP5v7BGe17SORTO0OEuuaAwQTkAp8whcZvqon44wKFOikD+Al11K3JICQ== -table@^5.2.3: - version "5.4.6" - resolved "https://registry.npmjs.org/table/-/table-5.4.6.tgz#1292d19500ce3f86053b05f0e8e7e4a3bb21079e" - integrity sha512-wmEc8m4fjnob4gt5riFRtTu/6+4rSe12TpAELNSqHMfF3IqnA+CH37USM6/YR3qRZv7e56kAEAtd6nKZaxe0Ug== - dependencies: - ajv "^6.10.2" - lodash "^4.17.14" - slice-ansi "^2.1.0" - string-width "^3.0.0" - table@^6.0.9: version "6.7.1" resolved "https://registry.npmjs.org/table/-/table-6.7.1.tgz#ee05592b7143831a8c94f3cee6aae4c1ccef33e2" @@ -17231,13 +17136,6 @@ type-check@^0.4.0, type-check@~0.4.0: dependencies: prelude-ls "^1.2.1" -type-check@~0.3.2: - version "0.3.2" - resolved "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" - integrity sha1-WITKtRLPHTVeP7eE8wgEsrUg23I= - dependencies: - prelude-ls "~1.1.2" - type-fest@^0.10.0: version "0.10.0" resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.10.0.tgz#7f06b2b9fbfc581068d1341ffabd0349ceafc642" @@ -18343,7 +18241,7 @@ winston@^3.3.3: triple-beam "^1.3.0" winston-transport "^4.4.0" -word-wrap@^1.2.3, word-wrap@~1.2.3: +word-wrap@^1.2.3: version "1.2.3" resolved "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== @@ -18539,13 +18437,6 @@ write-file-atomic@^3.0.0: signal-exit "^3.0.2" typedarray-to-buffer "^3.1.5" -write@1.0.3: - version "1.0.3" - resolved "https://registry.npmjs.org/write/-/write-1.0.3.tgz#0800e14523b923a387e415123c865616aae0f5c3" - integrity sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig== - dependencies: - mkdirp "^0.5.1" - ws@7.4.5: version "7.4.5" resolved "https://registry.npmjs.org/ws/-/ws-7.4.5.tgz#a484dd851e9beb6fdb420027e3885e8ce48986c1" From c1582689a9dcdb3260ca604d644d1374b4d3f543 Mon Sep 17 00:00:00 2001 From: Vince Picone Date: Mon, 23 Aug 2021 19:48:52 -0500 Subject: [PATCH 2/3] fix: adjust to new eslint config --- .eslintrc | 1 + .vscode/settings.json | 8 +----- gatsby-browser.js | 1 - gatsby-ssr.js | 1 - .../ChartIndexPage/ChartIndexListItem.js | 4 +-- .../ChartIndexPage/ChartIndexNotFound.js | 2 +- .../ChartIndexPage/ChartIndexSearch.js | 10 +++---- .../ChartIndexPage/ChartIndexSort.js | 10 +++---- src/components/ChartIndexPage/index.js | 3 ++- src/components/ComponentDemo/Code/CodeBar.js | 1 - src/components/ComponentDemo/Code/Sidebar.js | 1 - src/components/ComponentDemo/ComponentDemo.js | 1 - src/components/ComponentDemo/DemoContext.js | 1 - src/components/ComponentDemo/KnobContainer.js | 3 +-- .../ComponentIndexListItem.js | 4 +-- .../ComponentIndexNotFound.js | 2 +- .../ComponentIndexSearch.js | 9 +++---- .../ComponentIndexPage/ComponentIndexSort.js | 10 +++---- src/components/ComponentIndexPage/index.js | 14 +++++----- .../ComponentOverview/ComponentOverview.js | 1 - src/components/OverviewCard/OverviewCard.js | 25 +++++++----------- src/components/Profile/Profile.js | 4 +-- .../SVGLibraries/IconLibrary/IconLibrary.js | 2 +- .../PictogramLibrary/PictogramLibrary.js | 2 +- .../SVGLibraries/shared/ActionBar.js | 1 - .../SVGLibraries/shared/LibraryProvider.js | 1 - .../SVGLibraries/shared/useSticky.js | 26 +++++++++++-------- src/components/TypesetStyle/InputRange.js | 21 ++++++--------- src/components/TypesetStyle/TypesetExample.js | 2 +- .../data-visualization/ChartDemoGroup.js | 4 +-- src/gatsby-theme-carbon/components/Layout.js | 2 -- src/gatsby-theme-carbon/templates/Homepage.js | 1 - 32 files changed, 75 insertions(+), 103 deletions(-) diff --git a/.eslintrc b/.eslintrc index 4890c646c80..0c9c8c46cd7 100644 --- a/.eslintrc +++ b/.eslintrc @@ -3,6 +3,7 @@ "globals": { "fathom": "readonly" }, + "root": true, "rules": { "react/prop-types": 0, "react/destructuring-assignment": 0, diff --git a/.vscode/settings.json b/.vscode/settings.json index b32dadb0809..27fcc0b16f9 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,12 +1,6 @@ { "editor.formatOnSave": true, - "[javascript]": { - "editor.formatOnSave": false - }, - "[javascriptreact]": { - "editor.formatOnSave": false - }, - "prettier.disableLanguages": ["javascript", "javascriptreact"], + "eslint.lintTask.enable": true, "editor.codeActionsOnSave": { "source.fixAll.eslint": true } diff --git a/gatsby-browser.js b/gatsby-browser.js index 767df1cbb4b..e848af3b2be 100644 --- a/gatsby-browser.js +++ b/gatsby-browser.js @@ -1,2 +1 @@ -/* eslint-disable import/prefer-default-export */ import './src/styles/index.scss'; diff --git a/gatsby-ssr.js b/gatsby-ssr.js index e2223c71f2b..ee38bdfaf91 100644 --- a/gatsby-ssr.js +++ b/gatsby-ssr.js @@ -1,4 +1,3 @@ -/* eslint-disable import/prefer-default-export */ import React from 'react'; import ogimage from './src/images/ogimage.png'; diff --git a/src/components/ChartIndexPage/ChartIndexListItem.js b/src/components/ChartIndexPage/ChartIndexListItem.js index 4fff67fc9e6..3e1aa9913e4 100644 --- a/src/components/ChartIndexPage/ChartIndexListItem.js +++ b/src/components/ChartIndexPage/ChartIndexListItem.js @@ -29,8 +29,7 @@ const ChartIndexListItem = React.memo( } return ( - <> -
+
{img}
{name}
@@ -67,7 +66,6 @@ const ChartIndexListItem = React.memo(
- ); } ); diff --git a/src/components/ChartIndexPage/ChartIndexNotFound.js b/src/components/ChartIndexPage/ChartIndexNotFound.js index 49edd80f189..e0c5da0d48e 100644 --- a/src/components/ChartIndexPage/ChartIndexNotFound.js +++ b/src/components/ChartIndexPage/ChartIndexNotFound.js @@ -23,7 +23,7 @@ function ChartIndexNotFound() {

- If you have designs or code for a chart that isn't listed here, + If you have designs or code for a chart that isn‘t listed here, please (

{title} - {options.map((selectedFilter) => ( + {options.map((selectedFilter, i) => ( { - if (!value || value === `'default'`) return accumulator; + if (!value || value === `'default'`) {return accumulator;} if (typeof value === 'boolean') { return `${accumulator} ${prop}`; } diff --git a/src/components/ComponentIndexPage/ComponentIndexListItem.js b/src/components/ComponentIndexPage/ComponentIndexListItem.js index c0a2d3fcc17..0c73986da4c 100644 --- a/src/components/ComponentIndexPage/ComponentIndexListItem.js +++ b/src/components/ComponentIndexPage/ComponentIndexListItem.js @@ -80,8 +80,7 @@ const ComponentIndexListItem = React.memo( }; return ( - <> -
+
{img}
{name}
@@ -139,7 +138,6 @@ const ComponentIndexListItem = React.memo(
- ); } ); diff --git a/src/components/ComponentIndexPage/ComponentIndexNotFound.js b/src/components/ComponentIndexPage/ComponentIndexNotFound.js index 78e8c9e19d2..9c1b35d4fb9 100644 --- a/src/components/ComponentIndexPage/ComponentIndexNotFound.js +++ b/src/components/ComponentIndexPage/ComponentIndexNotFound.js @@ -26,7 +26,7 @@ function ComponentIndexNotFound() {

This community component index does not include the Carbon core - components and you may find what you're looking for in the + components and you may find what you’re looking for in the new Fuse(components, searchOptions), [ - components, - ]); + const searchClient = useMemo( + () => new Fuse(components, searchOptions), + [components] + ); const handleOnChange = (_checkedOption, selectedFilter) => { // Remove unchecked filter option(s) from setSelected state. @@ -158,11 +159,12 @@ function ComponentIndexPage() {

Filters
{filterLabels.map(({ title, options, key }) => ( -
+
{title} -
- {options.map((selectedFilter) => ( +
+ {options.map((selectedFilter, i) => ( ( +const Profile = ({ name, title, children }) => (
@@ -30,9 +30,9 @@ const Profile = ({ name, title, children, ...rest }) => ( ); Profile.propTypes = { + children: PropTypes.node, name: PropTypes.string, title: PropTypes.string, - children: PropTypes.node, }; export default Profile; diff --git a/src/components/SVGLibraries/IconLibrary/IconLibrary.js b/src/components/SVGLibraries/IconLibrary/IconLibrary.js index 54f41ac0e60..c3926c8098b 100644 --- a/src/components/SVGLibraries/IconLibrary/IconLibrary.js +++ b/src/components/SVGLibraries/IconLibrary/IconLibrary.js @@ -27,7 +27,7 @@ const IconLibrary = () => { useEffect(() => { const iconArray = iconMetaData.reduce((accumulator, icon) => { - if (icon.deprecated) return accumulator; + if (icon.deprecated) {return accumulator;} const path = [...icon.namespace, icon.name].join('/'); diff --git a/src/components/SVGLibraries/PictogramLibrary/PictogramLibrary.js b/src/components/SVGLibraries/PictogramLibrary/PictogramLibrary.js index 53a9beaa326..a6cc36f8bc0 100644 --- a/src/components/SVGLibraries/PictogramLibrary/PictogramLibrary.js +++ b/src/components/SVGLibraries/PictogramLibrary/PictogramLibrary.js @@ -31,7 +31,7 @@ const IconLibrary = () => { useEffect(() => { const pictogramArray = pictogramMetaData.reduce( (accumulator, pictogram) => { - if (pictogram.deprecated) return accumulator; + if (pictogram.deprecated) {return accumulator;} const path = [...pictogram.namespace, pictogram.name].join('/'); diff --git a/src/components/SVGLibraries/shared/ActionBar.js b/src/components/SVGLibraries/shared/ActionBar.js index e7772250704..a63f44b4815 100644 --- a/src/components/SVGLibraries/shared/ActionBar.js +++ b/src/components/SVGLibraries/shared/ActionBar.js @@ -1,4 +1,3 @@ -// eslint-disable-next-line import/no-extraneous-dependencies import React, { useRef, useContext, useState } from 'react'; import { pascalCase } from 'change-case'; import { Code16, Download16 } from '@carbon/icons-react'; diff --git a/src/components/SVGLibraries/shared/LibraryProvider.js b/src/components/SVGLibraries/shared/LibraryProvider.js index 11dbcc18774..869db16c2ad 100644 --- a/src/components/SVGLibraries/shared/LibraryProvider.js +++ b/src/components/SVGLibraries/shared/LibraryProvider.js @@ -1,4 +1,3 @@ -/* eslint-disable import/no-extraneous-dependencies */ import React from 'react'; export const LibraryContext = React.createContext(); diff --git a/src/components/SVGLibraries/shared/useSticky.js b/src/components/SVGLibraries/shared/useSticky.js index d087ab733d6..602a415b1f9 100644 --- a/src/components/SVGLibraries/shared/useSticky.js +++ b/src/components/SVGLibraries/shared/useSticky.js @@ -1,16 +1,17 @@ import { useEffect, useState, useRef } from 'react'; +const eventsToBind = + typeof window !== 'undefined' + ? [ + [document, 'scroll'], + [window, 'resize'], + [window, 'orientationchange'], + ] + : []; + export default () => { const stickyRef = useRef(null); const [sticky, setSticky] = useState(false); - const eventsToBind = - typeof window !== 'undefined' - ? [ - [document, 'scroll'], - [window, 'resize'], - [window, 'orientationchange'], - ] - : []; useEffect(() => { // Observe when ref enters or leaves sticky state @@ -23,8 +24,11 @@ export default () => { ); const stickyActive = refPageOffset <= stickyOffset; - if (stickyActive && !sticky) setSticky(true); - else if (!stickyActive && sticky) setSticky(false); + if (stickyActive && !sticky) { + setSticky(true); + } else if (!stickyActive && sticky) { + setSticky(false); + } } observe(); @@ -38,7 +42,7 @@ export default () => { eventPair[0].removeEventListener(eventPair[1], observe); }); }; - }, [stickyRef, sticky, eventsToBind]); + }, [stickyRef, sticky]); return [stickyRef, sticky]; }; diff --git a/src/components/TypesetStyle/InputRange.js b/src/components/TypesetStyle/InputRange.js index f5dd4c34633..53eb9f930f6 100644 --- a/src/components/TypesetStyle/InputRange.js +++ b/src/components/TypesetStyle/InputRange.js @@ -19,23 +19,18 @@ const InputRange = ({ step, min, max, value, onChange, id }) => ( ); InputRange.propTypes = { - // input step - step: PropTypes.number, - - // input min - min: PropTypes.number.isRequired, - + // input id + id: PropTypes.string, // input max max: PropTypes.number.isRequired, - - // input value - value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), - + // input min + min: PropTypes.number.isRequired, // onChange function onChange: PropTypes.func.isRequired, - - // input id - id: PropTypes.string, + // input step + step: PropTypes.number, + // input value + value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), }; export default InputRange; diff --git a/src/components/TypesetStyle/TypesetExample.js b/src/components/TypesetStyle/TypesetExample.js index 845827c8130..a4210778e61 100644 --- a/src/components/TypesetStyle/TypesetExample.js +++ b/src/components/TypesetStyle/TypesetExample.js @@ -48,7 +48,7 @@ const TypesetExample = (props) => ( typeStylesUntilCurrentBreakpoint.push( props.typeScale[type.key][item] ); - if (item === breakpointName) break; + if (item === breakpointName) {break;} } return Object.assign( {}, diff --git a/src/components/data-visualization/ChartDemoGroup.js b/src/components/data-visualization/ChartDemoGroup.js index f49ef01441a..0bc323d447d 100644 --- a/src/components/data-visualization/ChartDemoGroup.js +++ b/src/components/data-visualization/ChartDemoGroup.js @@ -39,8 +39,7 @@ const ChartDemoGroup = ({ demoGroup, light }) => {
)} - <> - {light !== true && demo.description && ( + {light !== true && demo.description && (

{demo.description}

@@ -82,7 +81,6 @@ const ChartDemoGroup = ({ demoGroup, light }) => { )} -
); }; diff --git a/src/gatsby-theme-carbon/components/Layout.js b/src/gatsby-theme-carbon/components/Layout.js index 8cac46d6c78..bc2836d668a 100644 --- a/src/gatsby-theme-carbon/components/Layout.js +++ b/src/gatsby-theme-carbon/components/Layout.js @@ -1,6 +1,4 @@ /* eslint-disable global-require */ -/* eslint-disable import/no-extraneous-dependencies */ -/* eslint-disable import/no-unresolved */ import React, { useLayoutEffect } from 'react'; import LeftNav from 'gatsby-theme-carbon/src/components/LeftNav'; diff --git a/src/gatsby-theme-carbon/templates/Homepage.js b/src/gatsby-theme-carbon/templates/Homepage.js index 3c70ac82730..a65946fdc0f 100644 --- a/src/gatsby-theme-carbon/templates/Homepage.js +++ b/src/gatsby-theme-carbon/templates/Homepage.js @@ -1,4 +1,3 @@ -/* eslint-disable import/no-extraneous-dependencies */ import React from 'react'; import { HomepageCallout, ResourceCard } from 'gatsby-theme-carbon'; import HomepageTemplate from 'gatsby-theme-carbon/src/templates/Homepage'; From c3425fca28ae08385f13774bf34ea1126f6247d2 Mon Sep 17 00:00:00 2001 From: Vince Picone Date: Tue, 24 Aug 2021 12:58:06 -0500 Subject: [PATCH 3/3] Update src/components/ChartIndexPage/ChartIndexNotFound.js Co-authored-by: Scott Strubberg --- src/components/ChartIndexPage/ChartIndexNotFound.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ChartIndexPage/ChartIndexNotFound.js b/src/components/ChartIndexPage/ChartIndexNotFound.js index e0c5da0d48e..776e3fb6498 100644 --- a/src/components/ChartIndexPage/ChartIndexNotFound.js +++ b/src/components/ChartIndexPage/ChartIndexNotFound.js @@ -23,7 +23,7 @@ function ChartIndexNotFound() {

- If you have designs or code for a chart that isn‘t listed here, + If you have designs or code for a chart that isn’t listed here, please