eslint-config-tencent 1.0.4 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintrc.js ADDED
@@ -0,0 +1,20 @@
1
+ module.exports = {
2
+ extends: ['./index.js'],
3
+ globals: {
4
+ Prism: false,
5
+ },
6
+ overrides: [
7
+ {
8
+ files: ['**/*.ts', '**/*.tsx'],
9
+ extends: ['./ts.js'],
10
+ parserOptions: {
11
+ sourceType: 'module',
12
+ project: [
13
+ './tsconfig.json',
14
+ ],
15
+ tsconfigRootDir: __dirname,
16
+ ecmaVersion: 2018,
17
+ },
18
+ },
19
+ ],
20
+ };
package/CHANGELOG.md ADDED
@@ -0,0 +1,571 @@
1
+ # ChangeLog (standards/javascript)
2
+
3
+ ## [2021-09-29, Version v0.16.0](http://git.woa.com/standards/javascript/-/tags/v0.16.0)
4
+
5
+
6
+
7
+ ### Features
8
+
9
+ - [[`3cb13aa7`](http://git.woa.com/standards/javascript/commit/3cb13aa7)] **-** 添加 @typescript-eslint/no-misused-promises 规则 (xcatliu)
10
+
11
+
12
+
13
+
14
+ ## [2021-06-28, Version v0.15.2](http://git.woa.com/standards/javascript/-/tags/v0.15.2)
15
+
16
+
17
+ ### Bug fixes
18
+
19
+ - [[`8b8e1177`](http://git.woa.com/standards/javascript/commit/8b8e1177)] **-** 优化错误示例 (ziofatli)
20
+ - [[`083381aa`](http://git.woa.com/standards/javascript/commit/083381aa)] **-** 未使用变量允许使用前导下划线表明 (ziofatli)
21
+
22
+
23
+
24
+
25
+ ## [2021-06-17, Version v0.15.1](http://git.woa.com/standards/javascript/-/tags/v0.15.1)
26
+
27
+
28
+ ### Bug fixes
29
+
30
+ - [[`3a9536a7`](http://git.woa.com/standards/javascript/commit/3a9536a7)] **-** **rules**: #197 fixed the issues we are discussed (xqkuang(旷旭卿)) [#197](https://git.woa.com/standards/javascript/issues/197)
31
+ - [[`517ac213`](http://git.woa.com/standards/javascript/commit/517ac213)] **-** **rules**: #197 make naming-convention compatible with React FC (xqkuang(旷旭卿)) [#197](https://git.woa.com/standards/javascript/issues/197)
32
+ - [[`137b65ca`](http://git.woa.com/standards/javascript/commit/137b65ca)] **-** **rules**: #199 make spaced-comment compatible with triple slash directives (xqkuang(旷旭卿)) [#199](https://git.woa.com/standards/javascript/issues/199)
33
+
34
+
35
+
36
+
37
+ ## [2021-06-15, Version v0.15.0](http://git.woa.com/standards/javascript/-/tags/v0.15.0)
38
+
39
+
40
+
41
+ ### Features
42
+
43
+ - [[`cd8b024e`](http://git.woa.com/standards/javascript/commit/cd8b024e)] **-** remove class literal property style rule (ziofatli)
44
+
45
+
46
+
47
+
48
+ ## [2021-06-08, Version v0.14.0](http://git.woa.com/standards/javascript/-/tags/v0.14.0)
49
+
50
+
51
+
52
+ ### Features
53
+
54
+ - [[`13c94760`](http://git.woa.com/standards/javascript/commit/13c94760)] **-** **prettier**: 添加 @tencent/eslint-config-tencent/prettier 规则 (xcatliu)
55
+
56
+
57
+
58
+
59
+ ## [2021-05-28, Version v0.13.3](http://git.woa.com/standards/javascript/-/tags/v0.13.3)
60
+
61
+
62
+ ### Bug fixes
63
+
64
+ - [[`b1bf13c3`](http://git.woa.com/standards/javascript/commit/b1bf13c3)] **-** 删除重复规则 (meteorxyliu)
65
+
66
+
67
+
68
+
69
+ ## [2021-05-28, Version v0.13.2](http://git.woa.com/standards/javascript/-/tags/v0.13.2)
70
+
71
+
72
+ ### Bug fixes
73
+
74
+ - [[`be155971`](http://git.woa.com/standards/javascript/commit/be155971)] **-** **doc**: 修改 Readme 中的空格规则级别使其和配置一致 (ziofatli)
75
+
76
+
77
+
78
+
79
+ ## [2021-05-24, Version v0.13.1](http://git.woa.com/standards/javascript/-/tags/v0.13.1)
80
+
81
+
82
+ ### Bug fixes
83
+
84
+ - [[`40da5ee9`](http://git.woa.com/standards/javascript/commit/40da5ee9)] **-** 🐛 change to use rebase merge type (xqkuang(旷旭卿))
85
+
86
+
87
+
88
+
89
+ ## [2021-04-25, Version v0.13.0](http://git.woa.com/standards/javascript/-/tags/v0.13.0)
90
+
91
+
92
+
93
+ ### Features
94
+
95
+ - [[`38dc4eb8`](http://git.woa.com/standards/javascript/commit/38dc4eb8)] **-** **comment**: 增加文档注释相关规定 (ziofatli)
96
+
97
+
98
+
99
+
100
+ ## [2020-12-23, Version v0.12.3](http://git.woa.com/standards/javascript/-/tags/v0.12.3)
101
+
102
+
103
+ ### Bug fixes
104
+
105
+ - [[`0e129a71`](http://git.woa.com/standards/javascript/commit/0e129a71)] **-** **rules**: 修复不允许使用for-of的规则 (alextang) [!127](https://git.woa.com/standards/javascript/merge_requests/127)
106
+
107
+
108
+
109
+
110
+ ## [2020-09-28, Version v0.12.2](http://git.woa.com/standards/javascript/-/tags/v0.12.2)
111
+
112
+
113
+ ### Bug fixes
114
+
115
+ - [[`2b1460f0`](http://git.woa.com/standards/javascript/commit/2b1460f0)] **-** **rules**: 放宽 no-mixed-operators 在四则运算上的限制 (feihua) [!118](https://git.woa.com/standards/javascript/merge_requests/118)
116
+
117
+
118
+
119
+
120
+ ## [2020-09-28, Version v0.12.1](http://git.woa.com/standards/javascript/-/tags/v0.12.1)
121
+
122
+
123
+ ### Bug fixes
124
+
125
+ - [[`10fd84ed`](http://git.woa.com/standards/javascript/commit/10fd84ed)] **-** **ts**: downgrade ts/explicit-member-accessibility to off #65 (xqkuang(旷旭卿)) [!90](https://git.woa.com/standards/javascript/merge_requests/90) [#65](https://git.woa.com/standards/javascript/issues/65)
126
+
127
+
128
+
129
+
130
+ ## [2020-09-27, Version v0.12.0](http://git.woa.com/standards/javascript/-/tags/v0.12.0)
131
+
132
+
133
+
134
+ ### Features
135
+
136
+ - [[`d8894f77`](http://git.woa.com/standards/javascript/commit/d8894f77)] **-** **ts**: 使用 brace-style 规则的 ts 版本 (meteorxyliu) [!116](https://git.woa.com/standards/javascript/merge_requests/116)
137
+
138
+
139
+
140
+
141
+ ## [2020-09-14, Version v0.11.2](http://git.woa.com/standards/javascript/-/tags/v0.11.2)
142
+
143
+
144
+ ### Bug fixes
145
+
146
+ - [[`018c16ca`](http://git.woa.com/standards/javascript/commit/018c16ca)] **-** **rules**: 保证一个规则文件中只有一个规则 (feihua) [!111](https://git.woa.com/standards/javascript/merge_requests/111)
147
+
148
+
149
+
150
+
151
+ ## [2020-09-11, Version v0.11.1](http://git.woa.com/standards/javascript/-/tags/v0.11.1)
152
+
153
+
154
+ ### Bug fixes
155
+
156
+ - [[`d42e9cc7`](http://git.woa.com/standards/javascript/commit/d42e9cc7)] **-** **rules**: 放宽 new-cap 规则, 允许大写开头函数被直接调用 (feihua) [!109](https://git.woa.com/standards/javascript/merge_requests/109)
157
+
158
+
159
+
160
+
161
+ ## [2020-09-11, Version v0.11.0](http://git.woa.com/standards/javascript/-/tags/v0.11.0)
162
+
163
+
164
+
165
+ ### Features
166
+
167
+ - [[`72e008fc`](http://git.woa.com/standards/javascript/commit/72e008fc)] **-** **rules**: 豁免 no-param-reassign 规则在部分常用库下的行为 (feihua) [!108](https://git.woa.com/standards/javascript/merge_requests/108)
168
+
169
+
170
+
171
+
172
+ ## [2020-09-11, Version v0.10.0](http://git.woa.com/standards/javascript/-/tags/v0.10.0)
173
+
174
+
175
+
176
+ ### Features
177
+
178
+ - [[`49743197`](http://git.woa.com/standards/javascript/commit/49743197)] **-** **rules**: 放宽 prefer-destructuring 的范围 (feihua) [!99](https://git.woa.com/standards/javascript/merge_requests/99)
179
+
180
+
181
+
182
+
183
+ ## [2020-09-10, Version v0.9.1](http://git.woa.com/standards/javascript/-/tags/v0.9.1)
184
+
185
+
186
+ ### Bug fixes
187
+
188
+ - [[`22937c94`](http://git.woa.com/standards/javascript/commit/22937c94)] **-** **rules**: 修正 TypeScript 校验逻辑 (feihua) [!103](https://git.woa.com/standards/javascript/merge_requests/103)
189
+
190
+
191
+
192
+
193
+ ## [2020-09-10, Version v0.9.0](http://git.woa.com/standards/javascript/-/tags/v0.9.0)
194
+
195
+
196
+
197
+ ### Features
198
+
199
+ - [[`33f50ba3`](http://git.woa.com/standards/javascript/commit/33f50ba3)] **-** **rules**: 放宽 no-mixed-operators 规则 (feihua) [!97](https://git.woa.com/standards/javascript/merge_requests/97)
200
+
201
+
202
+
203
+
204
+ ## [2020-09-09, Version v0.8.1](http://git.woa.com/standards/javascript/-/tags/v0.8.1)
205
+
206
+
207
+ ### Bug fixes
208
+
209
+ - [[`1f64b714`](http://git.woa.com/standards/javascript/commit/1f64b714)] **-** remove wrong comment in readme (ziofatli) [!96](https://git.woa.com/standards/javascript/merge_requests/96)
210
+
211
+
212
+
213
+
214
+ ## [2020-09-09, Version v0.8.0](http://git.woa.com/standards/javascript/-/tags/v0.8.0)
215
+
216
+
217
+
218
+ ### Features
219
+
220
+ - [[`e46ec7c2`](http://git.woa.com/standards/javascript/commit/e46ec7c2)] **-** **ci**: 建立专用的走查群 (youkunhuang) [!105](https://git.woa.com/standards/javascript/merge_requests/105)
221
+
222
+
223
+
224
+
225
+ ## [2020-09-07, Version v0.7.2](http://git.woa.com/standards/javascript/-/tags/v0.7.2)
226
+
227
+
228
+ ### Bug fixes
229
+
230
+ - [[`7d8637e4`](http://git.woa.com/standards/javascript/commit/7d8637e4)] **-** **typo**: fixed PascalCase typo (weitao)
231
+
232
+
233
+
234
+
235
+ ## [2020-07-29, Version v0.7.1](http://git.woa.com/standards/javascript/-/tags/v0.7.1)
236
+
237
+
238
+ ### Bug fixes
239
+
240
+ - [[`a5eb47c0`](http://git.woa.com/standards/javascript/commit/a5eb47c0)] **-** **rules**: 处理 ts 中 func-spacing-call 的误报问题 (ziofatli)
241
+
242
+
243
+
244
+
245
+ ## [2020-06-24, Version v0.7.0](http://git.woa.com/standards/javascript/-/tags/v0.7.0)
246
+
247
+
248
+
249
+ ### Features
250
+
251
+ - [[`dab1dde2`](http://git.woa.com/standards/javascript/commit/dab1dde2)] **-** **rules**: close ts-new-cap (svenzeng)
252
+
253
+
254
+
255
+
256
+ ## [2020-06-10, Version v0.6.0](http://git.woa.com/standards/javascript/-/tags/v0.6.0)
257
+
258
+
259
+
260
+ ### Features
261
+
262
+ - [[`6195f7cb`](http://git.woa.com/standards/javascript/commit/6195f7cb)] **-** **rules**: add ts-legacy.js (xcatliu)
263
+
264
+
265
+
266
+
267
+ ## [2020-06-03, Version v0.5.1](http://git.woa.com/standards/javascript/-/tags/v0.5.1)
268
+
269
+
270
+ ### Bug fixes
271
+
272
+ - [[`fb939f4f`](http://git.woa.com/standards/javascript/commit/fb939f4f)] **-** **rules**: make brace-style be error #70 (xqkuang(旷旭卿)) [#70](https://git.woa.com/standards/javascript/issues/70)
273
+
274
+
275
+
276
+
277
+ ## [2020-05-21, Version v0.5.0](http://git.woa.com/standards/javascript/-/tags/v0.5.0)
278
+
279
+
280
+
281
+ ### Features
282
+
283
+ - [[`ee63d704`](http://git.woa.com/standards/javascript/commit/ee63d704)] **-** **linebreaks-style**: added rule for unix linebreaks #36 (xqkuang(旷旭卿)) [#36](https://git.woa.com/standards/javascript/issues/36)
284
+
285
+
286
+
287
+
288
+ ## [2020-05-09, Version v0.4.1](http://git.woa.com/standards/javascript/-/tags/v0.4.1)
289
+
290
+
291
+ ### Bug fixes
292
+
293
+ - [[`a11d0b3a`](http://git.woa.com/standards/javascript/commit/a11d0b3a)] **-** 纠正文件名与组件文件名的规范要求 (kylehrzhang)
294
+
295
+
296
+
297
+
298
+ ## [2020-05-06, Version v0.4.0](http://git.woa.com/standards/javascript/-/tags/v0.4.0)
299
+
300
+
301
+
302
+ ### Features
303
+
304
+ - [[`a2220be9`](http://git.woa.com/standards/javascript/commit/a2220be9)] **-** **ts**: 添加 ts 的配置 (xcatliu)
305
+
306
+
307
+
308
+
309
+ ## [2020-04-28, Version v0.3.8](http://git.woa.com/standards/javascript/-/tags/v0.3.8)
310
+
311
+
312
+ ### Bug fixes
313
+
314
+ - [[`3d620e51`](http://git.woa.com/standards/javascript/commit/3d620e51)] **-** recorrect 'has' usage (merge request !61) (crystalmeng)
315
+
316
+
317
+
318
+
319
+ ## [2020-04-27, Version v0.3.7](http://git.woa.com/standards/javascript/-/tags/v0.3.7)
320
+
321
+
322
+ ### Bug fixes
323
+
324
+ - [[`02995407`](http://git.woa.com/standards/javascript/commit/02995407)] **-** **dockerfile**: Dockerfile 中增加 npm prune 以防止自身的 typescript 模块影响 ts 判断 (mapleeit)
325
+
326
+
327
+
328
+
329
+ ## [2020-04-07, Version v0.3.6](http://git.woa.com/standards/javascript/-/tags/v0.3.6)
330
+
331
+
332
+ ### Bug fixes
333
+
334
+ - [[`85ef0ae7`](http://git.woa.com/standards/javascript/commit/85ef0ae7)] **-** **rules**: 修复非 Typescript 项目使用腾讯代码规范的问题 (xqkuang(旷旭卿))
335
+ - [[`61cada36`](http://git.woa.com/standards/javascript/commit/61cada36)] **-** 应将 function 和 callback 翻译成`函数`而不是`方法` (cheeqi)
336
+
337
+
338
+
339
+
340
+ ## [2020-03-26, Version v0.3.5](http://git.woa.com/standards/javascript/-/tags/v0.3.5)
341
+
342
+
343
+ ### Bug fixes
344
+
345
+ - [[`fd39b3c5`](http://git.woa.com/standards/javascript/commit/fd39b3c5)] **-** **semi**: 26.1 semi的例子和7.12 no-param-reassign的bad例子冲突(#34) (cattyhuang) [#34](https://git.woa.com/standards/javascript/issues/34)
346
+
347
+
348
+
349
+
350
+ ## [2020-03-25, Version v0.3.4](http://git.woa.com/standards/javascript/-/tags/v0.3.4)
351
+
352
+
353
+ ### Bug fixes
354
+
355
+ - [[`258d0fdc`](http://git.woa.com/standards/javascript/commit/258d0fdc)] **-** **max-len**: fill more examples for max-len rule (xqkuang(旷旭卿))
356
+ - [[`a980c4c5`](http://git.woa.com/standards/javascript/commit/a980c4c5)] **-** **rules**: max-len规则对于长(模板)字符串需要手动配置忽略(#35) (cattyhuang) [#35](https://git.woa.com/standards/javascript/issues/35)
357
+
358
+
359
+
360
+
361
+ ## [2020-03-13, Version v0.3.3](http://git.woa.com/standards/javascript/-/tags/v0.3.3)
362
+
363
+
364
+ ### Bug fixes
365
+
366
+ - [[`072ffabc`](http://git.woa.com/standards/javascript/commit/072ffabc)] **-** 19.18示例格式不正确的问题(违反3.6) (xsbchen)
367
+
368
+
369
+
370
+
371
+ ## [2020-03-13, Version v0.3.2](http://git.woa.com/standards/javascript/-/tags/v0.3.2)
372
+
373
+
374
+ ### Bug fixes
375
+
376
+ - [[`fb54abd5`](http://git.woa.com/standards/javascript/commit/fb54abd5)] **-** 文档[24.1]的例子是不是有语法问题,已删除错误示例代码 (wadezhan) [#21](https://git.woa.com/standards/javascript/issues/21)
377
+
378
+
379
+
380
+
381
+ ## [2020-03-13, Version v0.3.1](http://git.woa.com/standards/javascript/-/tags/v0.3.1)
382
+
383
+
384
+ ### Bug fixes
385
+
386
+ - [[`33b71f05`](http://git.woa.com/standards/javascript/commit/33b71f05)] **-** **rules**: #22 - make no-plus-plus prompt error exclude in for loop (xqkuang(旷旭卿)) [#22](https://git.woa.com/standards/javascript/issues/22)
387
+
388
+
389
+
390
+
391
+ ## [2020-03-09, Version v0.3.0](http://git.woa.com/standards/javascript/-/tags/v0.3.0)
392
+
393
+
394
+
395
+ ### Features
396
+
397
+ - [[`d0c048fc`](http://git.woa.com/standards/javascript/commit/d0c048fc)] **-** add indent rule (xcatliu)
398
+
399
+
400
+
401
+
402
+ ## [2020-03-05, Version v0.2.7](http://git.woa.com/standards/javascript/-/tags/v0.2.7)
403
+
404
+
405
+ ### Bug fixes
406
+
407
+ - [[`d98b4758`](http://git.woa.com/standards/javascript/commit/d98b4758)] **-** **base**: babel-eslint dependency (xqkuang(旷旭卿))
408
+
409
+
410
+
411
+
412
+ ## [2020-02-18, Version v0.2.6](http://git.woa.com/standards/javascript/-/tags/v0.2.6)
413
+
414
+
415
+ ### Bug fixes
416
+
417
+ - [[`f4c44882`](http://git.woa.com/standards/javascript/commit/f4c44882)] **-** 因为实际应用问题, 取消 id-length 校验 (kelvinsun)
418
+
419
+
420
+
421
+
422
+ ## [2020-02-18, Version v0.2.5](http://git.woa.com/standards/javascript/-/tags/v0.2.5)
423
+
424
+
425
+ ### Bug fixes
426
+
427
+ - [[`e7690ca3`](http://git.woa.com/standards/javascript/commit/e7690ca3)] **-** 语法错误 (kelvinsun)
428
+ - [[`a6753800`](http://git.woa.com/standards/javascript/commit/a6753800)] **-** 新引入文件不通过 lint 的问题 (kelvinsun)
429
+
430
+
431
+
432
+
433
+ ## [2020-02-18, Version v0.2.4](http://git.woa.com/standards/javascript/-/tags/v0.2.4)
434
+
435
+
436
+ ### Bug fixes
437
+
438
+ - [[`3fd97805`](http://git.woa.com/standards/javascript/commit/3fd97805)] **-** autotag 发布法修复 (kelvinsun)
439
+
440
+
441
+
442
+
443
+ ## [2020-02-18, Version v0.2.3](http://git.woa.com/standards/javascript/-/tags/v0.2.3)
444
+
445
+
446
+ ### Bug fixes
447
+
448
+ - [[`01fd0e51`](http://git.woa.com/standards/javascript/commit/01fd0e51)] **-** version problem (kelvinsun)
449
+
450
+
451
+
452
+
453
+ ## [2020-02-11, Version v0.2.2](http://git.woa.com/standards/javascript/-/tags/v0.2.2)
454
+
455
+
456
+ ### Bug fixes
457
+
458
+ - [[`80f0888e`](http://git.woa.com/standards/javascript/commit/80f0888e)] **-** **rule**: fix #12 (lemanzhang) [#12](https://git.woa.com/standards/javascript/issues/12)
459
+
460
+
461
+
462
+
463
+ ## [2020-01-20, Version v0.2.1](http://git.woa.com/standards/javascript/-/tags/v0.2.1)
464
+
465
+
466
+ ### Bug fixes
467
+
468
+ - [[`65d9d035`](http://git.woa.com/standards/javascript/commit/65d9d035)] **-** format readme (vicyao)
469
+
470
+
471
+
472
+
473
+ ## [2020-01-17, Version v0.2.0](http://git.woa.com/standards/javascript/-/tags/v0.2.0)
474
+
475
+
476
+
477
+ ### Features
478
+
479
+ - [[`88ff16ba`](http://git.woa.com/standards/javascript/commit/88ff16ba)] **-** no-unused-vars 的 args 规则改为 after-used (bobbli)
480
+
481
+
482
+
483
+
484
+ ## [2020-01-10, Version v0.1.11](http://git.woa.com/standards/javascript/-/tags/v0.1.11)
485
+
486
+
487
+ ### Bug fixes
488
+
489
+ - [[`3ab3d602`](http://git.woa.com/standards/javascript/commit/3ab3d602)] **-** **rule**: 根据README补齐no-undef规则 (lemanzhang)
490
+
491
+
492
+
493
+
494
+ ## [2020-01-09, Version v0.1.10](http://git.woa.com/standards/javascript/-/tags/v0.1.10)
495
+
496
+
497
+ ### Bug fixes
498
+
499
+ - [[`f5910949`](http://git.woa.com/standards/javascript/commit/f5910949)] **-** 调整项目构建方式改为在ci中构建 (lemanzhang)
500
+
501
+
502
+
503
+
504
+ ## [2020-01-09, Version v0.1.9](http://git.woa.com/standards/javascript/-/tags/v0.1.9)
505
+
506
+
507
+ ### Bug fixes
508
+
509
+ - [[`dd62c31a`](http://git.woa.com/standards/javascript/commit/dd62c31a)] **-** 补一个遗漏的需要修改为warn规则prefer-destructuring (lemanzhang)
510
+
511
+
512
+
513
+
514
+ ## [2020-01-09, Version v0.1.8](http://git.woa.com/standards/javascript/-/tags/v0.1.8)
515
+
516
+
517
+ ### Bug fixes
518
+
519
+ - [[`16ead381`](http://git.woa.com/standards/javascript/commit/16ead381)] **-** 根据README的描述,将部分规则从error级别调整为warn (merge request !15) (lemanzhang)
520
+
521
+
522
+
523
+
524
+ ## [2020-01-08, Version v0.1.7](http://git.woa.com/standards/javascript/-/tags/v0.1.7)
525
+
526
+
527
+ ### Bug fixes
528
+
529
+ - [[`dd0f42b1`](http://git.woa.com/standards/javascript/commit/dd0f42b1)] **-** 修复部分规则与README描述不一致的问题 (merge request !13) (lemanzhang)
530
+
531
+
532
+
533
+
534
+ ## [2020-01-07, Version v0.1.5](http://git.woa.com/standards/javascript/-/tags/v0.1.5)
535
+
536
+
537
+ ### Bug fixes
538
+
539
+ - [[`3da5c2fb`](http://git.woa.com/standards/javascript/commit/3da5c2fb)] **-** 目前并不支持 vue 文件, 需要再添加其他插件 (kelvinsun)
540
+
541
+
542
+
543
+
544
+ ## [2020-01-07, Version v0.1.4](http://git.woa.com/standards/javascript/-/tags/v0.1.4)
545
+
546
+
547
+
548
+ ### Features
549
+
550
+ - [[`406488e0`](http://git.woa.com/standards/javascript/commit/406488e0)] **-** 增加 ci 专用 docker 镜像 (merge request !8) (kelvinsun)
551
+
552
+
553
+
554
+
555
+ ## [2020-01-07, Version v0.1.2](http://git.woa.com/standards/javascript/-/tags/v0.1.2)
556
+
557
+
558
+
559
+ ### Features
560
+
561
+ - [[`05fc410a`](http://git.woa.com/standards/javascript/commit/05fc410a)] **-** 增加供 ci 使用的 docker 镜像 (kelvinsun)
562
+
563
+ ### Bug fixes
564
+
565
+ - [[`0150b512`](http://git.woa.com/standards/javascript/commit/0150b512)] **-** eslint-plugin-import 的依赖应该是 dependencies 而不是 devDependencies, 这样会导致引用方报错 (kelvinsun)
566
+ - [[`936f68db`](http://git.woa.com/standards/javascript/commit/936f68db)] **-** 遗漏修复 prettier.config -> .prettierrc (wadezhan)
567
+ - [[`476350ba`](http://git.woa.com/standards/javascript/commit/476350ba)] **-** window 环境下 ts-node 创建编译器示例,默认会从项目根目录读取项目根目录,导致 const ts = require("{cwd}/typescript.js"); typescript.js 规则配置变更为 ts.js (wadezhan)
568
+
569
+
570
+
571
+
@@ -0,0 +1,31 @@
1
+ # ESLint Tencent
2
+
3
+ ## Build
4
+
5
+ ```shell script
6
+ docker build --network host -t csighub.tencentyun.com/standards/eslint-config-tencent:latest .
7
+ ```
8
+
9
+ ## Run
10
+
11
+ ```shell script
12
+ docker run -i -t --rm --network=host -v $(pwd):$(pwd) -w $(pwd) csighub.tencentyun.com/standards/eslint-config-tencent:latest
13
+ ```
14
+
15
+ ## Publish
16
+
17
+ 1. 将所有提交通过 mr 形式合入主干
18
+
19
+ 1. 更新本地主干
20
+
21
+ ```shell script
22
+ git pull origin master
23
+ ```
24
+
25
+ 1. 本地运行 autotag 命令生成新的 git tag 并自动 push 到服务端
26
+
27
+ ```shell script
28
+ tnpm run autotag
29
+ ```
30
+
31
+ 1. orange-ci 的 tag_push 钩子自动进行 tnpm 包的构造与发布
package/LICENSE CHANGED
@@ -1,2 +1,13 @@
1
- Copyright (C) 2017-2019 THL A29 Limited, a Tencent company.
2
- All rights reserved.
1
+ The Tencent JavaScript Style Guide is built on and with the aid of the following open source projects. Credits are given to these projects.
2
+
3
+ Open Source Software Licensed under the MIT License:
4
+ Please note the below software may have been modified by THL A29 Limited ("Tencent Modifications"). All Tencent Modifications are Copyright (C) 2020 THL A29 Limited.
5
+
6
+ JavaScript Style Guide
7
+ Copyright (c) 2012 Airbnb
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/NOTICE ADDED
@@ -0,0 +1,39 @@
1
+ This Javascript coding guideline ("Coding Standards") is built on and with the
2
+ aid of the following open source guidelines. Credits are given to these guidelines.
3
+
4
+ Open Source Coding Guideline(s) Licensed under the MIT License:
5
+ --------------------------------------------------------------------
6
+ 1. airbnb javascript
7
+ Copyright (c) 2012 Airbnb
8
+ Original text of this Open Source Coding Guideline(s) can be obtained from:https://github.com/airbnb/javascript#table-of-contents
9
+ --------------------------------------------------------------------
10
+
11
+ This Typescript coding guideline ("Coding Standards") is built on and with the
12
+ aid of the following open source guidelines. Credits are given to these guidelines.
13
+
14
+
15
+ Open Source Coding Guideline Licensed under the MIT License:
16
+ --------------------------------------------------------------------
17
+ 1. typescript-eslint
18
+ Copyright (c) 2019 typescript-eslint and other contributors
19
+
20
+
21
+ Terms of the MIT License:
22
+ --------------------------------------------------------------------
23
+ Permission is hereby granted, free of charge, to any person obtaining a copy
24
+ of this software and associated documentation files (the "Software"), to deal
25
+ in the Software without restriction, including without limitation the rights
26
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
27
+ copies of the Software, and to permit persons to whom the Software is
28
+ furnished to do so, subject to the following conditions:
29
+
30
+ The above copyright notice and this permission notice shall be included in all
31
+ copies or substantial portions of the Software.
32
+
33
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
34
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
35
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
36
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
37
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
38
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
39
+ SOFTWARE.