Skip to content

Commit 47a892d

Browse files
authored
Makes eslint explicit (#83)
1 parent 019f60f commit 47a892d

File tree

3 files changed

+139
-5
lines changed

3 files changed

+139
-5
lines changed

.eslintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ module.exports = {
99
"plugin:eslint-comments/recommended",
1010
'plugin:import/recommended',
1111
"plugin:import/typescript",
12+
"plugin:prettier/recommended",
1213
"plugin:jsx-a11y/recommended",
1314
"plugin:react/recommended",
1415
"prettier",
@@ -18,6 +19,7 @@ module.exports = {
1819
"plugins": [
1920
'jsx-a11y',
2021
"react",
22+
"prettier",
2123
'@typescript-eslint/eslint-plugin',
2224
],
2325
rules: {

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,15 @@
8787
"@testing-library/react": "^12.1.3",
8888
"@testing-library/user-event": "^14.0.0",
8989
"@types/node": "*",
90+
"@typescript-eslint/eslint-plugin": "^6.12.0",
91+
"@typescript-eslint/parser": "^6.12.0",
9092
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
9193
"changie": "^1.15.1",
9294
"cross-fetch": "^3.1.5",
9395
"enzyme": "^3.11.0",
96+
"eslint": "^8.54.0",
9497
"eslint-config-airbnb": "^19.0.4",
98+
"eslint-config-prettier": "^9.0.0",
9599
"eslint-plugin-eslint-comments": "^3.2.0",
96100
"eslint-plugin-import": "^2.29.0",
97101
"eslint-plugin-jsx-a11y": "^6.8.0",
@@ -116,4 +120,4 @@
116120
"service quality",
117121
"maturity score"
118122
]
119-
}
123+
}

yarn.lock

Lines changed: 132 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2889,11 +2889,31 @@
28892889
minimatch "^3.1.2"
28902890
strip-json-comments "^3.1.1"
28912891

2892+
"@eslint/eslintrc@^2.1.3":
2893+
version "2.1.3"
2894+
resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-2.1.3.tgz#797470a75fe0fbd5a53350ee715e85e87baff22d"
2895+
integrity sha512-yZzuIG+jnVu6hNSzFEN07e8BxF3uAzYtQb6uDkaYZLo6oYZDCq454c5kB8zxnzfCYyP4MIuyBn10L0DqwujTmA==
2896+
dependencies:
2897+
ajv "^6.12.4"
2898+
debug "^4.3.2"
2899+
espree "^9.6.0"
2900+
globals "^13.19.0"
2901+
ignore "^5.2.0"
2902+
import-fresh "^3.2.1"
2903+
js-yaml "^4.1.0"
2904+
minimatch "^3.1.2"
2905+
strip-json-comments "^3.1.1"
2906+
28922907
"@eslint/js@8.50.0":
28932908
version "8.50.0"
28942909
resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.50.0.tgz#9e93b850f0f3fa35f5fa59adfd03adae8488e484"
28952910
integrity sha512-NCC3zz2+nvYd+Ckfh87rA47zfu2QsQpvc6k1yzTk+b9KzRj0wkGa8LSoGOXN6Zv4lRf/EIoZ80biDh9HOI+RNQ==
28962911

2912+
"@eslint/js@8.54.0":
2913+
version "8.54.0"
2914+
resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.54.0.tgz#4fab9a2ff7860082c304f750e94acd644cf984cf"
2915+
integrity sha512-ut5V+D+fOoWPgGGNj83GGjnntO39xDy6DWxO0wb7Jp3DcMX0TfIqdzHF85VTQkerdyGmuuMD9AKAo5KiNlf/AQ==
2916+
28972917
"@fal-works/esbuild-plugin-global-externals@^2.1.2":
28982918
version "2.1.2"
28992919
resolved "https://registry.yarnpkg.com/@fal-works/esbuild-plugin-global-externals/-/esbuild-plugin-global-externals-2.1.2.tgz#c05ed35ad82df8e6ac616c68b92c2282bd083ba4"
@@ -2940,6 +2960,15 @@
29402960
debug "^4.1.1"
29412961
minimatch "^3.0.5"
29422962

2963+
"@humanwhocodes/config-array@^0.11.13":
2964+
version "0.11.13"
2965+
resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.13.tgz#075dc9684f40a531d9b26b0822153c1e832ee297"
2966+
integrity sha512-JSBDMiDKSzQVngfRjOdFXgFfklaXI4K9nLF49Auh21lmBWRLIK3+xTErTWD4KU54pb6coM6ESE7Awz/FNU3zgQ==
2967+
dependencies:
2968+
"@humanwhocodes/object-schema" "^2.0.1"
2969+
debug "^4.1.1"
2970+
minimatch "^3.0.5"
2971+
29432972
"@humanwhocodes/module-importer@^1.0.1":
29442973
version "1.0.1"
29452974
resolved "https://registry.yarnpkg.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz#af5b2691a22b44be847b0ca81641c5fb6ad0172c"
@@ -2950,6 +2979,11 @@
29502979
resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45"
29512980
integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==
29522981

2982+
"@humanwhocodes/object-schema@^2.0.1":
2983+
version "2.0.1"
2984+
resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-2.0.1.tgz#e5211452df060fa8522b55c7b3c0c4d1981cb044"
2985+
integrity sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==
2986+
29532987
"@isaacs/cliui@^8.0.2":
29542988
version "8.0.2"
29552989
resolved "https://registry.yarnpkg.com/@isaacs/cliui/-/cliui-8.0.2.tgz#b37667b7bc181c168782259bab42474fbf52b550"
@@ -5432,9 +5466,9 @@
54325466
integrity sha512-PHKZuMN+K5qgKIWhBodXzQslTo5P+K/6LqeKXS6O/4liIDdZqaX5RXrCK++LAw+y/nptN48YmUMFiQHRSWYwtQ==
54335467

54345468
"@types/aws-lambda@^8.10.83":
5435-
version "8.10.126"
5436-
resolved "https://registry.yarnpkg.com/@types/aws-lambda/-/aws-lambda-8.10.126.tgz#be132de6e68353e240c88505940e67cd95d3066e"
5437-
integrity sha512-5eh4ffLdGYgGYI1Xr6W5L4IVse4RR7L2ns5OVUXA52nW5GFapIcGMcCzHAIMMOdpcQs3aGVxbvFlJNZH6IpgEQ==
5469+
version "8.10.129"
5470+
resolved "https://registry.yarnpkg.com/@types/aws-lambda/-/aws-lambda-8.10.129.tgz#c4e040778a13b70a9cdf8ad54c1b853c94e2a44d"
5471+
integrity sha512-0Rl7CpTPVws5cp0Ui1gZh4Q+TXC65bXVwTOGoI2RKW45dxWzyZGbjIX0uFjFYdIJ8vnD45y584rIIqvD2vBBfQ==
54385472

54395473
"@types/babel__core@^7.0.0":
54405474
version "7.20.3"
@@ -6045,7 +6079,24 @@
60456079
semver "^7.5.4"
60466080
ts-api-utils "^1.0.1"
60476081

6048-
"@typescript-eslint/parser@^6.7.2":
6082+
"@typescript-eslint/eslint-plugin@^6.12.0":
6083+
version "6.12.0"
6084+
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.12.0.tgz#2a647d278bb48bf397fef07ba0507612ff9dd812"
6085+
integrity sha512-XOpZ3IyJUIV1b15M7HVOpgQxPPF7lGXgsfcEIu3yDxFPaf/xZKt7s9QO/pbk7vpWQyVulpJbu4E5LwpZiQo4kA==
6086+
dependencies:
6087+
"@eslint-community/regexpp" "^4.5.1"
6088+
"@typescript-eslint/scope-manager" "6.12.0"
6089+
"@typescript-eslint/type-utils" "6.12.0"
6090+
"@typescript-eslint/utils" "6.12.0"
6091+
"@typescript-eslint/visitor-keys" "6.12.0"
6092+
debug "^4.3.4"
6093+
graphemer "^1.4.0"
6094+
ignore "^5.2.4"
6095+
natural-compare "^1.4.0"
6096+
semver "^7.5.4"
6097+
ts-api-utils "^1.0.1"
6098+
6099+
"@typescript-eslint/parser@^6.12.0", "@typescript-eslint/parser@^6.7.2":
60496100
version "6.12.0"
60506101
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-6.12.0.tgz#9fb21ed7d88065a4a2ee21eb80b8578debb8217c"
60516102
integrity sha512-s8/jNFPKPNRmXEnNXfuo1gemBdVmpQsK1pcu+QIvuNJuhFzGrpD7WjOcvDc/+uEdfzSYpNu7U/+MmbScjoQ6vg==
@@ -6098,6 +6149,16 @@
60986149
debug "^4.3.4"
60996150
ts-api-utils "^1.0.1"
61006151

6152+
"@typescript-eslint/type-utils@6.12.0":
6153+
version "6.12.0"
6154+
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-6.12.0.tgz#968f7c95162808d69950ab5dff710ad730e58287"
6155+
integrity sha512-WWmRXxhm1X8Wlquj+MhsAG4dU/Blvf1xDgGaYCzfvStP2NwPQh6KBvCDbiOEvaE0filhranjIlK/2fSTVwtBng==
6156+
dependencies:
6157+
"@typescript-eslint/typescript-estree" "6.12.0"
6158+
"@typescript-eslint/utils" "6.12.0"
6159+
debug "^4.3.4"
6160+
ts-api-utils "^1.0.1"
6161+
61016162
"@typescript-eslint/types@5.62.0":
61026163
version "5.62.0"
61036164
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.62.0.tgz#258607e60effa309f067608931c3df6fed41fd2f"
@@ -6183,6 +6244,19 @@
61836244
"@typescript-eslint/typescript-estree" "6.10.0"
61846245
semver "^7.5.4"
61856246

6247+
"@typescript-eslint/utils@6.12.0":
6248+
version "6.12.0"
6249+
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-6.12.0.tgz#c6ce8c06fe9b0212620e5674a2036f6f8f611754"
6250+
integrity sha512-LywPm8h3tGEbgfyjYnu3dauZ0U7R60m+miXgKcZS8c7QALO9uWJdvNoP+duKTk2XMWc7/Q3d/QiCuLN9X6SWyQ==
6251+
dependencies:
6252+
"@eslint-community/eslint-utils" "^4.4.0"
6253+
"@types/json-schema" "^7.0.12"
6254+
"@types/semver" "^7.5.0"
6255+
"@typescript-eslint/scope-manager" "6.12.0"
6256+
"@typescript-eslint/types" "6.12.0"
6257+
"@typescript-eslint/typescript-estree" "6.12.0"
6258+
semver "^7.5.4"
6259+
61866260
"@typescript-eslint/utils@^5.10.0":
61876261
version "5.62.0"
61886262
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.62.0.tgz#141e809c71636e4a75daa39faed2fb5f4b10df86"
@@ -6242,6 +6316,11 @@
62426316
"@typescript-eslint/types" "6.7.4"
62436317
eslint-visitor-keys "^3.4.1"
62446318

6319+
"@ungap/structured-clone@^1.2.0":
6320+
version "1.2.0"
6321+
resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.2.0.tgz#756641adb587851b5ccb3e095daf27ae581c8406"
6322+
integrity sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==
6323+
62456324
"@webassemblyjs/ast@1.11.6", "@webassemblyjs/ast@^1.11.5":
62466325
version "1.11.6"
62476326
resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.11.6.tgz#db046555d3c413f8966ca50a95176a0e2c642e24"
@@ -9275,6 +9354,11 @@ eslint-config-prettier@^8.3.0:
92759354
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.10.0.tgz#3a06a662130807e2502fc3ff8b4143d8a0658e11"
92769355
integrity sha512-SM8AMJdeQqRYT9O9zguiruQZaN7+z+E4eAP9oiLNGKMtomwaB1E9dcgUD6ZAn/eQAb52USbvezbiljfZUhbJcg==
92779356

9357+
eslint-config-prettier@^9.0.0:
9358+
version "9.0.0"
9359+
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-9.0.0.tgz#eb25485946dd0c66cd216a46232dc05451518d1f"
9360+
integrity sha512-IcJsTkJae2S35pRsRAwoCE+925rJJStOdkKnLVgtE+tEpqU0EVVM7OqrwxqgptKdX29NUwC82I5pXsGFIgSevw==
9361+
92789362
eslint-formatter-friendly@^7.0.0:
92799363
version "7.0.0"
92809364
resolved "https://registry.yarnpkg.com/eslint-formatter-friendly/-/eslint-formatter-friendly-7.0.0.tgz#32a4998ababa0a39994aed629b831fda7dabc864"
@@ -9483,6 +9567,50 @@ eslint-webpack-plugin@^3.1.1:
94839567
normalize-path "^3.0.0"
94849568
schema-utils "^4.0.0"
94859569

9570+
eslint@^8.54.0:
9571+
version "8.54.0"
9572+
resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.54.0.tgz#588e0dd4388af91a2e8fa37ea64924074c783537"
9573+
integrity sha512-NY0DfAkM8BIZDVl6PgSa1ttZbx3xHgJzSNJKYcQglem6CppHyMhRIQkBVSSMaSRnLhig3jsDbEzOjwCVt4AmmA==
9574+
dependencies:
9575+
"@eslint-community/eslint-utils" "^4.2.0"
9576+
"@eslint-community/regexpp" "^4.6.1"
9577+
"@eslint/eslintrc" "^2.1.3"
9578+
"@eslint/js" "8.54.0"
9579+
"@humanwhocodes/config-array" "^0.11.13"
9580+
"@humanwhocodes/module-importer" "^1.0.1"
9581+
"@nodelib/fs.walk" "^1.2.8"
9582+
"@ungap/structured-clone" "^1.2.0"
9583+
ajv "^6.12.4"
9584+
chalk "^4.0.0"
9585+
cross-spawn "^7.0.2"
9586+
debug "^4.3.2"
9587+
doctrine "^3.0.0"
9588+
escape-string-regexp "^4.0.0"
9589+
eslint-scope "^7.2.2"
9590+
eslint-visitor-keys "^3.4.3"
9591+
espree "^9.6.1"
9592+
esquery "^1.4.2"
9593+
esutils "^2.0.2"
9594+
fast-deep-equal "^3.1.3"
9595+
file-entry-cache "^6.0.1"
9596+
find-up "^5.0.0"
9597+
glob-parent "^6.0.2"
9598+
globals "^13.19.0"
9599+
graphemer "^1.4.0"
9600+
ignore "^5.2.0"
9601+
imurmurhash "^0.1.4"
9602+
is-glob "^4.0.0"
9603+
is-path-inside "^3.0.3"
9604+
js-yaml "^4.1.0"
9605+
json-stable-stringify-without-jsonify "^1.0.1"
9606+
levn "^0.4.1"
9607+
lodash.merge "^4.6.2"
9608+
minimatch "^3.1.2"
9609+
natural-compare "^1.4.0"
9610+
optionator "^0.9.3"
9611+
strip-ansi "^6.0.1"
9612+
text-table "^0.2.0"
9613+
94869614
eslint@^8.6.0:
94879615
version "8.50.0"
94889616
resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.50.0.tgz#2ae6015fee0240fcd3f83e1e25df0287f487d6b2"

0 commit comments

Comments
 (0)