-
-
Notifications
You must be signed in to change notification settings - Fork 35
/
.eslintrc.yml
193 lines (193 loc) · 4.45 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
env:
browser: true
es2020: true
node: true
extends:
- plugin:coffee/eslint-recommended
- plugin:coffee/import
- plugin:import/recommended
- plugin:meteor/recommended
- plugin:coffee/react-recommended
- plugin:coffee/disable-incompatible
globals:
$: readonly
_: readonly
s: readonly # underscore.string
Blaze: readonly
BrowserPolicy: readonly
FileCollection: readonly
JSDOM: readonly
Kadira: readonly
Meteor: readonly
Modal: readonly
ReactiveDict: readonly
ReactiveVar: readonly
Router: readonly
Session: readonly
Subscribe: readonly
SubsManager: readonly
Template: readonly
Tracker: readonly
WebApp: readonly
# Coauthor databases
Emoji: readonly
EmojiMessages: readonly
Files: readonly
Groups: readonly
Tags: readonly
Messages: readonly
MessagesDiff: readonly
MessagesParent: readonly
Notifications: readonly
# Global functions that should be converted to imports
accessibleGroups: readonly
accessibleGroupNames: readonly
accessibleMessagesQuery: readonly
allUsernames: readonly
amCoauthor: readonly
atMentions: readonly
atRe: readonly
canAdmin: readonly
canCoauthorsMod: readonly
canDelete: readonly
canEdit: readonly
canImport: readonly
canMaybeParent: readonly
canMinimize: readonly
canParent: readonly
canPin: readonly
canPost: readonly
canPrivate: readonly
canProtect: readonly
canPublish: readonly
canReply: readonly
canUndelete: readonly
canUnpin: readonly
canUnpublish: readonly
canUnminimize: readonly
canSee: readonly
canSuper: readonly
canSuperdelete: readonly
capitalize: readonly
defaultFormat: readonly
deleteFile: readonly
displayUser: readonly
displayUserLastName: readonly
escapeGroup: readonly
escapeRegExp: readonly
escapeUser: readonly
fileType: readonly
findFile: readonly
findGroup: readonly
findMessage: readonly
findMessageParent: readonly
findUser: readonly
findUsername: readonly
fullMemberOfGroup: readonly
groupAnonymousRoles: readonly
groupData: readonly
groupFullMembers: readonly
groupMembers: readonly
groupPartialMembers: readonly
groupPartialMessagesWithRole: readonly
groupRoleCheck: readonly
groupVisible: readonly
haveExplicitAccess: readonly
highlight: readonly
idRegex: readonly
internalFileAbsoluteUrlPrefix: readonly
internalFileUrlPrefix: readonly
linkToAuthor: readonly
linkToSort: readonly
linkify: readonly
listToTags: readonly
markdown: readonly
markdownInline: readonly
marked: readonly # not actually used
maybeAddRootsToQuery: readonly
memberOfGroup: readonly
memberOfGroups: readonly
memberOfThread: readonly
message2group: readonly
message2root: readonly
messageReaders: readonly
messageRoleCheck: readonly
messagesBy: readonly
messagesByQuery: readonly
messagesTaggedQuery: readonly
notifyMessageUpdate: readonly
pathFor: readonly
pluralize: readonly
readableFiles: readonly
rootRoleCheck: readonly
routeGroup: readonly
routeGroupOrWild: readonly
routeMessage: readonly
routeSortBy: readonly
sanitize: readonly
setTitle: readonly
sortedGroupFullMembers: readonly
sortedGroupPartialMembers: readonly
titleOrUntitled: readonly
titleSort: readonly
undeletedMessagesQuery: readonly
unescapeGroup: readonly
unescapeUser: readonly
url2file: readonly
url2internalFile: readonly
urlFor: readonly
urlToInternalFile: readonly
urlToFile: readonly
validGroup: readonly
validUsername: readonly
wildGroup: readonly
ignorePatterns:
- .meteor
parser: eslint-plugin-coffee
parserOptions:
ecmaFeatures:
globalReturn: true
jsx: true
ecmaVersion: 11
sourceType: module
plugins:
- coffee
- import
- meteor
- react
rules:
linebreak-style:
- error
- unix
coffee/no-inner-declarations: off
coffee/no-unused-vars:
- error
- args: none # allow callbacks of the form (e) -> ...not using e...
coffee/no-useless-escape: off
import/default: off
import/no-named-as-default-member: off
react/no-unescaped-entities:
- warn
- forbid: ['>', '"', '}']
react/prop-types: off
react/react-in-jsx-scope: off
meteor/eventmap-params:
- error
- eventParamName: e
templateInstanceParamName: t
meteor/no-session: off
meteor/no-zero-timeout: off
meteor/audit-argument-checks:
- error
- checkEquivalents:
- checkId
settings:
import/ignore:
- node_modules
import/resolver:
meteor:
extensions:
- .coffee
- .js
react:
version: detect