-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
51 lines (47 loc) · 1.15 KB
/
.eslintrc.yml
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
# Specify project environments
env:
es6: true
browser: true
# Specify rule extensions
extends:
- 'plugin:@wordpress/eslint-plugin/recommended-with-formatting'
# Configure rules
rules:
no-undef: warn
no-unused-vars: warn
no-bitwise: warn
no-alert: warn
no-console:
- error
- allow:
- warn
- error
jsx-a11y/label-has-associated-control: warn
jsx-a11y/label-has-for: off
'@wordpress/no-global-event-listener': off
# Specify global variables to ignore
# Some of these aren't really globals, but this is useful for ignoring no-undef for class vars etc.
globals:
CLA11y: readonly
CLCardVimeo: readonly
CLCreateVimeoPlayers: readonly
CLHeroVimeo: readonly
CLVideoVimeo: readonly
CLVimeo: readonly
CLYT: readonly
jQuery: readonly
onYouTubePlayerAPIReady: readonly
tinymce: readonly
URICL: readonly
URIComponentLibrary: readonly
URIWYSIWYG: readonly
Vimeo: readonly
YT: readonly
# Specify files and directories to ignore
ignorePatterns:
- 'gulpfile.js'
- 'js/cl.built.js'
- 'js/blocks.built.js'
- 'js/wysiwyg/noneditable/**'
- 'node_modules/'
- 'webpack.config.js'