forked from sashainparis/ultimate-addons-for-gutenberg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
68 lines (68 loc) · 1.78 KB
/
.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
module.exports = {
root: true,
extends: [ 'plugin:@wordpress/eslint-plugin/recommended' ],
ignorePatterns: [ 'deprecated.js' ],
rules: {
'camelcase': 'off',
'prettier/prettier': 'off',
'@wordpress/no-global-event-listener': 'off',
'quotes': [ 'error', 'single', { allowTemplateLiterals: true, avoidEscape: true } ],
'quote-props': [ 'error', 'consistent-as-needed' ],
'space-in-parens': ['error', 'always', { exceptions: [ 'empty' ] } ],
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'@wordpress/i18n-text-domain': [ 'error', { allowedTextDomain: 'ultimate-addons-for-gutenberg' }, ],
},
overrides: [
{
files: [
'src/blocks/*/styling.js',
'src/blocks/*/*/styling.js',
'src/blocks/*/inline-styles.js',
],
rules: {
// 'quotes': [ 'warn', 'single', { allowTemplateLiterals: true, avoidEscape: true } ],
'object-shorthand': ['error', 'never'],
'quote-props': [ 'error', 'always' ],
},
},
],
globals: {
uagb_blocks_info: true,
uag_admin_react: true,
UAGB_Block_Icons: true,
__webpack_public_path__: true,
jQuery: true,
uagb_deactivate_blocks: true,
uag_react: true,
uagb_data: true,
bodymovin: true,
uagb_forms_data: true,
define: true,
Cookies: true,
UAGBTableOfContents: true,
localStorage: true,
uagb_timeline_data: true,
uagb_countdown_data: true,
UAGBModal: true,
CustomEvent: true,
fetch: true,
Headers: true,
FormData: true,
UAGBCounter: true,
location: true,
IntersectionObserver: true,
navigator: true,
uagb_popup_builder_admin: true,
UAGBLottie: true,
AOS: true,
UAGBForms: true,
UAGBCountdown: true,
uagb_carousel_height: true,
scroll: true,
Swiper: true,
uagb_image_gallery: true,
Isotope: true,
imagesLoaded: true,
},
};