free-games-claimer/.forgejo/workflows/.eslintrc.cjs
nocci 370e3db206
Some checks failed
build-and-push / lint (push) Successful in 8s
build-and-push / sonar (push) Failing after 0s
build-and-push / docker (push) Has been skipped
🔧 chore(workflows): add screenshot to ESLint globals
- add screenshot as a readonly global variable to ESLint configuration

♻️ refactor(epic-games): improve path resolution for screenshots

- replace resolve with path.resolve for better path management
2026-01-08 15:43:30 +00:00

36 lines
750 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: {
screenshot: 'readonly',
cfg: 'readonly',
URL_CLAIM: 'readonly',
COOKIES_PATH: 'readonly',
BEARER_TOKEN_NAME: 'readonly',
notify: 'readonly',
authenticator: 'readonly',
prompt: 'readonly',
},
};