- 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
36 lines
750 B
JavaScript
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',
|
|
},
|
|
};
|