-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use eslint-config-{jest-files,unicorn-camelcase}
- Loading branch information
Showing
2 changed files
with
13 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3d815b3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@timche will this work for the file glob specific overrides? Unless I'm reading this wrong I think this just adds
env: ["jest"]
to the rules for all files3d815b3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes: https://github.com/timche/eslint-config-jest-files/blob/master/index.js
3d815b3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see - then the name
eslint-config
is a little misleading since it's specific to xo right? Or does eslint actually have that feature?3d815b3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for asking such basic questions, I'm on the move rn, but I just got to check the eslint docs on it. I will publish the
eslint-config-typescript
- do you think I should keep theextensions
key in theflux-standard-action
package.json or in the eslint-config?3d815b3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint does have the
overrides
feature: https://eslint.org/docs/user-guide/configuring#configuration-based-on-glob-patternsIt's also tested here: https://github.com/timche/eslint-config-jest-files/blob/master/test.js
3d815b3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extensions
is axo
feature, so I'd keep it.