- implement extensive testing for new epic games claiming functionality - ensure robust coverage of API interactions, OAuth flows, and game claiming logic ✨ feat(epic-claimer-new): introduce new epic games claiming logic - add new logic for claiming free games via API with OAuth device flow - implement automatic cookie reuse and manual login fallback - enhance error handling and logging for improved debugging ♻️ refactor(epic-claimer-new): optimize code structure and modularity - refactor functions for better code organization and readability - modularize authentication and game claiming processes for reusability 🔧 chore(eslintrc): update eslint configuration - add stylistic plugins and rules for better code consistency - configure globals and parser options for modern JavaScript compatibility
35 lines
722 B
JavaScript
35 lines
722 B
JavaScript
module.exports = {
|
|
env: {
|
|
node: true,
|
|
es2021: true,
|
|
es6: true,
|
|
},
|
|
extends: [
|
|
'eslint:recommended',
|
|
],
|
|
parserOptions: {
|
|
ecmaVersion: 'latest',
|
|
sourceType: 'module',
|
|
},
|
|
rules: {
|
|
'no-unused-vars': ['warn', {
|
|
varsIgnorePattern: '^_',
|
|
argsIgnorePattern: '^_',
|
|
}],
|
|
'no-undef': 'error',
|
|
'@stylistic/js/comma-dangle': ['error', 'always-multiline'],
|
|
'@stylistic/js/arrow-parens': ['error', 'as-needed'],
|
|
},
|
|
plugins: [
|
|
'@stylistic/js',
|
|
],
|
|
globals: {
|
|
cfg: 'readonly',
|
|
URL_CLAIM: 'readonly',
|
|
COOKIES_PATH: 'readonly',
|
|
BEARER_TOKEN_NAME: 'readonly',
|
|
notify: 'readonly',
|
|
authenticator: 'readonly',
|
|
prompt: 'readonly',
|
|
},
|
|
};
|