-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path.eslintrc.js
60 lines (60 loc) · 1.7 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
module.exports = {
extends: ['sketch', 'o2team'],
rules: {
'new-cap': 0,
'class-methods-use-this': 0,
'no-unused-vars': 1,
'no-undef': 1,
'eqeqeq': 0, // OC className 比较用全等会有问题
'no-mixed-operators': 0,
'array-callback-return': 0,
'no-return-assign': 0,
},
globals: {
// Mocha
Mocha: false,
// Objective-C
nil: false,
COScript: false,
NSThread: false,
NSFileHandlingPanelOKButton: false,
NSMomentaryChangeButton: false,
NSClassFromString: false,
NSModalResponseOK: false,
NSPointInRect: false,
NSMakeRect: false,
NSMakeSize: false,
NSZeroRect: false,
NSSelectorFromString: false,
NSNotificationCenter: false,
NSWindowDidResizeNotification: false,
NSOffState: false,
NSBoxSeparator: false,
NSWidth: false,
NSHeight: false,
NSWindowStyleMaskFullSizeContentView: false,
NSBorderlessWindowMask: false,
NSResizableWindowMask: false,
NSTexturedBackgroundWindowMask: false,
NSTitledWindowMask: false,
NSClosableWindowMask: false,
NSFullSizeContentViewWindowMask: false,
NSWindowStyleMaskResizable: false,
NSFloatingWindowLevel: false,
NSWindowZoomButton: false,
NSWindowMiniaturizeButton: false,
NSWindowCloseButton: false,
NSWindowZoomButton: false,
NSWindowFullScreenButton: false,
NSWindowFullScreenButton: false,
NSWindowTitleHidden: false,
NSVisualEffectMaterialPopover: false,
NSViewWidthSizable: false,
NSViewHeightSizable: false,
NSAppearanceNameVibrantLight: false,
NSVisualEffectBlendingModeBehindWindow: false,
NSPNGFileType: false,
NSUserDefaults: false,
NSWindowStyleMaskDocModalWindow: false,
}
}