forked from rankmath/seo-by-rank-math
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
53 lines (51 loc) · 963 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
42
43
44
45
46
47
48
49
50
51
52
53
module.exports = {
root: true,
extends: [
'plugin:@wordpress/eslint-plugin/recommended-with-formatting',
'plugin:eslint-comments/recommended',
],
env: {
browser: false,
es6: true,
node: true,
mocha: true,
},
parserOptions: {
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
globals: {
ClipboardJS: true,
rankMath: true,
rankMathAdmin: true,
rankMathEditor: true,
tinymce: true,
// Elementor
$e: true,
elementor: true,
elementorCommon: true,
ElementorConfig: true,
},
settings: {
react: {
pragma: 'wp',
},
jsdoc: {
preferredTypes: [ 'jqXHR' ],
},
},
rules: {
semi: [ 1, 'never' ],
'semi-spacing': 'error',
// jsdoc.
'jsdoc/check-access': 'off',
'jsdoc/require-property': 'off',
'jsdoc/require-property-type': 'off',
'jsdoc/require-property-name': 'off',
'jsdoc/require-property-description': 'off',
'jsdoc/check-property-names': 'off',
'jsdoc/empty-tags': 'off',
},
}