-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy path.eslintrc.js
More file actions
47 lines (47 loc) · 1.05 KB
/
Copy path.eslintrc.js
File metadata and controls
47 lines (47 loc) · 1.05 KB
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
42
43
44
45
46
47
module.exports = {
root: true,
extends: [
'plugin:@wordpress/eslint-plugin/recommended',
'plugin:jest/recommended',
],
globals: {
GFPDF: 'readonly',
Backbone: 'readonly',
jQuery: 'readonly',
gfpdf_migration_multisite_ids: 'readonly',
gf_vars: 'readonly',
tinyMCE: 'readonly',
gform: 'readonly',
ConditionalLogic: 'readonly',
GetFirstRuleField: 'readonly',
ToggleConditionalLogic: 'readonly',
GetRuleValuesDropDown: 'readonly',
QTags: 'readonly',
switchEditors: 'readonly',
getUserSetting: 'readonly',
wp: 'readonly',
gfMergeTagsObj: 'readonly',
form: 'readonly',
gform_initialize_tooltips: 'readonly',
_: 'readonly',
ClipboardJS: 'readonly',
},
rules: {
'no-alert': 'off',
'jest/no-done-callback': 'off',
'camelcase': 'off',
'jsdoc/empty-tags': ['off', { tags: ['package'] }],
'@typescript-eslint/no-unused-vars': 'off'
},
settings: {
jsdoc: {
mode: 'closure',
},
"import/resolver": {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
"typescript": {}
}
},
};