refactor: migrate ESLint configuration to flat config and remove redundant rule files

- replace legacy .eslintrc files with flat eslint.config.js
- consolidate eslint globals for improved code clarity
- enable prefer-const and no-unused-vars off in *.js for flexibility
- remove unused import statements and redundant eslint directives from epic-games.js and aliexpress.js
- standardize function parameter syntax to arrow with parentheses omitted where safe
- add comments marking unused but retained functions for reference
This commit is contained in:
nocci 2026-03-06 15:38:58 +00:00
parent 728b0c734b
commit 96df8cb3d4
5 changed files with 85 additions and 53 deletions

View file

@ -71,7 +71,7 @@ const urls = {
merge: 'https://m.aliexpress.com/p/merge-market/index.html',
};
/* eslint-disable no-unused-vars */
const coins = async () => {
await Promise.any([page.locator('.checkin-button').click(), page.locator('.addcoin').waitFor()]);
console.log('Coins:', await page.locator('.mycoin-content-right-money').innerText());
@ -94,7 +94,7 @@ const euro = async () => {
const merge = async () => {
await page.pause();
};
/* eslint-enable no-unused-vars */
try {
await [