-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
82 lines (81 loc) · 1.88 KB
/
index.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
70
71
72
73
74
75
76
77
78
79
80
81
82
// See @wordpress/prettier-config.
const prettierConfig = {
useTabs: true,
tabWidth: 4,
printWidth: 100, // Default 80.
singleQuote: true,
trailingComma: 'es5',
bracketSpacing: true,
parenSpacing: true,
bracketSameLine: false,
semi: true,
arrowParens: 'always',
};
module.exports = {
root: true,
env: {
browser: true,
es6: true,
},
extends: [ 'plugin:@wordpress/eslint-plugin/recommended' ],
rules: {
'prettier/prettier': [ 'error', prettierConfig ],
},
settings: {
'import/core-modules': [
'react',
'react-dom',
'lodash',
'lodash-es',
'jquery',
'moment',
'@wordpress/a11y',
'@wordpress/annotations',
'@wordpress/api-fetch',
'@wordpress/autop',
'@wordpress/blob',
'@wordpress/block-directory',
'@wordpress/block-editor',
'@wordpress/block-library',
'@wordpress/block-serialization-default-parser',
'@wordpress/blocks',
'@wordpress/components',
'@wordpress/compose',
'@wordpress/core-data',
'@wordpress/data',
'@wordpress/data-controls',
'@wordpress/date',
'@wordpress/deprecated',
'@wordpress/dom',
'@wordpress/dom-ready',
'@wordpress/edit-post',
'@wordpress/editor',
'@wordpress/element',
'@wordpress/escape-html',
'@wordpress/format-library',
'@wordpress/hooks',
'@wordpress/html-entities',
'@wordpress/i18n',
'@wordpress/is-shallow-equal',
'@wordpress/keyboard-shortcuts',
'@wordpress/keycodes',
'@wordpress/list-reusable-blocks',
'@wordpress/media-utils',
'@wordpress/notices',
'@wordpress/nux',
'@wordpress/plugins',
'@wordpress/primitives',
'@wordpress/priority-queue',
'@wordpress/redux-routine',
'@wordpress/reusable-blocks',
'@wordpress/rich-text',
'@wordpress/server-side-render',
'@wordpress/shortcode',
'@wordpress/token-list',
'@wordpress/url',
'@wordpress/viewport',
'@wordpress/warning',
'@wordpress/wordcount',
],
},
};