-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from angolaosc/table
setup github action for linting and formatting
- Loading branch information
Showing
3 changed files
with
108 additions
and
32 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,26 @@ | ||
name: Linting and formatting | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
lint-and-format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies | ||
run: | | ||
npm install -g markdownlint-cli prettier | ||
- name: Format README markdown file | ||
run: prettier --write README.md | ||
|
||
- name: Lint README markdown file | ||
run: markdownlint README.md |
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,24 @@ | ||
{ | ||
"default": true, | ||
"MD024": false, | ||
"MD033": false, | ||
"MD041": false, | ||
"MD013": { | ||
"line_length": 150, | ||
"tables": true, | ||
"code_blocks": false | ||
}, | ||
"MD044": { | ||
"names": false, | ||
"maximum_length": 100 | ||
}, | ||
"MD025": { | ||
"level": 2, | ||
"front_matter_title": "" | ||
}, | ||
"no-trailing-spaces": true, | ||
"no-multiple-blanks": true, | ||
"no-extra-punctuation": true, | ||
"no-hard-tabs": true | ||
} | ||
|
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