-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.yml
38 lines (34 loc) · 927 Bytes
/
.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
# 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 # We might actually need to address this at some point.
# 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:
CLResizeSuperheroes: readonly
jQuery: readonly
# Specify files and directories to ignore
ignorePatterns:
- 'gulpfile.js'
- 'js/script.min.js'
- 'js/block-editor.min.js'
- 'js/smoothscroll.min.js'
- 'node_modules/'
- 'static/**'