Skip to content

Commit

Permalink
feat(linting): add lint --fix option and create new make option (#1484)
Browse files Browse the repository at this point in the history
* [feature/lint-fix] add lint --fix option and create new make option

* [feature/lint-fix] enhance description
  • Loading branch information
scherler authored Apr 21, 2021
1 parent f37d066 commit dd74cbb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ packages-lint: ##@1 packages run eslint on all packages
@echo "${YELLOW}Running eslint on all packages${RESET}"
@./node_modules/.bin/eslint "./packages/*/{src,tests}/**/*.{js,ts,tsx}"

packages-lint-fix: ##@1 packages run eslint on all packages with a fix option
@echo "${YELLOW}Running eslint on all packages${RESET}"
@./node_modules/.bin/eslint "./packages/*/{src,tests}/**/*.{js,ts,tsx}" --fix

package-test-cover-%: ##@1 packages run tests for a package with code coverage
@yarn jest -c ./packages/jest.config.js --rootDir . --coverage ./packages/${*}/tests

Expand Down

0 comments on commit dd74cbb

Please sign in to comment.