Closed KristjanESPERANTO closed 7 months ago
This looks very good to me.
Done, thx again @KristjanESPERANTO & @BePo65 :)
Now we may try to add a CI on the repo in order to run lint on every PR, what do yout think ?
Now we may try to add a CI on the repo in order to run lint on every PR, what do yout think ?
I also think that this would be good step. I don't have an overview of what is currently best practice here. I usually use husky, which already prevents me from committing unlinted code. But an action like this one doesn't seem so wrong to me either.
But an action like this one doesn't seem so wrong to me either.
This looks good https://github.com/marketplace/actions/lint-action#javascript-example-eslint-and-prettier and seems almost identical to what we do in https://github.com/leaflet-extras/leaflet-providers/blob/master/.github/workflows/ci.yml
Proposition here https://github.com/brunob/leaflet.fullscreen/pull/120
On my repos I use github actions (e.g. one of my repos) - that is what you do in pr #120.
Why do you add npm ci
? We don't run or build any code.
And you can make this workflow mandatory for pul requests (see github documentation).
On my repos I use github actions (e.g. one of my repos) - that is what you do in pr #120. Why do you add
npm ci
? We don't run or build any code.And you can make this workflow mandatory for pul requests (see github documentation).
I've tried without npm ci and it fails https://github.com/brunob/leaflet.fullscreen/actions/runs/7614739500/job/20737709233?pr=120 FTR it worked with npm ci https://github.com/brunob/leaflet.fullscreen/actions/runs/7614569335
Sorry, I was wrong. but of course we need npm ci
otherwise prettier is not installed :-(
Proposition here https://github.com/brunob/leaflet.fullscreen/pull/120
Good solution :+1:
done, i've also publisher a patch release
i think now we can propose to transfer the ownership of this repo to @Leaflet org :)
Whereby in the past I often had the feeling that plugins in the @Leaflet repo are very neglected...
If this plan is not successful, we still have plan B by creating a team of maintainers here :)
@KristjanESPERANTO i see that we are still using eslint v8, what do you think about adding something like https://github.com/leaflet-extras/leaflet-providers/blob/master/.github/dependabot.yml in order too keep our dependencies up to date ?
@KristjanESPERANTO i see that we are still using eslint v8, what do you think about adding something like https://github.com/leaflet-extras/leaflet-providers/blob/master/.github/dependabot.yml in order too keep our dependencies up to date ?
Good idea. I've just prepared a PR: #126.
A second attempt to rebuild the linter and formatter process. I canceled the first one because it did not contain the new flat configuration of ESLint. See also the discussion in PR #115.
Changes
npm run lint:fix
.gitignore
to ignorenode_modules
directoryThere should be no functional changes.