-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.cjs
More file actions
32 lines (32 loc) · 821 Bytes
/
.eslintrc.cjs
File metadata and controls
32 lines (32 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* eslint-env node */
/** Minimal ESLint config for the app’s plain browser JS (no bundler for most files). */
module.exports = {
root: true,
env: {
browser: true,
es2020: true,
},
globals: {
OC: 'readonly',
OCA: 'readonly',
t: 'readonly',
escapeHTML: 'readonly',
ProjectCheckDatepicker: 'readonly',
ProjectCheckDeletionModal: 'readonly',
},
parserOptions: {
ecmaVersion: 2020,
sourceType: 'script',
},
overrides: [
{
files: ['js/common/index.js', 'js/common/cache.js', 'js/common/performance.js'],
parserOptions: { sourceType: 'module' },
},
],
rules: {
'no-unused-vars': ['warn', { args: 'none', caughtErrors: 'none', varsIgnorePattern: '^_' }],
'no-console': ['warn', { allow: ['warn', 'error'] }],
},
ignorePatterns: ['dist/', 'node_modules/', 'js/dist/', 'sw.js'],
};