Skip to content

Commit

Permalink
adjust npm based linters
Browse files Browse the repository at this point in the history
  • Loading branch information
fmigneault committed Apr 27, 2024
1 parent 3a7c24e commit 900c935
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ jobs:
- name: Display Packages
# skip python setup if running with docker
if: ${{ matrix.test-case != 'test-docker' }}
run: pip freeze
run: |
pip freeze
npm list
#- name: Setup Environment Variables
# uses: c-py/action-dotenv-to-setenv@v2
# with:
Expand Down
13 changes: 3 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -279,23 +279,16 @@ install-npm: ## install npm package manager and dependencies if they cannot b

.PHONY: install-npm-stylelint
install-npm-stylelint: install-npm ## install stylelint dependency for 'check-css' target using npm
@[ `npm ls 2>/dev/null | grep stylelint-config-standard | wc -l` = 1 ] || ( \
@[ `npm ls 2>/dev/null | grep stylelint-config-standard | grep -v UNMET | wc -l` = 1 ] || ( \
echo "Install required dependencies for CSS checks." && \
npm install "stylelint" "stylelint-config-standard" --save-dev \
npm install --save-dev \
)

.PHONY: install-npm-remarklint
install-npm-remarklint: install-npm ## install remark-lint dependency for 'check-md' target using npm
@[ `npm ls 2>/dev/null | grep remark-lint | wc -l` = 1 ] || ( \
@[ `npm ls 2>/dev/null | grep remark-lint | grep -v UNMET | wc -l` = 1 ] || ( \
echo "Install required dependencies for Markdown checks." && \
npm install --save-dev \
remark-lint \
remark-gfm \
remark-cli \
remark-lint-maximum-line-length \
remark-lint-checkbox-content-indent \
remark-preset-lint-recommended \
remark-preset-lint-markdown-style-guide \
)

## -- Cleanup targets ----------------------------------------------------------------------------------------------- ##
Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
{
"devDependencies": {
"remark-cli": "^12.0.0",
"remark-frontmatter": "^5.0.0",
"remark-gfm": "^4.0.0",
"remark-lint": "^9.1.2",
"remark-lint-checkbox-content-indent": "^4.1.2",
"remark-lint-maximum-line-length": "^3.1.3",
"remark-preset-lint-markdown-style-guide": "^5.1.3",
"remark-preset-lint-recommended": "^6.1.3",
"stylelint": "^15.11.0",
"stylelint-config-standard": "^34.0.0"
"stylelint-config-standard": "^34.0.0",
"stylelint-scss": "^5.3.2",
"stylelint-csstree-validator": "^3.0.0"
},
"remarkConfig": {
"settings": {
Expand All @@ -22,6 +25,7 @@
},
"plugins": [
"remark-gfm",
"remark-frontmatter",
"remark-preset-lint-markdown-style-guide",
"remark-preset-lint-recommended",
"remark-lint-list-item-content-indent",
Expand Down Expand Up @@ -66,6 +70,7 @@
"indentation": [
4
],
"property-no-vendor-prefix": null,
"no-descending-specificity": null
}
}
Expand Down

0 comments on commit 900c935

Please sign in to comment.