Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: eslint should override env for **/tests/** subfolders #4447

Merged
merged 2 commits into from
Aug 21, 2019

Conversation

LinusBorg
Copy link
Member

@LinusBorg LinusBorg commented Aug 16, 2019

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Docs
  • Underlying tools
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

Other information:

The unit test packages support tests in /tests/unit and */__tests__/ folders, but eslint config for jest/mocha was only applied to the former

This PR adds overrides to the eslint config for files in the latter type of folder so eslint can successfully detect and lint jest/mocha globals

Sorry, something went wrong.

 for **/tests/** subfolders

close #4397

Verified

This commit was signed with the committer’s verified signature.
haoqunjiang Haoqun Jiang
@haoqunjiang haoqunjiang merged commit 58177d2 into dev Aug 21, 2019
@haoqunjiang haoqunjiang deleted the linusborg/feat/issue-4397 branch August 21, 2019 07:34
@haoqunjiang haoqunjiang changed the title fix(eslint): eslint should override env fix: eslint should override env for **/tests/** subfolders Aug 21, 2019
@haoqunjiang haoqunjiang changed the title fix: eslint should override env for **/tests/** subfolders fix: eslint should override env for **/tests/** subfolders Aug 21, 2019
haoqunjiang pushed a commit that referenced this pull request Aug 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants