Skip to content

Commit

Permalink
Add an explanation of GH actions and an image of a run to readme expl…
Browse files Browse the repository at this point in the history
…aining why GH action exists
  • Loading branch information
mbonaci committed May 9, 2024
1 parent 0314b56 commit 625e7aa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ source.js
✖ 3 problems (3 errors, 0 warnings)
3 errors and 0 warnings potentially fixable with the `--fix` option.
```
The purpose of the GH action is to run eslint in order to show the plugin in action:
![GH action lint run](gh-action.png)

5. Fix

Expand Down
Binary file added gh-action.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"description": "ESLint plugin which enforces explicit .js extensions in local imports while leveraging import resolvers.",
"main": "index.js",
"scripts": {
"lint": "npm i && cd test && npm link .. && npm i && ./node_modules/.bin/eslint .",
"fix": "npm i && cd test && npm link .. && npm i && ./node_modules/.bin/eslint . --fix"
"lint": "npm i && cd test && npm link .. && npm i && ./node_modules/.bin/eslint . || true",
"fix": "npm i && cd test && npm link .. && npm i && ./node_modules/.bin/eslint . --fix || true"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 625e7aa

Please sign in to comment.