Skip to content

Conversation

XhmikosR
Copy link
Contributor

@XhmikosR XhmikosR commented Oct 6, 2021

  • use String.startsWith
  • use String.includes

}

if (path.basename(file.path).indexOf('_') === 0) {
if (path.basename(file.path).startsWith('_')) {
Copy link
Contributor Author

@XhmikosR XhmikosR Oct 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

path.basename(file.path) cannot be null/undefined here AFAICT so this should be fine.

@XhmikosR XhmikosR marked this pull request as ready for review October 6, 2021 06:35
* use `String.startsWith`
* use `String.includes`
@xzyfer xzyfer merged commit bf2fe9e into dlmanning:master Oct 6, 2021
@xzyfer
Copy link
Collaborator

xzyfer commented Oct 6, 2021

Thanks

@XhmikosR XhmikosR deleted the lint branch October 6, 2021 07:18
@XhmikosR
Copy link
Contributor Author

XhmikosR commented Oct 6, 2021

Will you cut a new version too?

@xzyfer
Copy link
Collaborator

xzyfer commented Oct 6, 2021

Yes I will tomorrow when I'm on a development machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants