UNPKG

17 kBMarkdownView Raw
1## 9.0.0 (May 26, 2021)
2
3### Breaking Changes
4
5* Drop support for node v10 ([#285](https://github.com/lo1tuma/eslint-plugin-mocha/pull/285))
6
7### Bug Fixes
8
9* Fix false positive in no-setup-in-describe ([#293](https://github.com/lo1tuma/eslint-plugin-mocha/pull/293))
10
11### Features
12
13* Add "all" config preset which enables all rules ([#281](https://github.com/lo1tuma/eslint-plugin-mocha/pull/281))
14
15### Enhancements
16
17* Improve no-skipped performance ([#292](https://github.com/lo1tuma/eslint-plugin-mocha/pull/292))
18* Improve no-hooks-for-single-case performance ([#291](https://github.com/lo1tuma/eslint-plugin-mocha/pull/291))
19* Improve no-nested-tests performance ([#290](https://github.com/lo1tuma/eslint-plugin-mocha/pull/290))
20* Improve performance of no-identical-title ([#289](https://github.com/lo1tuma/eslint-plugin-mocha/pull/289))
21* Improve no-setup-in-describe performance ([#287](https://github.com/lo1tuma/eslint-plugin-mocha/pull/287))
22* Improve no-mocha-arrows performance ([#288](https://github.com/lo1tuma/eslint-plugin-mocha/pull/288))
23* Improve performance of no-exports rule ([#286](https://github.com/lo1tuma/eslint-plugin-mocha/pull/286))
24* Enable all rules during runtime benchmark ([#282](https://github.com/lo1tuma/eslint-plugin-mocha/pull/282))
25
26### Dependency Upgrades
27
28* Update dependencies ([#284](https://github.com/lo1tuma/eslint-plugin-mocha/pull/284))
29
30### Build-Related
31
32* Add node v16 to CI environments ([#283](https://github.com/lo1tuma/eslint-plugin-mocha/pull/283))
33
34## 8.2.0 (May 25, 2021)
35
36### Enhancements
37
38* Memoize names (increases speed by 10x) ([#280](https://github.com/lo1tuma/eslint-plugin-mocha/pull/280))
39
40### Code Refactoring
41
42* - Avoid passing superfluous argument ([#278](https://github.com/lo1tuma/eslint-plugin-mocha/pull/278))
43
44## 8.1.0 (March 5, 2021)
45
46### Bug Fixes
47
48* Fix prefer-arrow-callback to not fail when using import.meta ([#266](https://github.com/lo1tuma/eslint-plugin-mocha/pull/266))
49
50### Enhancements
51
52* Speed up no-exclusive-tests and no-pending-tests ([#276](https://github.com/lo1tuma/eslint-plugin-mocha/pull/276))
53* set env.mocha on recommended config ([#273](https://github.com/lo1tuma/eslint-plugin-mocha/pull/273))
54* Add benchmarks for runtime with many files ([#269](https://github.com/lo1tuma/eslint-plugin-mocha/pull/269))
55
56### Documentation
57
58* Remove stray linebreak at top of file ([#272](https://github.com/lo1tuma/eslint-plugin-mocha/pull/272))
59* Add recommended tick to `no-exports` ([#271](https://github.com/lo1tuma/eslint-plugin-mocha/pull/271))
60
61### Build-Related
62
63* Improve benchmark test reliability ([#277](https://github.com/lo1tuma/eslint-plugin-mocha/pull/277))
64
65## 8.0.0 (August 6, 2020)
66
67### Breaking Changes
68
69* Consistently use shared settings in all rules ([#262](https://github.com/lo1tuma/eslint-plugin-mocha/pull/262))
70* remove autofix from no-skipped-tests rule fix ([#258](https://github.com/lo1tuma/eslint-plugin-mocha/pull/258))
71
72### Features
73
74* New rule no-exports ([#263](https://github.com/lo1tuma/eslint-plugin-mocha/pull/263))
75
76### Enhancements
77
78* New option `ignoreSkipped` for `handle-done-callback` rule ([#260](https://github.com/lo1tuma/eslint-plugin-mocha/pull/260))
79
80### Documentation
81
82* Add meta.docs.description to all rules ([#257](https://github.com/lo1tuma/eslint-plugin-mocha/pull/257))
83
84### Dependency Upgrades
85
86* Update dependencies ([#259](https://github.com/lo1tuma/eslint-plugin-mocha/pull/259))
87
88### Code Refactoring
89
90* Use includes instead of indexOf ([#261](https://github.com/lo1tuma/eslint-plugin-mocha/pull/261))
91
92## 7.0.1 (May 30, 2020)
93
94### Bug Fixes
95
96* Fix no-setup-in-describe to not flag describe.skip() ([#256](https://github.com/lo1tuma/eslint-plugin-mocha/pull/256))
97* Fix max-top-level-suites to work with ES modules ([#255](https://github.com/lo1tuma/eslint-plugin-mocha/pull/255))
98* Support comments in arrow functions when fixing ([#253](https://github.com/lo1tuma/eslint-plugin-mocha/pull/253))
99
100## 7.0.0 (May 13, 2020)
101
102### Breaking Changes
103
104* Drop support for ESLint < v7 and Node.js < v10 ([#247](https://github.com/lo1tuma/eslint-plugin-mocha/pull/247))
105
106### Enhancements
107
108* Add `meta.type` and missing `fixable: 'code'` ([#245](https://github.com/lo1tuma/eslint-plugin-mocha/pull/245))
109
110### Dependency Upgrades
111
112* Updates of devDependencies ([#246](https://github.com/lo1tuma/eslint-plugin-mocha/pull/246))
113
114## 6.3.0 (February 19, 2020)
115
116### Bug Fixes
117
118* no-hooks-for-single-case: fix false postive in nested suites ([#238](https://github.com/lo1tuma/eslint-plugin-mocha/pull/238))
119* Fix max-top-level-suites to ignore generated suites ([#239](https://github.com/lo1tuma/eslint-plugin-mocha/pull/239))
120* Check static template strings in valid-test-description and valid-suite-description ([#237](https://github.com/lo1tuma/eslint-plugin-mocha/pull/237))
121
122### Enhancements
123
124* no-hooks: add option to allow certain kind of hooks ([#236](https://github.com/lo1tuma/eslint-plugin-mocha/pull/236))
125* Add schemas for options (and remove for files which are using settings) ([#234](https://github.com/lo1tuma/eslint-plugin-mocha/pull/234))
126* Add `u` flag in RegExp for `valid-test-description` and `valid-suite-description` ([#232](https://github.com/lo1tuma/eslint-plugin-mocha/pull/232))
127* Add `fixable` property to fixable rules (and mention in docs) ([#228](https://github.com/lo1tuma/eslint-plugin-mocha/pull/228))
128* add plugin to recommended config ([#226](https://github.com/lo1tuma/eslint-plugin-mocha/pull/226))
129
130### Documentation
131
132* Indicate whether rule is recommended ([#229](https://github.com/lo1tuma/eslint-plugin-mocha/pull/229))
133* "Options" heading in doc files (and consistent level 2 heading) ([#233](https://github.com/lo1tuma/eslint-plugin-mocha/pull/233))
134* Doc syntax issue ([#231](https://github.com/lo1tuma/eslint-plugin-mocha/pull/231))
135
136### Code Refactoring
137
138* Nondeprecated rule format ([#235](https://github.com/lo1tuma/eslint-plugin-mocha/pull/235))
139* Alphabetize rule lists ([#227](https://github.com/lo1tuma/eslint-plugin-mocha/pull/227))
140
141### Build-Related
142
143* - npm: Add package-lock.json ([#230](https://github.com/lo1tuma/eslint-plugin-mocha/pull/230))
144* ✉️ Send a webhook to Coveralls when the build completes ([#222](https://github.com/lo1tuma/eslint-plugin-mocha/pull/222))
145
146## 6.2.2 (November 22, 2019)
147
148### Bug Fixes
149
150* Support TDD interface in no-setup-in-describe ([#220](https://github.com/lo1tuma/eslint-plugin-mocha/pull/220))
151
152### Build-Related
153
154* 🚀 Use GitHub Actions instead of Travis ([#221](https://github.com/lo1tuma/eslint-plugin-mocha/pull/221))
155
156## 6.2.1 (October 28, 2019)
157
158### Bug Fixes
159
160* Fix no-setup-in-describe to allow mocha config calls ([#215](https://github.com/lo1tuma/eslint-plugin-mocha/pull/215))
161* Relax no-synchronous-tests to allow non literals from concise arrows ([#216](https://github.com/lo1tuma/eslint-plugin-mocha/pull/216))
162
163### Documentation
164
165* Minor documentation tweaks ([#217](https://github.com/lo1tuma/eslint-plugin-mocha/pull/217))
166
167### Dependency Upgrades
168
169* Update devDependencies ([#218](https://github.com/lo1tuma/eslint-plugin-mocha/pull/218))
170
171## 6.2.0 (October 14, 2019)
172
173### Enhancements
174
175* Startup Performance Optimization ([#214](https://github.com/lo1tuma/eslint-plugin-mocha/pull/214))
176
177## 6.1.1 (September 11, 2019)
178
179### Bug Fixes
180
181* Fix no-setup-in-describe to allow Mocha suite config ([#209](https://github.com/lo1tuma/eslint-plugin-mocha/pull/209))
182
183## 6.1.0 (August 22, 2019)
184
185### Enhancements
186
187* Add custom message for valid-suite-description ([#207](https://github.com/lo1tuma/eslint-plugin-mocha/pull/207))
188* Add custom message for valid-test-description rule ([#206](https://github.com/lo1tuma/eslint-plugin-mocha/pull/206))
189
190## 6.0.0 (July 17, 2019)
191
192### Breaking Changes
193
194* Revamped recommended ruleset ([#200](https://github.com/lo1tuma/eslint-plugin-mocha/pull/200))
195* Drop nodejs 6 support ([#197](https://github.com/lo1tuma/eslint-plugin-mocha/pull/197))
196
197### Bug Fixes
198
199* Fix no-setup-in-describe to correctly detect describe calls ([#196](https://github.com/lo1tuma/eslint-plugin-mocha/pull/196))
200* Fix no-setup-in-describe to work with arrow functions ([#195](https://github.com/lo1tuma/eslint-plugin-mocha/pull/195))
201
202### Features
203
204* Implement no-return-from-async rule ([#190](https://github.com/lo1tuma/eslint-plugin-mocha/pull/190))
205
206### Dependency Upgrades
207
208* Update dev dependencies ([#199](https://github.com/lo1tuma/eslint-plugin-mocha/pull/199))
209
210### Build-Related
211
212* Add nodejs to travis build environments ([#198](https://github.com/lo1tuma/eslint-plugin-mocha/pull/198))
213
214## 5.3.0 (February 13, 2019)
215
216### Features
217
218* Implement no-async-describe rule ([#188](https://github.com/lo1tuma/eslint-plugin-mocha/pull/188))
219
220## 5.2.1 (January 8, 2019)
221
222### Bug Fixes
223
224* Remove invalid test-cases and unreachable code from prefer-arrow-callback ([#186](https://github.com/lo1tuma/eslint-plugin-mocha/pull/186))
225* Fix invalid syntax in test case ([#182](https://github.com/lo1tuma/eslint-plugin-mocha/pull/182))
226
227### Documentation
228
229* Fixing typo ([#184](https://github.com/lo1tuma/eslint-plugin-mocha/pull/184))
230* Replace `warning` with `warn` ([#181](https://github.com/lo1tuma/eslint-plugin-mocha/pull/181))
231
232### Dependency Upgrades
233
234* Update dependencies ([#187](https://github.com/lo1tuma/eslint-plugin-mocha/pull/187))
235* Update eslint-plugin-node to the latest version 🚀 ([#173](https://github.com/lo1tuma/eslint-plugin-mocha/pull/173))
236
237## 5.2.0 (August 13, 2018)
238
239### Enhancements
240
241* Prohibit tests in beforeEach etc. hook calls ([#174](https://github.com/lo1tuma/eslint-plugin-mocha/pull/174))
242
243## 5.1.0 (July 6, 2018)
244
245### Bug Fixes
246
247* Issue #166: No setup in describe hooks ([#167](https://github.com/lo1tuma/eslint-plugin-mocha/pull/167))
248
249### Features
250
251* Adds mocha-aware prefer-arrow-callback rule ([#163](https://github.com/lo1tuma/eslint-plugin-mocha/pull/163))
252
253### Dependency Upgrades
254
255* Update eslint-config-holidaycheck to version 0.13.1 ([#170](https://github.com/lo1tuma/eslint-plugin-mocha/pull/170))
256* Update eslint to version 5.0.1 ([#169](https://github.com/lo1tuma/eslint-plugin-mocha/pull/169))
257* Update nyc to version 12.0.2 ([#168](https://github.com/lo1tuma/eslint-plugin-mocha/pull/168))
258
259### Build-Related
260
261* Add node 10 build environment ([#171](https://github.com/lo1tuma/eslint-plugin-mocha/pull/171))
262
263## 5.0.0 (March 24, 2018)
264
265### Breaking Changes
266
267* Remove support for ESLint versions < 4.0.0 ([#155](https://github.com/lo1tuma/eslint-plugin-mocha/pull/155))
268* Remove support for nodejs 4, 5 and 7 ([#154](https://github.com/lo1tuma/eslint-plugin-mocha/pull/154))
269
270### Dependency Upgrades
271
272* Update pr-log to the latest version 🚀 ([#159](https://github.com/lo1tuma/eslint-plugin-mocha/pull/159))
273* Update chai to version 4.1.2 ([#151](https://github.com/lo1tuma/eslint-plugin-mocha/pull/151))
274
275### Code Refactoring
276
277* Use new language features ([#156](https://github.com/lo1tuma/eslint-plugin-mocha/pull/156))
278
279### Build-Related
280
281* Use nyc instead of istanbul ([#153](https://github.com/lo1tuma/eslint-plugin-mocha/pull/153))
282* Whitelist files instead of using .npmignore ([#152](https://github.com/lo1tuma/eslint-plugin-mocha/pull/152))
283
284## 4.12.1 (March 3, 2018)
285
286### Bug Fixes
287
288* Fix: skip template strings in valid-test-description and valid-suite-description
289
290## 4.12.0 (March 2, 2018)
291
292### Features
293
294* Adds rule "no setup in describe" (#147)
295
296### Dependency Upgrades
297
298* Update coveralls to the latest version 🚀 (#142)
299* chore(package): update mocha to version 5.0.1 (#150)
300* Update ramda to the latest version 🚀 (#144)
301
302### Bug Fixes
303
304* Fix complexity problems (#149)
305
306## 4.11.0 (June 19, 2017)
307
308### Enhancements
309
310* Added support for async functions in no-synchronous-tests (#138)
311
312## 4.10.1 (June 12, 2017)
313
314### Bug Fixes
315
316* don't drop support for eslint 3.x (#137)
317
318## 4.10.0 (June 12, 2017)
319
320### Build-Related
321
322* Add node 8 to build environments (#135)
323
324### Enhancements
325
326* Support ESLint 4.x (#134)
327
328### Dependency Upgrades
329
330* Update ramda to the latest version 🚀 (#130)
331* Update pr-log to version 2.0.0 🚀 (#127)
332
333## 4.9.0 (March 17, 2017)
334
335### Dependency Upgrades
336
337* Update ramda to version 0.23.0 🚀 (#121)
338
339### Enhancements
340
341* Add settings to support additional suite function names (#126)
342
343### Documentation
344
345* Organize alphabetically (#123)
346
347## 4.8.0 (December 23, 2016)
348
349### Enhancements
350
351* Support MemberExpression for additionalTestFunctions (#114)
352* Make no-mocha-arrows rule fixable (#112)
353
354### Bug Fixes
355
356* Fix no-mocha-arrow fixer (#118)
357
358### Build-Related
359
360* Add node 7 as travis build environment (#115)
361
362### Documentation
363
364* Fix rule name in CHANGELOG to match actual rule (#111)
365
366## 4.7.0 (October 12, 2016)
367
368### Features
369
370* Add no-nested-tests rule (#109)
371
372## 4.6.0 (October 3, 2016)
373
374### Documentation
375
376* Adds rule name to title for `valid-suite-description` documentation. (#107)
377* Adds rule name to title for `valid-test-description` documentation. (#106)
378
379### Features
380
381* Add 'max-top-level-suites' rule (#103) (#105)
382
383## 4.5.1 (August 30, 2016)
384
385### Bug Fixes
386
387* Fix crash in no-identical-title (fixes #98) (#99)
388
389## 4.5.0 (August 29, 2016)
390
391### Features
392
393* Add `no-identical-title` rule (fixes #33) (#97)
394
395## 4.4.0 (August 24, 2016)
396
397### Features
398
399* Add `no-hooks-for-single-case` rule (fixes #44) (#95)
400* Add rule `no-return-and-callback` (fixes #88) (#94)
401* Add `no-top-level-hooks` rule (fixes #37) (#87)
402
403### Documentation
404
405* Fix title in `no-sibling-hooks` documentation file (#92)
406
407### Dependency Upgrades
408
409* Update ramda to version 0.22.1 🚀 (#93)
410
411### Build-Related
412
413* Add editorconfig file (#91)
414
415## 4.3.0 (August 1, 2016)
416
417### Dependency Upgrades
418
419* Update mocha to version 3.0.0 🚀 (#86)
420
421### Features
422
423* Add rule `no-sibling-hooks` (fixes #82) (#85)
424* Add rule `no-hooks` (fixes #39) (#84)
425
426## 4.2.0 (July 26, 2016)
427
428### Features
429
430* Allow custom test functions (#81)
431
432## 4.1.0 (July 22, 2016)
433
434### Features
435
436* no-mocha-arrows: New rule (#78)
437
438## 4.0.0 (July 4, 2016)
439
440### Features
441
442* feat(rules): add 'valid-suite-description' rule (#74)
443* feat(rules): add 'valid-test-description' rule (#68)
444
445### Enhancements
446
447* Add recommended config (#72)
448
449### Dependency Upgrades
450
451* Update eslint to version 3.0.0 🚀 (#70)
452
453### Breaking Changes
454
455* Drop support old node versions (#71)
456
457### Documentation
458
459* Remove fixable from no-exclusive on README (#73)
460* [README] Use a more explicit config (#65)
461* update to docs to match removed autofix (#64)
462
463## 3.0.0 (June 2, 2016)
464
465### Breaking Changes
466
467* Remove autofix on no-exclusive-tests rule. (#63)
468
469## 2.2.0 (April 14, 2016)
470
471### Features
472
473* Add rule no-pending-tests (#59)
474
475## 2.1.0 (April 11, 2016)
476
477### Bug Fixes
478
479* Support specify alias (#58)
480
481### Dependency Upgrades
482
483* Update ramda to version 0.21.0 🚀 (#56)
484* Update ramda to version 0.20.0 🚀 (#53)
485
486### Features
487
488* Add rule no-skipped-tests (#55)
489
490## 2.0.0 (February 13, 2016)
491
492### Breaking Changes
493
494* Update to eslint 2.0.0 (#49)
495
496## 1.1.0 (November 13, 2015)
497
498### Features
499
500* Implement new rule no-global-tests (#46)
501
502### Enhancements
503
504* Replace lodash with ramda (#45)
505
506## 1.0.0 (September 17, 2015)
507
508### Enhancements
509
510* Implement autofix for no-exclusive-tests (#34)
511* Improve detection if done callback is handled (#23)
512* Add integration tests (#30)
513* Instrumment all sources for coverage (#29)
514
515### Build-Related
516
517* Add node 4 to travis-ci build (#42)
518
519### Dependency Upgrades
520
521* Update devDependencies (#43)
522* Update eslint (#31)
523
524### Documentation
525
526* Add NPM Downloads badge (#41)
527* Badges in README.md should only show master status (#40)
528
529## 0.5.1 (August 20, 2015)
530
531### Bug Fixes
532
533* add new rule to index.js and change tests to keep that from happening (#28)
534
535## 0.5.0 (August 19, 2015)
536
537### Features
538
539* Add no-synchronous-tests rule (#26)
540
541### Dependency Upgrades
542
543* ESLint 1.x compatibility (#25)
544* Update dependencies (#22)
545
546
547## 0.4.0 (June 26, 2015)
548
549### Enhancements
550
551* add context.only to no-exclusive-tests rule (#21)
552
553
554## 0.3.0 (June 23, 2015)
555
556### Features
557
558* Add new rule handle-done-callback (#15)
559
560### Build-Related
561
562* Refactor package.json scripts (#17)
563* Disable sudo on travis-ci (#10)
564* Run travis build on node 0.12 and iojs (#11)
565* Ignore log files and .idea folder (#9)
566* Add changelog (#8)
567
568### Documentation
569
570* Fix links to mocha website (#16)
571* Add install documentation to README (#14)
572
573### Dependency Upgrades
574
575* Update dependencies (#18)
576* Update pr-log (#13)
577* Update eslint (#12)
578* Update dev dependencies (#7)
579
580
581## 0.2.2 (October 25, 2014)
582
583### Bug Fixes
584
585* Allow all ESLint versions >= 0.8.0
586
587## 0.2.1 (October 18, 2014)
588
589### Build-Related
590
591* Add recommended keywords to package.json
592
593## 0.2.0 (September 20, 2014)
594
595### Enhancements
596
597* Support mochas tdd interface (fixes #4)
598
599### Build-Related
600
601* Allow minor version updates for eslint
602
603### Documentation
604
605* Docs: remove unnecessary backtick
606
607### Dependency Upgrades
608
609* Update devDependencies.
610
611
612## 0.1.1 (September 6, 2014)
613
614### Build-Related
615
616* Add .npmignore
617
618## 0.1.0 (September 6, 2014)
619
620Initial release