You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a style rule to suggest adding a blank line between tests or blocks.
// INCORRECTbeforeAll(()=>{/* ... */})// missing space afterdescribe('function a',()=>{beforeEach(()=>{/* ... */})// missing space afterit('returns one',()=>{/* ... */})// missing space afterit('returns two',()=>{/* ... */})})// missing space afterdescribe('function b',()=>{it('returns three',()=>{/* ... */})// missing space afterit('returns four',()=>{/* ... */})})// CORRECTbeforeAll(()=>{/* ... */})// space afterdescribe('function c',()=>{beforeEach(()=>{/* ... */})// space afterit('returns five',()=>{/* ... */})// space afterit('returns six',()=>{/* ... */})})// space afterdescribe('function d',()=>{it('returns seven',()=>{/* ... */})// space afterit('returns eight',()=>{/* ... */})})
I suppose the opposite could be enforced - for people who don't want spaces between blocks. Optionally, could add rules for only tests, only describe/before/after blocks, etc.
The text was updated successfully, but these errors were encountered:
Add a style rule to suggest adding a blank line between tests or blocks.
I suppose the opposite could be enforced - for people who don't want spaces between blocks. Optionally, could add rules for only tests, only describe/before/after blocks, etc.
The text was updated successfully, but these errors were encountered: