-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
65 lines (64 loc) · 1.48 KB
/
.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
54
55
56
57
58
59
60
61
62
63
64
65
const path = require('path')
module.exports = {
parser: 'babel-eslint',
extends: 'eslint-config-airbnb-easy',
env: {
browser: true,
node: true,
mocha: true
},
parserOptions: {
ecmaFeatures: {
jsx: true,
modules: true
}
},
plugins: ['react', 'flowtype'],
rules: {
'linebreak-style': 0,
'react/jsx-wrap-multilines': ['error', { arrow: true, assignment: true, declaration: true }],
'no-mixed-operators': [
'warn',
{
groups: [
['&', '|', '^', '~', '<<', '>>', '>>>'],
['==', '!=', '===', '!==', '>', '>=', '<', '<='],
['&&', '||'],
['in', 'instanceof']
],
allowSamePrecedence: false
}
],
'arrow-parens': ['error', 'always']
},
settings: {
'import/resolver': {
node: {
extensions: ['.js'],
paths: ['node_modules', path.join(__dirname, 'src')]
}
},
flowtype: {
onlyFilesWithFlowAnnotation: false
}
},
globals: {
tinymce: true,
beforeAll: true,
afterAll: true,
context: true,
SyntheticEvent: true,
SyntheticAnimationEvent: true,
SyntheticClipboardEvent: true,
SyntheticCompositionEvent: true,
SyntheticInputEvent: true,
SyntheticUIEvent: true,
SyntheticFocusEvent: true,
SyntheticKeyboardEvent: true,
SyntheticMouseEvent: true,
SyntheticDragEvent: true,
SyntheticWheelEvent: true,
SyntheticTouchEvent: true,
SyntheticTransitionEvent: true
}
}