dangreenisrael / eslint-plugin-jest-formatting

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

Refactor base rule with better typing and organization #70

Closed benkimpel closed 5 years ago

benkimpel commented 5 years ago
benkimpel commented 5 years ago

I wanted to get this file cleaned up before I opened a few additional PRs/changes...

benkimpel commented 5 years ago

I think the only controversial thing in this PR would be the change in tsconfig.json. @dangreenisrael let me know how you feel about that one.

Also, give the padding.ts file a read from start to finish (outside of the diff... the diff is a mess). I hope it reads easier with the changes I've made. My goal was to make things a little more clear.

benkimpel commented 5 years ago

@dangreenisrael I think I'm going to close this PR and bundle these items into one PR with the following commits...

  1. This refactor
  2. padding-around-all rule and missing x/f jest functions
  3. Remove the filename checks in the rule and add overrides.files to our configs and documentation
  4. Rename src/rules/padding.ts to src/padding.ts

That can save us a few code review cycles. Lemme know if you disagree and we can reopen this PR as a standalone.