This repository has been archived by the owner on Feb 13, 2025. It is now read-only.
MWPW-136489: Add Linter #1
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
Annotations
10 errors and 7 warnings
Running eslint:
bacom-blog/aside/aside.js#L2
[eslint] reported by reviewdog 🐶
'unist-util-select' should be listed in the project's dependencies. Run 'npm i -S unist-util-select' to add it
Raw Output:
{"ruleId":"import/no-extraneous-dependencies","severity":2,"message":"'unist-util-select' should be listed in the project's dependencies. Run 'npm i -S unist-util-select' to add it","line":2,"column":1,"nodeType":"ImportDeclaration","endLine":2,"endColumn":55}
|
Running eslint:
bacom-blog/embed/embed.js#L29
[eslint] reported by reviewdog 🐶
Prefer default export on a file with single export.
Raw Output:
{"ruleId":"import/prefer-default-export","severity":2,"message":"Prefer default export on a file with single export.","line":29,"column":1,"nodeType":"ExportNamedDeclaration","endLine":70,"endColumn":2}
|
Running eslint:
bacom-blog/figure/images-to-figure.js#L11
[eslint] reported by reviewdog 🐶
Prefer default export on a file with single export.
Raw Output:
{"ruleId":"import/prefer-default-export","severity":2,"message":"Prefer default export on a file with single export.","line":11,"column":1,"nodeType":"ExportNamedDeclaration","endLine":26,"endColumn":2}
|
Running eslint:
bacom-blog/tag-header/tag-header.js#L3
[eslint] reported by reviewdog 🐶
'unist-util-select' should be listed in the project's dependencies. Run 'npm i -S unist-util-select' to add it
Raw Output:
{"ruleId":"import/no-extraneous-dependencies","severity":2,"message":"'unist-util-select' should be listed in the project's dependencies. Run 'npm i -S unist-util-select' to add it","line":3,"column":1,"nodeType":"ImportDeclaration","endLine":3,"endColumn":55}
|
Running eslint:
bacom-blog/tag-header/tag-header.js#L3
[eslint] reported by reviewdog 🐶
`unist-util-select` import should occur before import of `../../utils/mdast-utils.js`
Raw Output:
{"ruleId":"import/order","severity":2,"message":"`unist-util-select` import should occur before import of `../../utils/mdast-utils.js`","line":3,"column":1,"nodeType":"ImportDeclaration","endLine":3,"endColumn":55,"fix":{"range":[40,150],"text":"import { select, selectAll } from 'unist-util-select';\nimport { getMdast } from '../../utils/mdast-utils.js';\n"}}
|
Running eslint:
bacom-blog/tag-header/tag-header.js#L4
[eslint] reported by reviewdog 🐶
Expected 1 empty line after import statement not followed by another import.
Raw Output:
{"ruleId":"import/newline-after-import","severity":2,"message":"Expected 1 empty line after import statement not followed by another import.","line":4,"column":1,"nodeType":null,"fix":{"range":[230,230],"text":"\n"}}
|
Running eslint:
test/bacom-blog/article-feed/article-feed.test.js#L1
[eslint] reported by reviewdog 🐶
`../../../bacom-blog/article-feed/article-feed.js` import should occur after import of `@esm-bundle/chai`
Raw Output:
{"ruleId":"import/order","severity":2,"message":"`../../../bacom-blog/article-feed/article-feed.js` import should occur after import of `@esm-bundle/chai`","line":1,"column":1,"nodeType":"ImportDeclaration","endLine":1,"endColumn":82,"fix":{"range":[0,165],"text":"import { readFile } from 'fs/promises';\nimport { expect } from '@esm-bundle/chai';\nimport updateArticleFeed from '../../../bacom-blog/article-feed/article-feed.js';\n"}}
|
Running eslint:
test/bacom-blog/aside/aside.test.js#L1
[eslint] reported by reviewdog 🐶
`../../../bacom-blog/aside/aside.js` import should occur after import of `unist-util-select`
Raw Output:
{"ruleId":"import/order","severity":2,"message":"`../../../bacom-blog/aside/aside.js` import should occur after import of `unist-util-select`","line":1,"column":1,"nodeType":"ImportDeclaration","endLine":1,"endColumn":68,"fix":{"range":[0,263],"text":"import { readFile } from 'fs/promises';\nimport { expect } from '@esm-bundle/chai';\nimport { getMdast, mdast2md } from '../../../utils/mdast-utils.js';\nimport { select } from 'unist-util-select';\nimport { bannerToAside } from '../../../bacom-blog/aside/aside.js';\n"}}
|
Running eslint:
test/bacom-blog/aside/aside.test.js#L4
[eslint] reported by reviewdog 🐶
`../../../utils/mdast-utils.js` import should occur after import of `unist-util-select`
Raw Output:
{"ruleId":"import/order","severity":2,"message":"`../../../utils/mdast-utils.js` import should occur after import of `unist-util-select`","line":4,"column":1,"nodeType":"ImportDeclaration","endLine":4,"endColumn":68,"fix":{"range":[151,263],"text":"import { select } from 'unist-util-select';\nimport { getMdast, mdast2md } from '../../../utils/mdast-utils.js';\n"}}
|
Running eslint:
test/bacom-blog/aside/aside.test.js#L5
[eslint] reported by reviewdog 🐶
'unist-util-select' should be listed in the project's dependencies. Run 'npm i -S unist-util-select' to add it
Raw Output:
{"ruleId":"import/no-extraneous-dependencies","severity":2,"message":"'unist-util-select' should be listed in the project's dependencies. Run 'npm i -S unist-util-select' to add it","line":5,"column":1,"nodeType":"ImportDeclaration","endLine":5,"endColumn":44}
|
Running eslint:
block-report.js#L1
[eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
Raw Output:
{"ruleId":null,"fatal":false,"severity":1,"message":"File ignored because of a matching ignore pattern. Use \"--no-ignore\" to override.","nodeType":null}
|
Running eslint:
blog-migration.js#L1
[eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
Raw Output:
{"ruleId":null,"fatal":false,"severity":1,"message":"File ignored because of a matching ignore pattern. Use \"--no-ignore\" to override.","nodeType":null}
|
Running eslint:
utils/docx-utils.js#L1
[eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
Raw Output:
{"ruleId":null,"fatal":false,"severity":1,"message":"File ignored because of a matching ignore pattern. Use \"--no-ignore\" to override.","nodeType":null}
|
Running eslint:
utils/fetch-utils.js#L1
[eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
Raw Output:
{"ruleId":null,"fatal":false,"severity":1,"message":"File ignored because of a matching ignore pattern. Use \"--no-ignore\" to override.","nodeType":null}
|
Running eslint:
utils/mdast-utils-examples.js#L1
[eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
Raw Output:
{"ruleId":null,"fatal":false,"severity":1,"message":"File ignored because of a matching ignore pattern. Use \"--no-ignore\" to override.","nodeType":null}
|
Running eslint:
utils/migration-utils.js#L1
[eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
Raw Output:
{"ruleId":null,"fatal":false,"severity":1,"message":"File ignored because of a matching ignore pattern. Use \"--no-ignore\" to override.","nodeType":null}
|
Running eslint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|