Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
528 commits
Select commit Hold shift + click to select a range
94e8ada
Fail CI if testing-tool fails.
timoxley Dec 19, 2020
9ae678d
Ensure repos pulled before continuing in CI testing-tool step.
timoxley Dec 19, 2020
01299ba
Add debug logging to CI testing-tool step.
timoxley Dec 19, 2020
3733378
Run testing-tool with node 14.
timoxley Dec 19, 2020
41e84c8
Split testing-tool setup + test steps.
timoxley Dec 19, 2020
b9f6739
Pull with rebase in testing-tool setup.
timoxley Dec 19, 2020
8ae9b28
Fix directory for test step.
timoxley Dec 19, 2020
3744ca4
Try share install/build files across CI jobs.
timoxley Dec 19, 2020
0297bab
Remove automated publish step.
timoxley Dec 19, 2020
f071e90
Add CI env var, increase storage wait timeout in CI.
timoxley Dec 19, 2020
ac82611
Fix up CI yaml.
timoxley Dec 19, 2020
becbdbe
Fix up CI yaml.
timoxley Dec 19, 2020
47ab674
Fix up CI yaml.
timoxley Dec 19, 2020
5a1634c
Fix up CI yaml.
timoxley Dec 19, 2020
5d98042
Remove upload/download-artifact actions, except for build step. Too m…
timoxley Dec 19, 2020
b1e976a
Use v2 actions. Use checkout action instead of git clone.
timoxley Dec 19, 2020
80b089b
Enable bundle analysis in CI build.
timoxley Dec 19, 2020
50242a6
Fix download path, beautify yaml.
timoxley Dec 19, 2020
2c34113
Always debug with colour in CI.
timoxley Dec 19, 2020
9d534d7
Always enable Streamr debug logs in CI.
timoxley Dec 19, 2020
348d142
Fix known group key parsing.
timoxley Dec 19, 2020
c90b431
Use fewer messages in streamr-client-testing.
timoxley Dec 19, 2020
9946a1d
Use cached getStream in validator. Fix cacheKey in ClientCache.
timoxley Dec 19, 2020
cfd862f
Upload benchmark results as artifact.
timoxley Dec 19, 2020
b2387f3
git ignore tests_output.
timoxley Dec 19, 2020
d10a2e2
Refresh package-lock.json.
timoxley Dec 19, 2020
c107bbd
Add retries & timeouts to CI steps. Split testing tool steps.
timoxley Dec 20, 2020
ab3fbca
Fix up CI yaml.
timoxley Dec 20, 2020
c0322bd
Set up testing-tool CI steps as matrix.
timoxley Dec 20, 2020
a3826b1
Disable fail-fast for testing-tool CI matrix.
timoxley Dec 20, 2020
b169c02
Add retry to client-testing CI step.
timoxley Dec 20, 2020
1f7341b
Show name of test first in testing-tool matrix.
timoxley Dec 20, 2020
5dd5fd5
Add debug logging into KeyExchange.
timoxley Dec 20, 2020
cc652fd
Log changed package.json.
timoxley Dec 20, 2020
cd8b53b
Fix retry timeout.
timoxley Dec 20, 2020
603cb29
Include git information on client creation debug output.
timoxley Dec 20, 2020
5243658
Correctly swap out client version for local path in client-testing se…
timoxley Dec 20, 2020
02bbb21
Update protocol to 7.1.1.
timoxley Dec 20, 2020
a81db31
Include stack in failed publish message.
timoxley Dec 20, 2020
03c8d71
Rebundle streamr-client-protocol with client.
timoxley Dec 20, 2020
8a7bcb8
Use updated browserified feross/buffer module in browser.
timoxley Jan 18, 2021
1839429
Increase integration test timeout to 40min.
timoxley Dec 20, 2020
fd16cb6
Update protocol to 7.1.2.
timoxley Dec 20, 2020
217070e
Test encryption/decryption in browser.
timoxley Dec 20, 2020
30cf517
Try using npm link for client-testing.
timoxley Dec 20, 2020
c28fdc9
Increase retries for client-testing from 3 to 5.
timoxley Dec 20, 2020
8ab1d98
Set up integration/flakey tests as matrix.
timoxley Dec 21, 2020
5af410b
Set up various client-testing configs as matrix.
timoxley Dec 21, 2020
3cdd9f9
Fix up CI yaml.
timoxley Dec 21, 2020
7d45de2
Fix up CI yaml.
timoxley Dec 21, 2020
87212b2
Increase integration test timeout to 60min.
timoxley Dec 21, 2020
3f1a78f
Fix flakey test config.
timoxley Dec 21, 2020
135def8
Add new job for flakey tests.
timoxley Dec 21, 2020
c1e6c88
Parse group keys out of client config.groupKeys.
timoxley Dec 21, 2020
d9c0619
Log full object when error validating GroupKey.
timoxley Dec 21, 2020
44796df
Debug log when encountering a gap.
timoxley Dec 21, 2020
c5c4c88
Turn off retries for client-testing.
timoxley Dec 21, 2020
f16d916
Turn off retries for integration tests.
timoxley Dec 21, 2020
faba96e
Fix up CI yaml.
timoxley Dec 21, 2020
80db8d3
Unskip tests.
timoxley Dec 22, 2020
8dc694c
Run resend and non-resend tests separately.
timoxley Dec 22, 2020
81056bd
Increase timeout on resend tests specifically.
timoxley Dec 22, 2020
67008b7
Fix for flakey reconnection tests.
timoxley Jan 6, 2021
b4ee7b4
Fix getWaitForStorage message comparison.
timoxley Jan 13, 2021
774f581
Remove WEBSOCKET_URL env var from CI tests.
timoxley Jan 15, 2021
0c7f060
Relax disconnect/reconnect test, add more delay. Make test more relia…
timoxley Jan 15, 2021
178868a
Fix Subscription id.
timoxley Jan 15, 2021
5540994
Add default cache options to client.
timoxley Jan 15, 2021
ac4c3dd
Fix passing of cacheKey & other cache opts to Cache{Async}Fn.
timoxley Jan 15, 2021
7aca0cf
Cache message validation results.
timoxley Jan 15, 2021
37e23b9
Update & add basic styles in subscribe example. Improve performance b…
timoxley Jan 15, 2021
c5fe5f8
Relax disconnect/reconnect test further.
timoxley Jan 15, 2021
8bb1296
Do proper before/after cleanup for disconnect/reconnect test. Increas…
timoxley Jan 15, 2021
8f71024
Verify individual messages arrived in browser test.
timoxley Jan 7, 2021
8ff719d
Merge branch 'DU-2' into encryption-pipeline
timoxley Jan 5, 2021
67c629f
Use integration/config.js as defaults, allow tests to override.
timoxley Jan 6, 2021
c7d5694
Rename getPublisherId to getUserId. Move into src/user.
timoxley Jan 6, 2021
4973ba1
Ensure Session options object is never shared across clients. Prevent…
timoxley Jan 18, 2021
c0d47c0
Fix up CI yaml.
timoxley Jan 6, 2021
24ba1fa
Fix up CI yaml.
timoxley Jan 7, 2021
ce112a9
Separate dataunion tests in CI.
timoxley Jan 7, 2021
0a64db0
Reduce line length.
timoxley Jan 7, 2021
ab6935c
Remove need for ethers in dependencies.
timoxley Jan 7, 2021
d71ae2f
Move ethers to devDependencies. Refresh package-lock.
timoxley Jan 7, 2021
5052b72
bridge_collected is not part of (default) config anymore
Jan 12, 2021
ce61d80
re-add getAddress, getSigner, getSidechainSigner to StreamrClient
Jan 13, 2021
90f0754
Release v5.0.0-beta.2
timoxley Jan 15, 2021
3257670
Merge pull request #185 from streamr-dev/encryption-pipeline
timoxley Jan 19, 2021
97e2163
get token address from a data union if available
Jan 14, 2021
5e0cf02
fix parseAddress argument count
Jan 14, 2021
65bd8b7
More "reasonable" resolution order for WHICH token balance the caller…
Jan 14, 2021
0b8a973
fix lint
Jan 14, 2021
8c9c4af
minor cleanup
Jan 14, 2021
ff0c8fc
Merge pull request #189 from streamr-dev/fix-token-balance-getter
Jan 14, 2021
ce1a8f4
Break Ethereum methods out of StreamrClient & into new file src/Ether…
timoxley Jan 19, 2021
abd0e7f
Fix client version & git status logging on startup to work for node +…
timoxley Jan 19, 2021
987e53d
Fetch git info for test env in parallel.
timoxley Jan 19, 2021
1ecd351
Add ws url config variations to CI integration test matrix.
timoxley Jan 19, 2021
44fffba
Fix up CI yaml.
timoxley Jan 19, 2021
245a0dd
Try fix integration test matrix exclude.
timoxley Jan 19, 2021
e0c4d47
Replace manual setup steps with streamr-docker-dev-action in CI.
timoxley Jan 19, 2021
26444ff
Remove internal-use only Ethereum methods from client API.
timoxley Jan 20, 2021
83ee19f
Add metamask prompt bug workaround.
timoxley Jan 20, 2021
bb9f235
Merge pull request #188 from streamr-dev/encryption-pipeline-du
timoxley Jan 20, 2021
a8db768
Release v5.0.0-beta.3
timoxley Jan 20, 2021
5b7b019
Initial pass on Readme.
timoxley Jan 21, 2021
3367980
Tidy tables in README.
timoxley Jan 21, 2021
390d43b
Add getPublisherId to client.
timoxley Jan 21, 2021
fc8aadc
Fix typo in DU endpoints.
timoxley Jan 22, 2021
2e90809
Release v5.0.0-beta.4
timoxley Jan 22, 2021
12134e7
Fix reference to auth.provider in Readme.
timoxley Jan 22, 2021
13b9446
Merge branch 'master' into 5.x
timoxley Jan 22, 2021
af0f135
Fix injected env vars to not be wrapped in quotes, include version in…
timoxley Jan 22, 2021
80cf157
Adjusting resend subscribe timing.
timoxley Jan 25, 2021
b74727e
Further adjusting resend subscribe timing.
timoxley Jan 25, 2021
785af1f
Add failing multiple publishers + late subscriber test.
timoxley Jan 11, 2021
0b61c46
Adjust multi-publisher, multi-subscriber tests into passing state.
timoxley Jan 25, 2021
7458313
Loosen test timeouts. Add more cleanup.
timoxley Jan 25, 2021
7984a13
Test client fills gaps between resend & realtime.
timoxley Jan 25, 2021
a73dfc4
Remove --maxWorkers=1 in CI.
timoxley Jan 25, 2021
5793413
Give resent event a chance to fire.
timoxley Jan 25, 2021
6bb2ae1
Remove suspicious waits.
timoxley Jan 25, 2021
302fb6a
Fix resend event depending on resend stream done vs msg processed ord…
timoxley Jan 26, 2021
634d237
Add TEST_REPEATS=5 to CI.
timoxley Jan 26, 2021
6f266e1
Restore previous Defer wrap functions async timing.
timoxley Jan 26, 2021
ff53fb3
Tidy package.json.
timoxley Jan 26, 2021
35688ee
Increase stress test timeout.
timoxley Jan 26, 2021
8fcf620
Ensure gapfill messages run through message pipeline.
timoxley Jan 26, 2021
0090b3f
Clean up unused.
timoxley Jan 26, 2021
3e5802e
Increase number of messages in testing tool CI tests.
timoxley Jan 26, 2021
c112c42
Linting.
timoxley Jan 26, 2021
4d0b889
Fix validator error handling.
timoxley Jan 26, 2021
a32db2e
Order messages once to get gaps, then again at end of pipeline.
timoxley Jan 26, 2021
edd3545
Run ordering twice, first to get gapfills then again to re-order mess…
timoxley Jan 26, 2021
493f8a3
Fix pipeline error/ordering handling.
timoxley Jan 26, 2021
b4b1fb1
Split npm ci & npm link steps in testing-tool CI.
timoxley Jan 26, 2021
a0709f8
Reduce TEST_REPEATS from 5 to 2 for integration tests in CI.
timoxley Jan 26, 2021
b589499
Release v5.0.0-beta.5
timoxley Jan 27, 2021
f695e9c
Refresh dependencies.
timoxley Jan 27, 2021
5eaf97d
Refresh dependencies.
timoxley Jan 27, 2021
d270100
NET-178: Storage node methods #197
teogeb Feb 10, 2021
61f6541
Update chromedriver to Chrome 88
timoxley Feb 1, 2021
2c0d9bf
Fix apikey auth.
timoxley Feb 10, 2021
42221ed
Release v5.0.0-beta.6
timoxley Feb 10, 2021
672420b
Merge branch 'master' into 5.x
timoxley Feb 10, 2021
5ea7c5c
Basic TypeScript support
teogeb Feb 16, 2021
8609f2f
Fix test file
teogeb Feb 16, 2021
488747f
Export Subscription class
teogeb Feb 16, 2021
e1e7a2b
Add placeholder type annotations
teogeb Feb 16, 2021
b53e327
Tests to support TypeScript
teogeb Feb 16, 2021
bfc7141
Encapsulate endpoints
teogeb Feb 16, 2021
04ef6e8
Use explicit parameters in untilWithdrawIsComplete
teogeb Feb 16, 2021
4f9cdf5
Run DataUnion tests in band: concurrent run causes "Transaction with …
teogeb Feb 16, 2021
afdd50d
TypeScript support to ESLint
teogeb Feb 16, 2021
852973d
Type definitions
teogeb Feb 16, 2021
5753cb5
Hide private login endpoints
teogeb Feb 16, 2021
beefb7c
Retry browser tests.
timoxley Feb 16, 2021
448485f
Merge pull request #199 from streamr-dev/typescript
timoxley Feb 17, 2021
c205059
Add detectFields implementation to Stream
Feb 3, 2021
b084961
Remove FieldDetector class
Feb 12, 2021
b918b3d
Update resend/subscribe signature so onMessage is optional.
timoxley Feb 17, 2021
e67d00a
Remove old Stream.detectFields test.
timoxley Feb 17, 2021
061bbd8
Fix client import in test, also verify config works after reloading s…
timoxley Feb 17, 2021
2ce2157
Add types to stream fields, refactor detectFields to fix typing.
timoxley Feb 17, 2021
ba22250
Tidy unused.
timoxley Feb 17, 2021
b50eb2a
Merge pull request #196 from streamr-dev/NET-182-detect-fields
timoxley Feb 18, 2021
0c308f2
Merge branch 'master' into 5.x
timoxley Feb 18, 2021
537062d
Add end parameter to PushQueue.from & pipeline. Prevents premature cl…
timoxley Feb 1, 2021
1d95da2
Add tests for PushQueue.from end parameter. PushQueue.from should buf…
timoxley Feb 1, 2021
e5857ff
Add autoEnd option to PushQueue.
timoxley Feb 1, 2021
468eb55
Use streamr-client-protocol@8.0.0-beta.1
timoxley Feb 1, 2021
08f9280
Fix decryption transform.
timoxley Feb 1, 2021
9f13e02
Add resend gapfill test. WIP.
timoxley Feb 8, 2021
d334d58
Add runtime-corejs3 to dependencies, update babel runtime deps.
timoxley Feb 10, 2021
942f7c4
Fix jest module resolution with npm linked deps.
timoxley Feb 11, 2021
5be869d
Default onFinally is async for type hinting.
timoxley Feb 11, 2021
2898004
Fix broken OrderMessages output.
timoxley Feb 11, 2021
7d1a91f
Convert jest.setup to ESM.
timoxley Feb 11, 2021
1147ee5
Refresh package-lock.
timoxley Feb 11, 2021
3ac9c57
Fix issues with gaps in resends. Test gap failure mode.
timoxley Feb 11, 2021
2ec2963
Ignore failed messages explicitly rather than treat them as unfillabl…
timoxley Feb 11, 2021
02c4d03
Fix handling for failed gapfills.
timoxley Feb 12, 2021
45d6174
Add onError option to Scaffold.
timoxley Feb 12, 2021
3e04753
Give each test message a count out of total so it's clear what it is.
timoxley Feb 12, 2021
d177205
Exclude gap related tests from 'npm run test-integration-no-resend'
timoxley Feb 12, 2021
a6f1055
Concatenate error messages with passed-in message in AggregatedError.
timoxley Feb 12, 2021
9b2cf39
Tune collecting of subscription errors.
timoxley Feb 12, 2021
f523e57
Ignore connection errors if should be disconnected during subscriptio…
timoxley Feb 12, 2021
5354b9e
Add another variant of flakey disconnect/reconnect subscribe test.
timoxley Feb 12, 2021
46c3a35
Make test/utils getPublishTestMessages timestamp option into optional…
timoxley Feb 16, 2021
106d57b
Rename pipeline steps.
timoxley Feb 16, 2021
3517ef0
Update flakey disconnect/reconnect subscribe test.
timoxley Feb 16, 2021
55c2b51
Use streamr-client-protocol@8.0.0-beta.2.
timoxley Feb 16, 2021
cb878f7
Linting
timoxley Feb 16, 2021
cd45f51
Line-length linting.
timoxley Feb 17, 2021
421d3ee
Remove superfluous @ts-expect-error directives preventing build.
timoxley Feb 17, 2021
f3f986a
Add client.options.maxGapRequests = 5 to client config, use to config…
timoxley Feb 18, 2021
b94bdcd
Merge pull request #200 from streamr-dev/NET-181-resend-gapfill
timoxley Feb 22, 2021
78449c1
NET-205: Simplify DataUnion interface (#202)
teogeb Feb 23, 2021
49642da
Add npm run test-types to check ./src & ./test types.
timoxley Feb 23, 2021
2dad5d9
Linting & clean up DataUnion jsdoc + types.
timoxley Feb 23, 2021
eae6929
Move Config types into Config.ts.
timoxley Feb 17, 2021
29f888f
Automatically attach rest endpoint methods to client, inherit method …
timoxley Feb 17, 2021
a8bd4c6
Add npm run watch.
timoxley Feb 18, 2021
a9d6eec
Fix shape of default exported lib for browser.
timoxley Feb 18, 2021
9712ec2
Add npm run check-types, add ts-toolbelt.
timoxley Feb 18, 2021
faf358c
Convert Scaffold.js to Scaffold.ts.
timoxley Feb 18, 2021
c69b33c
Convert AggregatedError.js to AggregatedError.ts.
timoxley Feb 18, 2021
e1437dc
Convert util/index.js to util/index.ts.
timoxley Feb 18, 2021
cc8bcf7
Update some packages.
timoxley Feb 18, 2021
7eaa363
Fix reversed conditional for 0x prefix in Config.js
timoxley Feb 19, 2021
695bc22
Downgrade quick-lru from 6.0.0 to 5.x due to weird exports syntax in …
timoxley Feb 19, 2021
2a9d769
Update to webpack 5. Fix issue with quick-lru@6.x in Jest.
timoxley Feb 19, 2021
ba9905e
Fix production build.
timoxley Feb 19, 2021
6dc86e5
Add AggregatedError.test.ts. Add ts-jest.
timoxley Feb 22, 2021
e1907ad
Remove webpack node build, use tsc instead.
timoxley Feb 22, 2021
8b879c7
Re-enable no-undef eslint rule.
timoxley Feb 22, 2021
7e3e6d0
Merge pull request #203 from streamr-dev/dataunion-linting
timoxley Feb 23, 2021
4a7d14c
Linting & clean up DataUnion tests.
timoxley Feb 23, 2021
ff9262a
Remove check-types script in favour of test-types.
timoxley Feb 23, 2021
08f864a
Error if trying to get sidechainProvider and none configured.
timoxley Feb 23, 2021
a8bab9e
Fix unused or simple to fix @ts-expect-error directives.
timoxley Feb 23, 2021
41a03c5
Remove config.sidechainAmbAddress, add factorySidechainAddress.
timoxley Feb 23, 2021
b048e7a
Throw if trying to use missing factorySidechainAddress, factoryMainne…
timoxley Feb 23, 2021
54b1d46
TS Linting.
timoxley Feb 23, 2021
108ed5f
Base test tsconfig on node tsconfig.
timoxley Feb 23, 2021
4cd05c4
Build node lib in npm run build.
timoxley Feb 23, 2021
6d9e9cb
Remove no longer needed webpack export default workaround.
timoxley Feb 23, 2021
aaed908
Release v5.0.0-beta.7
timoxley Feb 23, 2021
6ce6ffe
Convert publish/Encrypt.js -> publish/Encrypt.ts.
timoxley Feb 24, 2021
f1a6d3b
Convert publish/Signer.js -> publish/Signer.ts.
timoxley Feb 24, 2021
0071715
Convert stream/StorageNode.js -> stream/StorageNode.ts.
timoxley Feb 24, 2021
219a596
Tell jest to ignore dist. Prevents jest-haste-map complaining.
timoxley Feb 23, 2021
e780937
Merge pull request #201 from streamr-dev/typescript-tweaks
timoxley Feb 24, 2021
17c996c
DataUnions: encapsulate contract handling, remove obsolete wrappers, …
teogeb Mar 1, 2021
e047453
Types for authFetch (#207)
teogeb Mar 2, 2021
d35841c
Error handling of getStream/createStream/etc. (#208)
teogeb Mar 2, 2021
fda0067
DataUnion types (#209)
teogeb Mar 2, 2021
9b2805f
Fix connection.test.js (#211)
teogeb Mar 3, 2021
9ccd610
Stream reject on error refactor (#212)
teogeb Mar 3, 2021
1db5b30
Export public types, update DU config (#210)
teogeb Mar 11, 2021
ddef678
Fix line lengths, unify dataunion address validation messages.
timoxley Mar 11, 2021
4f08fdb
Merge pull request #213 from streamr-dev/linting-export-public-types
timoxley Mar 11, 2021
ec31136
Release v5.0.0-beta.8
timoxley Mar 11, 2021
32224af
Release v5.0.0-beta.9
timoxley Mar 11, 2021
585edf1
privateKey type: EthereumAddress -> string|BytesLike (#215)
teogeb Mar 11, 2021
569146e
Simplify privateKey type
teogeb Mar 11, 2021
4bdc631
Internal properties and methods (#214)
teogeb Mar 12, 2021
217887d
Upgrade MetaMask support (#217)
teogeb Mar 12, 2021
fb3eed1
Public type definitions (#218)
teogeb Mar 12, 2021
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
36 changes: 36 additions & 0 deletions .babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
module.exports = {
presets: [
['@babel/preset-env', {
useBuiltIns: 'usage',
corejs: 3,
loose: false,
bugfixes: true,
shippedProposals: true,
targets: {
browsers: [
'supports async-functions',
'supports cryptography',
'supports es6',
'supports async-iterations-and-generators',
'not dead',
'not ie <= 11',
'not ie_mob <= 11'
]
},
exclude: ['transform-regenerator', '@babel/plugin-transform-regenerator']
}],
['@babel/preset-typescript']
],
plugins: [
"add-module-exports",
['@babel/plugin-transform-runtime', {
corejs: 3,
helpers: true,
regenerator: false
}],
"@babel/plugin-transform-modules-commonjs",
['@babel/plugin-proposal-class-properties', {
loose: false
}]
]
}
29 changes: 29 additions & 0 deletions .babel.node.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
module.exports = {
presets: [
['@babel/preset-env', {
useBuiltIns: 'usage',
modules: false,
corejs: 3,
loose: false,
bugfixes: true,
shippedProposals: true,
targets: {
node: true
}
}],
['@babel/preset-typescript']
],
plugins: [
'add-module-exports',
['@babel/plugin-transform-runtime', {
useESModules: false,
corejs: 3,
helpers: true,
regenerator: false
}],
'@babel/plugin-transform-modules-commonjs',
['@babel/plugin-proposal-class-properties', {
loose: false
}]
]
}
34 changes: 0 additions & 34 deletions .babelrc

This file was deleted.

4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@ node_modules/**
examples/**
coverage/**
dist/**
test/legacy/**
src/shim/**
test/unit/StubbedStreamrClient.js
streamr-docker-dev/**
vendor/**
test/exports/**
39 changes: 37 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
module.exports = {
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint'
],
extends: [
'streamr-nodejs'
],
parserOptions: {
ecmaVersion: 2020,
ecmaFeatures: {
modules: true
}
},
env: {
browser: true,
es6: true
},
rules: {
'max-len': ['warn', {
code: 150
Expand All @@ -19,11 +33,32 @@ module.exports = {
}
],
'prefer-destructuring': 'warn',

'object-curly-newline': 'off',
'no-continue': 'off',
'max-classes-per-file': 'off', // javascript is not java
// TODO check all errors/warnings and create separate PR
'promise/always-return': 'warn',
'promise/catch-or-return': 'warn',
'require-atomic-updates': 'warn',
'promise/param-names': 'warn'
'promise/param-names': 'warn',
'no-restricted-syntax': [
'error', 'ForInStatement', 'LabeledStatement', 'WithStatement'
],
'import/extensions': ['error', 'never', { json: 'always' }],
'lines-between-class-members': 'off',
'padded-blocks': 'off',
'no-use-before-define': 'off',
'import/order': 'off',
'no-shadow': 'off',
'@typescript-eslint/no-shadow': 'error',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error'],
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.ts']
}
}
}
}
Loading