forked from sketch-hq/SketchAPI
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.yml
244 lines (237 loc) · 5.66 KB
/
.eslintrc.yml
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
root: true
parser: '@typescript-eslint/parser'
extends:
- airbnb-base
- prettier
plugins:
- typescript
- babel
- prettier
globals:
NSFont: false
MOPointer: false
NSMakeRange: false
NSMaxRange: false
MSSelfContainedHighLevelExporter: false
MSLayerMovement: false
NSMakeRect: false
MSBitmapLayer: false
MSLayerGroup: false
MSTextLayer: false
MSShapeGroup: false
NSArray: false
NSMakePoint: false
CGRectMake: false
MSArtboardGroup: false
MSPage: false
MSApplicationMetadata: false
log: false
NSApplication: false
NSDocumentController: false
NSAlert: false
NSComboBox: false
NSUserDefaults: false
AppController: false
MSImageData: false
NSImage: false
NSTextField: false
NSSlider: false
MSStyleFill: false
MSStyleBorder: false
MSColor: false
MSImmutableColor: false
MSDefaultStyle: false
MSLayer: false
MSDocumentData: false
MSSymbolMaster: false
MSSymbolInstance: false
MSAvailableOverride: false
MSAssetLibrary: false
MSDocument: false
NSURL: false
NSSaveToOperation: false
NSData: false
NSDataBase64DecodingIgnoreUnknownCharacters: false
__command: false
MSFlowConnection: false
MSHotspotLayer: false
NSPredicate: false
MSRectangleShape: false
MSSymbolMasterReference: false
MSShareableObjectReference: false
MSSharedStyleReference: false
NSString: false
MSForeignSymbolProvider: false
MSForeignObjectCollector: false
MSStyleShadow: false
MSStyleInnerShadow: false
MSGradientStop: false
MSImmutableGradientStop: false
MSGradient: false
MSImmutableGradient: false
CGPointMake: false
MSSharedLayerReference: false
MSSharedTextReference: false
MSUserAssetLibrary: false
MSRemoteAssetLibrary: false
NSSaveAsOperation: false
NSSaveOperation: false
coscript: false
__mocha__: false
NSOpenPanel: false
NSOKButton: false
NSNull: false
MSSharedLayerStyleProvider: false
MSSharedTextStyleProvider: false
MSForeignObjectProvider: false
MSSharedStyle: false
MSStyle: false
MSDataOverride: false
MSImmutableArtboardGroup: false
MSImmutableLayerGroup: false
MSImmutableHotspotLayer: false
MSImmutableBitmapLayer: false
MSImmutableLayer: false
MSImmutablePage: false
MSImmutableShapeGroup: false
MSStyledLayer: false
MSImmutableStyledLayer: false
MSImmutableSymbolInstance: false
MSImmutableSymbolMaster: false
MSImmutableTextLayer: false
MSImmutableDocumentData: false
MSShapePathLayer: false
MSOvalShape: false
MSPolygonShape: false
MSStarShape: false
MSTriangleShape: false
MSImmutableShapePathLayer: false
MSImmutableOvalShape: false
MSImmutablePolygonShape: false
MSImmutableStarShape: false
MSImmutableTriangleShape: false
MSImmutableRectangleShape: false
NSParagraphStyleAttributeName: false
NSParagraphStyle: false
MSTextStyle: false
NSKernAttributeName: false
NSFontAttributeName: false
NSFontManager: false
NSBoldFontMask: false
NSItalicFontMask: false
NSSmallCapsFontMask: false
NSCompressedFontMask: false
NSCondensedFontMask: false
NSExpandedFontMask: false
NSNarrowFontMask: false
NSPosterFontMask: false
MSDefaultTextStyle: false
NSUnderlineStyleAttributeName: false
NSStrikethroughStyleAttributeName: false
MSSliceLayer: false
MSImmutableSliceLayer: false
MSExportFormat: false
NSThread: false
MSTheme: false
MSCurvePoint: false
MSPath: false
SVGPathInterpreter: false
NSBezierPath: false
MSJSONDataArchiver: false
MSJSONDictionaryUnarchiver: false
MSArchiveHeader: false
NSUTF8StringEncoding: false
MSExportRequest: false
MSExportManager: false
NSFileManager: false
NSDataWritingWithoutOverwriting: false
MSColorAsset: false
MSGradientAsset: false
MSPersistentAssetCollection: false
MSOverrideProperty: false
MSOverridePoint: false
NSMutableArray: false
CGRectNull: false
NSColorSpace: false
NSColor: false
MSExporter: false
MSSVGImporter: false
MSPDFImporter: false
NSApp: false
CGPathGetBoundingBox: false
MSShapeEventHandler: false
NSIndexPath: false
NSScrollView: false
NSViewWidthSizable: false
NSViewHeightSizable: false
NSTextView: false
NSMakeSize: false
NSPopUpButton: false
rules:
###########
# PLUGINS #
###########
# IMPORT
import/prefer-default-export: off
import/no-extraneous-dependencies: off
import/extensions: off
import/no-unresolved:
- error
- commonjs: true
caseSensitive: true
ignore:
- '^sketch(\/|$)'
# TYPESCRIPT
typescript/interface-name-prefix:
- error
- always
typescript/no-angle-bracket-type-assertion: error
# typescript/explicit-member-accessibility: error
typescript/no-unused-vars: error
typescript/no-use-before-define:
- error
- functions: false
variables: false
typedefs: false
## blocked by https://github.com/nzakas/eslint-plugin-typescript/pull/23
# typescript/member-ordering: error
##
## blocked by https://github.com/nzakas/eslint-plugin-typescript/issues/41
# typescript/type-annotation-spacing: error
##
# Babel
babel/no-invalid-this: error
###########
# BUILTIN #
###########
no-underscore-dangle: 0
class-methods-use-this: warn
no-useless-constructor: warn
eqeqeq: 0
strict: 0
no-console: 0
prefer-object-spread: 0
max-classes-per-file: 0
###########
# SPECIAL #
###########
prettier/prettier:
- error
- singleQuote: true
trailingComma: es5
semi: false
parser: typescript
no-restricted-syntax:
- error
# no-default-export
- selector: ExportDefaultDeclaration
message: Use of default exports is forbidden
parserOptions:
sourceType: module
settings:
import/resolver:
node:
extensions:
- .ts
- .js
- .json