forked from godaddy-wordpress/coblocks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
45 lines (39 loc) · 876 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
/* eslint-disable sort-keys */
module.exports = {
extends: [ '@godaddy-wordpress/eslint-config' ],
// CoBlocks config
env: {
browser: true,
'cypress/globals': true,
jest: true,
'jest/globals': true,
},
plugins: [
'cypress',
'react',
'jest',
],
// Specific Globals used in CoBlocks
globals: {
page: true,
},
// Specific Rules for CoBlocks
// - Before adding a new rule here, see if it could be
// - added in '@godaddy-wordpress/eslint-config' instead
rules: {
// Jest plugin rules
'jest/expect-expect': [ 'error', {
assertFunctionNames: [ 'expect', 'cy.get', 'helpers.checkForBlockErrors' ],
} ],
'sort-imports': [ 'off' ],
'sort-keys': [ 'off' ],
'react/jsx-sort-props': [ 'off' ],
'react-hooks/exhaustive-deps': [ 'off' ],
},
noInlineConfig: false,
overrides: [
{
files: [ 'deprecated.js', 'save.js' ],
},
],
};