This is a fake PR to test GH actions #3
lint-and-format.yml
on: pull_request
runner / eslint and prettier
1m 0s
Annotations
4 errors and 1 warning
runner / eslint and prettier:
src/js/views/TOCView.js#L8
[eslint] reported by reviewdog 🐶
Unexpected function expression.
Raw Output:
{"ruleId":"prefer-arrow-callback","severity":2,"message":"Unexpected function expression.","line":8,"column":4,"nodeType":"FunctionExpression","messageId":"preferArrowCallback","endLine":483,"endColumn":2,"fix":{"range":[181,249],"text":"($, _, Backbone, TOCTemplateLi, TOCTemplateUl, TOCTemplate) =>"}}
|
runner / eslint and prettier:
src/js/views/TOCView.js#L22
[eslint] reported by reviewdog 🐶
Unexpected var, use let or const instead.
Raw Output:
{"ruleId":"no-var","severity":2,"message":"Unexpected var, use let or const instead.","line":22,"column":3,"nodeType":"VariableDeclaration","messageId":"unexpectedVar","endLine":480,"endColumn":5,"fix":{"range":[887,890],"text":"let"}}
|
runner / eslint and prettier:
src/js/views/TOCView.js#L466
[eslint] reported by reviewdog 🐶
Expected method shorthand.
Raw Output:
{"ruleId":"object-shorthand","severity":2,"message":"Expected method shorthand.","line":466,"column":7,"nodeType":"Property","messageId":"expectedMethodShorthand","endLine":470,"endColumn":8,"fix":{"range":[16587,16734],"text":"onClose () {\n // Make sure to stop scrollSpy listeners\n $(\"body\").off(\"activate\");\n $(window).off(\"resize\");\n }"}}
|
runner / eslint and prettier:
.github/workflows/lint-and-format.yml#L17
[prettier] reported by reviewdog 🐶
Raw Output:
.github/workflows/lint-and-format.yml:17:- - name: Check out code
.github/workflows/lint-and-format.yml:18:- uses: actions/checkout@v3
.github/workflows/lint-and-format.yml:19:- with:
.github/workflows/lint-and-format.yml:20:- fetch-depth: 0 # Important to fetch all history for diff
.github/workflows/lint-and-format.yml:21:-
.github/workflows/lint-and-format.yml:22:- - name: Set up Node.js
.github/workflows/lint-and-format.yml:23:- uses: actions/setup-node@v3
.github/workflows/lint-and-format.yml:24:- with:
.github/workflows/lint-and-format.yml:25:- node-version: '18'
.github/workflows/lint-and-format.yml:26:-
.github/workflows/lint-and-format.yml:27:- - name: Install dependencies
.github/workflows/lint-and-format.yml:28:- run: npm install
.github/workflows/lint-and-format.yml:29:-
.github/workflows/lint-and-format.yml:30:- - name: Run ESLint with reviewdog
.github/workflows/lint-and-format.yml:31:- uses: reviewdog/action-eslint@v1
.github/workflows/lint-and-format.yml:32:- with:
.github/workflows/lint-and-format.yml:33:- github_token: ${{ secrets.GITHUB_TOKEN }}
.github/workflows/lint-and-format.yml:34:- reporter: github-pr-review
.github/workflows/lint-and-format.yml:35:- eslint_flags: 'src'
.github/workflows/lint-and-format.yml:36:- filter_mode: 'diff_context'
.github/workflows/lint-and-format.yml:37:-
.github/workflows/lint-and-format.yml:38:- - name: Run Prettier with reviewdog
.github/workflows/lint-and-format.yml:39:- uses: EPMatt/reviewdog-action-prettier@v1
.github/workflows/lint-and-format.yml:40:- with:
.github/workflows/lint-and-format.yml:41:- github_token: ${{ secrets.GITHUB_TOKEN }}
.github/workflows/lint-and-format.yml:42:- reporter: github-pr-review
.github/workflows/lint-and-format.yml:43:- filter_mode: 'diff_context'
.github/workflows/lint-and-format.yml:44:-
.github/workflows/lint-and-format.yml:17:+ - name: Check out code
.github/workflows/lint-and-format.yml:18:+ uses: actions/checkout@v3
.github/workflows/lint-and-format.yml:19:+ with:
.github/workflows/lint-and-format.yml:20:+ fetch-depth: 0 # Important to fetch all history for diff
.github/workflows/lint-and-format.yml:21:+
.github/workflows/lint-and-format.yml:22:+ - name: Set up Node.js
.github/workflows/lint-and-format.yml:23:+ uses: actions/setup-node@v3
.github/workflows/lint-and-format.yml:24:+ with:
.github/workflows/lint-and-format.yml:25:+ node-version: "18"
.github/workflows/lint-and-format.yml:26:+
.github/workflows/lint-and-format.yml:27:+ - name: Install dependencies
.github/workflows/lint-and-format.yml:28:+ run: npm install
.github/workflows/lint-and-format.yml:29:+
.github/workflows/lint-and-format.yml:30:+ - name: Run ESLint with reviewdog
.github/workflows/lint-and-format.yml:31:+ uses: reviewdog/action-eslint@v1
.github/workflows/lint-and-format.yml:32:+ with:
.github/workflows/lint-and-format.yml:33:+ github_token: ${{ secrets.GITHUB_TOKEN }}
.github/workflows/lint-and-format.yml:34:+ reporter: github-pr-review
.github/workflows/lint-and-format.yml:35:+ eslint_flags: "src"
.github/workflows/lint-and-format.yml:36:+ filter_mode: "diff_context"
.github/workflows/lint-and-format.yml:37:+
.github/workflows/lint-and-format.yml:38:+ - name: Run Prettier with reviewdog
.github/workflows/lint-and-format.yml:39:+ uses: EPMatt/reviewdog-action-prettier@v1
.github/workflows/lint-and-format.yml:40:+ with:
.github/workflows/lint-and-format.yml:41:+ github_token: ${{ secrets.GITHUB_TOKEN }}
.github/workflows/lint-and-format.yml:42:+ reporter: github-pr-review
.github/workflows/lint-and-format.yml:43:+ filter_mode: "diff_context"
|
runner / eslint and prettier
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|