forked from modxcms/revolution
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
41 lines (40 loc) · 987 Bytes
/
.eslintrc.js
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
33
34
35
36
37
38
39
40
41
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
'eslint:recommended',
'airbnb-base',
],
globals: {
MODx: 'readonly',
Ext: 'readonly',
_: 'readonly',
},
ignorePatterns: [
'manager/assets/modext/workspace/workspace.panel.js',
'manager/assets/ext3/**/*.js',
'manager/assets/fileapi/**/*.js',
'manager/assets/lib/**/*.js',
'manager/assets/modext/modx.jsgrps-min.js',
'setup/assets/js/ext-core.js',
'setup/assets/js/ext-core-debug.js',
],
overrides: [
],
parserOptions: {
ecmaVersion: 'latest',
},
rules: {
// TODO Enable rules gradually
indent: 0,
quotes: ['error', 'single'],
semi: 0,
'space-before-function-paren': 0,
'comma-dangle': 0,
'prefer-arrow-callback': 0,
'space-before-blocks': 0,
'object-shorthand': 0,
},
}