free-games-claimer/.forgejo/workflows/.eslintrc.cjs
nocci 2dc018f2d6
Some checks failed
build-and-push / lint (push) Failing after 7s
build-and-push / sonar (push) Has been skipped
build-and-push / docker (push) Has been skipped
test(epic-claimer-new): add comprehensive tests for epic games claimer
- 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
2026-01-08 14:59:01 +00:00

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',
},
};