forked from cvat-ai/cvat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing remark-lint issues. Adding remark-linter check. (cvat-ai#321)
* Fix remark-lint issues. * Align continuation lines with the first line. Apply comments * Added remark check
- Loading branch information
1 parent
e8371e9
commit 121670c
Showing
19 changed files
with
2,939 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Linter | ||
on: pull_request | ||
jobs: | ||
Remark: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 12 | ||
|
||
- name: Run checks | ||
run: | | ||
npm ci | ||
echo "Remark version: "`npx remark --version` | ||
npx remark --frail . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
exports.settings = { bullet: '*', paddedTable: false }; | ||
|
||
exports.plugins = [ | ||
'remark-frontmatter', | ||
'remark-gfm', | ||
'remark-preset-lint-recommended', | ||
'remark-preset-lint-consistent', | ||
['remark-lint-list-item-indent', 'space'], | ||
['remark-lint-no-dead-urls', false], // Does not work because of github protection system | ||
['remark-lint-maximum-line-length', 80], | ||
['remark-lint-maximum-heading-length', 120], | ||
['remark-lint-strong-marker', '*'], | ||
['remark-lint-emphasis-marker', '_'], | ||
['remark-lint-unordered-list-marker-style', '-'], | ||
['remark-lint-ordered-list-marker-style', '.'], | ||
['remark-lint-no-file-name-irregular-characters', false], | ||
['remark-lint-list-item-spacing', false], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.