-
-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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 with awesome-lint via GitHub Actions #1794
Conversation
Any comments on #1696 (comment) ? |
I do not see a reason why it will not pass. What issues do you anticipate will happen when merged? As far as I know, |
When trying to install checkPermissions Missing write access to /usr/local/lib/node_modules I managed to solve this by setting a custom global scope. This is how my solution looks like: name: Awesome readme lint
on:
pull_request:
types: [opened, synchronize]
branches:
- main
jobs:
build:
name: awesome readme lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
PATH=~/.npm-global/bin:$PATH
npm install --global awesome-lint
awesome-lint |
I was able to run the linter by just adding the one file from this pull request to my repository at AppImageCommunity/awesome-appimage@1494277 without any further changes. The linter seems to work since it has found some issues. So to me, this appears to get the job done! 👍 |
@probonopd your solution looks good! You could make it a bit shorter by using |
Having this makes total sense, I set up 👍 |
I think I explained it pretty clearly in the linked comment. The readme here does not pass all the awesome-lint rules. |
@Richienb Are you interested in finishing this or should I close? |
I'm just coming back to this now and I'll continue working on this. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
with: | ||
node-version: 12 | ||
- run: npm install --global awesome-lint | ||
- run: awesome-lint |
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.
Could just use npx awesome-lint
per the docs, seem redundant having multiple steps.
@Richienb you trying to finish this up? I'd be happy to jump in and help here. I'm assuming @sindresorhus we could use the remark comments to filter out some of the issues with the list? I was able to add |
I'll close this PR if #1851 gets merged |
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 don't have a Awersome list but if i'm correct that is good
I am about to submit the awesome-projen list based on projen. I am also the creator of p6-projen-project-awesome-list which uses projen to setup a repo as an awesome-list and "obsoletes" yeoman with a more general purpose tool. It already includes awesome-lint in the the GitHub Action workflow. As far as I know, it also sets up the repo in 100% compliance out of the box. |
https://github.com/p6m7g8/awesome-projen projen is related to awesome-cdk and awesome-cdk8s and awesome-terraform-cdk |
See #1696
Fixes #1619
Fixes #1675
// @sindresorhus