dangreenisrael / eslint-plugin-jest-formatting

ESLint rules for formatting test suites written for jest.
MIT License
156 stars 13 forks source link

Add `padding-around-after-all-blocks` rule to supersede `padding-before-after-all-blocks` #53

Closed dangreenisrael closed 5 years ago

dangreenisrael commented 5 years ago

This adds a padding-around-after-all-blocks rule

const someText = 'abc';
afterAll(() => {
});
describe('someText', () => {});

becomes

const someText = 'abc';
// padding before
afterAll(() => {
});
// padding after
describe('someText', () => {});
benkimpel commented 5 years ago

Oops. Approved, but there are some merg conflicts.