Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

chore: update eslint config #187

Merged
merged 1 commit into from
May 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,14 @@ module.exports = {
'no-shadow': 'off',
'@typescript-eslint/no-shadow': 'error',
'@typescript-eslint/prefer-nullish-coalescing': 'error',
'@typescript-eslint/strict-boolean-expressions': 'error',
'@typescript-eslint/strict-boolean-expressions': [
'error',
{
allowString: false,
allowNumber: false,
allowNullableObject: true,
},
],
'@typescript-eslint/ban-ts-comment': [
'error',
{
Expand Down Expand Up @@ -161,6 +168,13 @@ module.exports = {
'@typescript-eslint/no-unnecessary-type-arguments': 'error',
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
'@typescript-eslint/switch-exhaustiveness-check': 'error',
'@typescript-eslint/restrict-template-expressions': [
'error',
{
allowNumber: true,
allowBoolean: true,
},
],
},
},
],
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@
"@nrwl/workspace": "^14.1.4",
"@swarmion/nx-plugin": "0.5.6",
"@types/jest": "^27.5.0",
"@typescript-eslint/eslint-plugin": "^5.23.0",
"@typescript-eslint/parser": "^5.23.0",
"@typescript-eslint/eslint-plugin": "^5.24.0",
"@typescript-eslint/parser": "^5.24.0",
"aws-sdk": "^2.1133.0",
"dependency-cruiser": "^11.7.0",
"eslint": "^8.15.0",
"eslint-config-prettier": "^8.5.0",
"eslint-import-resolver-typescript": "^2.7.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^26.1.5",
"eslint-plugin-jest": "^26.2.2",
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-prettier": "^4.0.0",
"fresko": "^0.3.0",
Expand Down
130 changes: 65 additions & 65 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3424,15 +3424,15 @@ __metadata:
"@nrwl/workspace": ^14.1.4
"@swarmion/nx-plugin": 0.5.6
"@types/jest": ^27.5.0
"@typescript-eslint/eslint-plugin": ^5.23.0
"@typescript-eslint/parser": ^5.23.0
"@typescript-eslint/eslint-plugin": ^5.24.0
"@typescript-eslint/parser": ^5.24.0
aws-sdk: ^2.1133.0
dependency-cruiser: ^11.7.0
eslint: ^8.15.0
eslint-config-prettier: ^8.5.0
eslint-import-resolver-typescript: ^2.7.1
eslint-plugin-import: ^2.26.0
eslint-plugin-jest: ^26.1.5
eslint-plugin-jest: ^26.2.2
eslint-plugin-prefer-arrow: ^1.2.3
eslint-plugin-prettier: ^4.0.0
fresko: ^0.3.0
Expand Down Expand Up @@ -4200,120 +4200,120 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/eslint-plugin@npm:^5.23.0":
version: 5.23.0
resolution: "@typescript-eslint/eslint-plugin@npm:5.23.0"
"@typescript-eslint/eslint-plugin@npm:^5.24.0":
version: 5.24.0
resolution: "@typescript-eslint/eslint-plugin@npm:5.24.0"
dependencies:
"@typescript-eslint/scope-manager": 5.23.0
"@typescript-eslint/type-utils": 5.23.0
"@typescript-eslint/utils": 5.23.0
debug: ^4.3.2
"@typescript-eslint/scope-manager": 5.24.0
"@typescript-eslint/type-utils": 5.24.0
"@typescript-eslint/utils": 5.24.0
debug: ^4.3.4
functional-red-black-tree: ^1.0.1
ignore: ^5.1.8
ignore: ^5.2.0
regexpp: ^3.2.0
semver: ^7.3.5
semver: ^7.3.7
tsutils: ^3.21.0
peerDependencies:
"@typescript-eslint/parser": ^5.0.0
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
peerDependenciesMeta:
typescript:
optional: true
checksum: 19ee37c0be172469968f61d156d6ce36a975ab72ccbb8f702eb4573c94d1cf9247ff32352ed85eda5e7b2eaace567d5c66b32846f042f9711349213496ec37d4
checksum: 1a16849f7ec55cc5933e2dae26fc23f9a917288c349fb01476cf19d7adc8960c165650f775db925dd53f1c1434236b0232d3be9a308eb99dde44f250acf737c1
languageName: node
linkType: hard

"@typescript-eslint/parser@npm:^5.23.0":
version: 5.23.0
resolution: "@typescript-eslint/parser@npm:5.23.0"
"@typescript-eslint/parser@npm:^5.24.0":
version: 5.24.0
resolution: "@typescript-eslint/parser@npm:5.24.0"
dependencies:
"@typescript-eslint/scope-manager": 5.23.0
"@typescript-eslint/types": 5.23.0
"@typescript-eslint/typescript-estree": 5.23.0
debug: ^4.3.2
"@typescript-eslint/scope-manager": 5.24.0
"@typescript-eslint/types": 5.24.0
"@typescript-eslint/typescript-estree": 5.24.0
debug: ^4.3.4
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
peerDependenciesMeta:
typescript:
optional: true
checksum: b65a732b0be06ac9e4b13df78c466517e33fd382985c5d85b6d51cfa295cdf3351594cc2f95dda41d57abb6115e3b8df815fbbb7793aa0c4eddbac11077b90a8
checksum: 1a46015e827fcd9b68fd5267e976bb6b518b66038ef8f9b3a7a720ae4d9819be7479c080d416c1fce6479e4ae32394dae55bc07f8087a40f162218df70eb6de5
languageName: node
linkType: hard

"@typescript-eslint/scope-manager@npm:5.23.0":
version: 5.23.0
resolution: "@typescript-eslint/scope-manager@npm:5.23.0"
"@typescript-eslint/scope-manager@npm:5.24.0":
version: 5.24.0
resolution: "@typescript-eslint/scope-manager@npm:5.24.0"
dependencies:
"@typescript-eslint/types": 5.23.0
"@typescript-eslint/visitor-keys": 5.23.0
checksum: cd3dda0b18d6730e34784fc63135fc9fe31673898d3e0868cd765ad78855351f285fe577297193cf179b3ce918c3d44453de85159a925f5c02d12a5626e787d8
"@typescript-eslint/types": 5.24.0
"@typescript-eslint/visitor-keys": 5.24.0
checksum: e83fc4808d978e577d8f28e3db8f88ab166e14210a1384f5e0ddbb7170f3055426f58270f9d2edddae1e11f602d952da5cc5fc3a9d8b9a699a3f11c32614c148
languageName: node
linkType: hard

"@typescript-eslint/type-utils@npm:5.23.0":
version: 5.23.0
resolution: "@typescript-eslint/type-utils@npm:5.23.0"
"@typescript-eslint/type-utils@npm:5.24.0":
version: 5.24.0
resolution: "@typescript-eslint/type-utils@npm:5.24.0"
dependencies:
"@typescript-eslint/utils": 5.23.0
debug: ^4.3.2
"@typescript-eslint/utils": 5.24.0
debug: ^4.3.4
tsutils: ^3.21.0
peerDependencies:
eslint: "*"
peerDependenciesMeta:
typescript:
optional: true
checksum: 88bf7c7a08c11f2a02a05fe331750c569bfc2b4759e0dea6ec72ffd1597624a01100965052a5fede1e3f25ea8ef503bd424e03c9805f0a1af223f28b4fd74946
checksum: 73da0fcfc06670b9a8e1204612695a5008b67bc8d56f08b5bfe2183b024f92eb74bd76853cd97a1b6af5db9cc7b3b0719419f31582133aa38380eac735877a62
languageName: node
linkType: hard

"@typescript-eslint/types@npm:5.23.0":
version: 5.23.0
resolution: "@typescript-eslint/types@npm:5.23.0"
checksum: 96ae3e80cfae7b34f2846db692c31fb1804bf9651bce1d29f2eb8ae4c763d22f3283adc02dedeebd7cf70e4d8be54ec7f6ca593e03cdca26c791207e7556c2c1
"@typescript-eslint/types@npm:5.24.0":
version: 5.24.0
resolution: "@typescript-eslint/types@npm:5.24.0"
checksum: 75cc0cbbcaa351b4e79219494e93af7d27a217b199a254d6d38e4a271251b2fbbc3f9403cdb273f0cc2e9468dbe0b96eb50364d3d352374b54a629eca130ec76
languageName: node
linkType: hard

"@typescript-eslint/typescript-estree@npm:5.23.0":
version: 5.23.0
resolution: "@typescript-eslint/typescript-estree@npm:5.23.0"
"@typescript-eslint/typescript-estree@npm:5.24.0":
version: 5.24.0
resolution: "@typescript-eslint/typescript-estree@npm:5.24.0"
dependencies:
"@typescript-eslint/types": 5.23.0
"@typescript-eslint/visitor-keys": 5.23.0
debug: ^4.3.2
globby: ^11.0.4
"@typescript-eslint/types": 5.24.0
"@typescript-eslint/visitor-keys": 5.24.0
debug: ^4.3.4
globby: ^11.1.0
is-glob: ^4.0.3
semver: ^7.3.5
semver: ^7.3.7
tsutils: ^3.21.0
peerDependenciesMeta:
typescript:
optional: true
checksum: 8d85bb1cd777e93cc7322ae8fea25f9b924def02494cdb8395c1d5d17b5fd3ac9bc969418a1d20a5dc28c2cdd85da20e13527e28b595c06ff6f84cd22a78d73f
checksum: 934da82db9ac74c755d27931eaca78340130269e2d24107b441d6c5374d9d36cf55043b1c426ffb06292b22ebcd2f0d3a7b12e0e490e732a6151d71049c596d9
languageName: node
linkType: hard

"@typescript-eslint/utils@npm:5.23.0, @typescript-eslint/utils@npm:^5.10.0":
version: 5.23.0
resolution: "@typescript-eslint/utils@npm:5.23.0"
"@typescript-eslint/utils@npm:5.24.0, @typescript-eslint/utils@npm:^5.10.0":
version: 5.24.0
resolution: "@typescript-eslint/utils@npm:5.24.0"
dependencies:
"@types/json-schema": ^7.0.9
"@typescript-eslint/scope-manager": 5.23.0
"@typescript-eslint/types": 5.23.0
"@typescript-eslint/typescript-estree": 5.23.0
"@typescript-eslint/scope-manager": 5.24.0
"@typescript-eslint/types": 5.24.0
"@typescript-eslint/typescript-estree": 5.24.0
eslint-scope: ^5.1.1
eslint-utils: ^3.0.0
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
checksum: 72207399f29856b601148fe1aff07049021fad8e780ee6e896279d2291806d4608f1c28ddc5c3c5616ce94f25dcbcd26f295669e524fc1c4b4db810569c90f85
checksum: 8ba202373d7c0d7f15646e4b172fff101dfd178c5116e5be4c5811fc355db426ca7d9e6ad184ed65eddab58f075b1ace65039cd44b15020caee748d0489794fd
languageName: node
linkType: hard

"@typescript-eslint/visitor-keys@npm:5.23.0":
version: 5.23.0
resolution: "@typescript-eslint/visitor-keys@npm:5.23.0"
"@typescript-eslint/visitor-keys@npm:5.24.0":
version: 5.24.0
resolution: "@typescript-eslint/visitor-keys@npm:5.24.0"
dependencies:
"@typescript-eslint/types": 5.23.0
eslint-visitor-keys: ^3.0.0
checksum: 322e10d52a985e8a90d3612bb9d09a87dc64fc4cb1248484f1a9a7a98f65d3ef65a465ce868773a4939e35fa3b726ad609dac5a168efd7eaca4b06df33e965e3
"@typescript-eslint/types": 5.24.0
eslint-visitor-keys: ^3.3.0
checksum: 8001da8101a41ddcaf0931e71883dab7f8b9f1cdb896827afc8401388d23c831ba06c126b7f74cb3cb6fc8b2689564b9da6a3a35b99ab134157cd5381319d418
languageName: node
linkType: hard

Expand Down Expand Up @@ -7163,9 +7163,9 @@ __metadata:
languageName: node
linkType: hard

"eslint-plugin-jest@npm:^26.1.5":
version: 26.1.5
resolution: "eslint-plugin-jest@npm:26.1.5"
"eslint-plugin-jest@npm:^26.2.2":
version: 26.2.2
resolution: "eslint-plugin-jest@npm:26.2.2"
dependencies:
"@typescript-eslint/utils": ^5.10.0
peerDependencies:
Expand All @@ -7176,7 +7176,7 @@ __metadata:
optional: true
jest:
optional: true
checksum: 727487c6d0cc4aa66f8209fc187a2f4eb56ffea6569dacb04bb1e3272221d6238460fb967a12074acac50b0b545d2190c697bad64ebc6c8bdd4e8f3cc66d5a68
checksum: c1299a0bb465196d3c8a26ee892e29398b91bb741fe69ac6b19b54096f795142a152355ca520d80c778fb588ba2282a7c625ef204c17fe65ee94709d16970d46
languageName: node
linkType: hard

Expand Down Expand Up @@ -7309,7 +7309,7 @@ __metadata:
languageName: node
linkType: hard

"eslint-visitor-keys@npm:^3.0.0, eslint-visitor-keys@npm:^3.3.0":
"eslint-visitor-keys@npm:^3.3.0":
version: 3.3.0
resolution: "eslint-visitor-keys@npm:3.3.0"
checksum: d59e68a7c5a6d0146526b0eec16ce87fbf97fe46b8281e0d41384224375c4e52f5ffb9e16d48f4ea50785cde93f766b0c898e31ab89978d88b0e1720fbfb7808
Expand Down Expand Up @@ -8237,7 +8237,7 @@ __metadata:
languageName: node
linkType: hard

"globby@npm:^11.0.1, globby@npm:^11.0.4, globby@npm:^11.1.0":
"globby@npm:^11.0.1, globby@npm:^11.1.0":
version: 11.1.0
resolution: "globby@npm:11.1.0"
dependencies:
Expand Down