Skip to content

Commit

Permalink
ci: add bem lint wd-218
Browse files Browse the repository at this point in the history
  • Loading branch information
what1s1ove committed Nov 28, 2023
1 parent 3310fed commit 46bd2ae
Show file tree
Hide file tree
Showing 4 changed files with 1,339 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ lint_editor:
lint_prettify:
npx prettier --check "**/*.{json,yml,njk,css,js,cjs,d.ts}"
lint_html:
npx node-w3c-validator -i build/*.html -f lint -evH
npx node-w3c-validator -i "build/*.html" -f lint -evH
lint_bem:
npx bemlint "source/**/*.njk" --errors
lint_css:
npx stylelint "source/styles/**/*.css"
lint_js:
npx eslint "**/*.{js,cjs}"
lint_type:
npx tsc --noEmit
lint: lint_fs lint_editor lint_prettify lint_html lint_css lint_js lint_type
lint: lint_fs lint_editor lint_prettify lint_html lint_bem lint_css lint_js lint_type
1 change: 1 addition & 0 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ let config = {
'*.{json,yml,njk,css,js,cjs,d.ts,}': `prettier --write`,
'*.css': `make lint_css`,
'*.js': `make lint_js lint_type`,
'*.njk': `make lint_bem`,
}

export default config
Loading

0 comments on commit 46bd2ae

Please sign in to comment.