This repository has been archived by the owner on May 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
wordpress.js
69 lines (69 loc) · 1.82 KB
/
wordpress.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
69
module.exports = {
extends: ['plugin:@wordpress/eslint-plugin/recommended-with-formatting', './react'],
settings: {
'import/core-modules': [
'@wordpress/block-editor',
'@wordpress/components',
'@wordpress/block-library',
'@wordpress/editor',
'@wordpress/element',
'@wordpress/hooks',
'@wordpress/html-entities',
'@wordpress/icons',
'@wordpress/blocks',
'@wordpress/api-fetch',
'@wordpress/dom-ready',
'@wordpress/blob',
'@wordpress/base-styles',
'@wordpress/block-directory',
'@wordpress/block-serialization-default-parser',
'@wordpress/block-serialization-spec-parser',
'@wordpress/compose',
'@wordpress/core-data',
'@wordpress/customize-widgets',
'@wordpress/data-controls',
'@wordpress/data',
'@wordpress/date',
'@wordpress/dom',
'@wordpress/escape-html',
'@wordpress/format-library',
'@wordpress/i18n',
'@wordpress/interface',
'@wordpress/is-shallow-equal',
'@wordpress/keycodes',
'@wordpress/lazy-import',
'@wordpress/list-reusable-blocks',
'@wordpress/media-utils',
'@wordpress/notices',
'@wordpress/nux',
'@wordpress/react-i18n',
'@wordpress/priority-queue',
'@wordpress/primitives',
'@wordpress/react-native-aztec',
'@wordpress/react-native-bridge',
'@wordpress/redux-routine',
'@wordpress/reusable-blocks',
'@wordpress/rich-text',
'@wordpress/server-side-render',
'@wordpress/shortcod',
'@wordpress/token-list',
'@wordpress/url',
'@wordpress/viewport',
'@wordpress/warning',
'@wordpress/wordcount',
],
},
globals: {
window: true,
document: true,
wp: 'readonly',
lodash: true,
},
rules: {
'react/react-in-jsx-scope': 0,
'react/prop-types': 0,
'react/jsx-props-no-spreading': 0,
'@wordpress/dependency-group': 0,
'import/no-unresolved': [2, { ignore: ['^@wordpress/'] }],
},
};