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

Lint everything else #116

Merged
merged 4 commits into from
Sep 28, 2020
Merged

Lint everything else #116

merged 4 commits into from
Sep 28, 2020

Conversation

fregante
Copy link
Collaborator

Manual lint of the last few rules

Copy link
Collaborator Author

@fregante fregante left a comment

Choose a reason for hiding this comment

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

There was a test being skipped, but it seems to work. Feel free to revert the last commit if the test isn't ready.

@@ -47,18 +47,9 @@
],
"prettier": true,
"rules": {
"camelcase": "off",
"ava/no-import-test-files": "off",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

"prefer-spread": "off",
"unicorn/explicit-length-check": "off",
"unicorn/prevent-abbreviations": "off"
"camelcase": "off"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Due to GitHub’s API

Copy link
Owner

@denis-sokolov denis-sokolov left a comment

Choose a reason for hiding this comment

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

Thanks!

@@ -73,41 +73,43 @@ test.cb('should not delete a fork that has more branches', (t) => {
});
});

// Currently our logic does not delete this fork
test.skip('should delete a fork that has more branches, but all at upstream branch tips', (t) => {
Copy link
Owner

Choose a reason for hiding this comment

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

Hecks knows, I don’t remember why it works. Perhaps I had added the functionality afterwards and forgot to enable the test? Weird.

Comment on lines +76 to +77
test.cb(
'should delete a fork that has more branches, but all at upstream branch tips',
Copy link
Owner

Choose a reason for hiding this comment

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

eslint strangely formats this. If the test.cb part is anything other than test.skip, it puts arguments on separate lines. If it’s test.skip, then both arguments are on one line. That’s with ava/no-skip-test disabled.

At first I thought it’s due to the line length, but no, even in the PR diff the shorter version is wrapped, and the longer isn’t. And, also, test.ski is wrapped, and test.skipp is wrapped. Weird.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That’s Prettier. Yeah I don’t like Prettier’s wrapping either 😉
XO doesn’t care about line length as long as there’s no more than one ; per line.

Copy link
Owner

Choose a reason for hiding this comment

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

You’re right that it’s prettier! prettier/prettier#9285

@denis-sokolov denis-sokolov merged commit f5c6198 into master Sep 28, 2020
@denis-sokolov denis-sokolov deleted the lint-rest branch September 28, 2020 05:38
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