Skip to content

πŸ“ˆ Get real-time stocks from TradingView

Update ESLint config

Mathieu Colmon2ca8391bd431
diff --git a/.eslintrc.js b/.eslintrc.js
index 69da59c..1ecdbb2 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -20,5 +20,7 @@ module.exports = {
devDependencies: ['./test.js', './tests/**'],
},
],
+ 'no-restricted-syntax': 'off',
+ 'no-await-in-loop': 'off',
},
};
diff --git a/tests/09. AllErrors.js b/tests/09. AllErrors.js
index da89fae..6611d79 100644
--- a/tests/09. AllErrors.js
+++ b/tests/09. AllErrors.js
@@ -177,7 +177,6 @@ module.exports = async (log, success, warn, err, cb) => {
];
(async () => {
- // eslint-disable-next-line no-restricted-syntax, no-await-in-loop
for (const t of tests) await new Promise(t);
success(`Crashtests ${tests.length}/${tests.length} done !`);
cb();
diff --git a/tests/10. Authenticated.js b/tests/10. Authenticated.js
index 7772537..feda000 100644
--- a/tests/10. Authenticated.js
+++ b/tests/10. Authenticated.js
@@ -1,5 +1,3 @@
-/* eslint-disable no-restricted-syntax */
-/* eslint-disable no-await-in-loop */
const TradingView = require('../main');
const wait = (ms) => new Promise((cb) => { setTimeout(cb, ms); });