Fmstrat / wintile

Windows 10 window tiling for GNOME
GNU General Public License v3.0
434 stars 55 forks source link

Add linter and perform corrections #117

Closed GrylledCheez closed 1 year ago

GrylledCheez commented 1 year ago

only a few errors left. but I'm tired

phavekes commented 1 year ago

Is it necessary to commit the node_modules folder? Could you add it to .gitignore?

GrylledCheez commented 1 year ago

I guess you're right

Fmstrat commented 1 year ago

Hey @GrylledCheez, please roll back the commits or start a new branch pre-merge without node_modules. Having the commit included increases the size of the repo significantly.

This may need to be started in a fully separate branch as a patch to get rid of the history completely. Thanks!

GrylledCheez commented 1 year ago

@Fmstrat, did that work?

GrylledCheez commented 1 year ago

All js files linted

I didn't increment the version, since it's not functionally different to the v10 release. Feel free to inc it if you want.

GrylledCheez commented 1 year ago

What's the concensus for adding hooks/pre-commit that will run eslint before accepting a commit? https://gist.github.com/broofa/730fab6ceb1686f4a1fa9977b791b1b5

GrylledCheez commented 1 year ago

@phavekes, stop force pushing. Just do single commits. We can squash them in a rebase later.

phavekes commented 1 year ago

@phavekes, stop force pushing. Just do single commits. We can squash them in a rebase later.

Sorry for that. Can't get eslint to work in GHA.

GrylledCheez commented 1 year ago

For some reason, your commit messed up the tabbing in the .eslintrc.yml for

- 'CallExpression[callee.object.name=GObject][callee.property.name=registerClass] > ClassExpression:first-child'

It should line up with the comments above it

GrylledCheez commented 1 year ago

@phavekes, I'm going to revert and force push back, and we can pretend none of this happened :D This branch is cursed.

GrylledCheez commented 1 year ago

be sure to do a git fetch --all to make sure you have a clean history

GrylledCheez commented 1 year ago

I'm going to abandon this branch for now. But we will still need to do lining before the next version. For now keep pulling to the develop branch and we can do a lint there when we're ready.