Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sanni-t committed Oct 21, 2024
1 parent c1bdbbc commit 4ebe96b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 24 deletions.
21 changes: 0 additions & 21 deletions shared-data/.eslintignore

This file was deleted.

20 changes: 17 additions & 3 deletions shared-data/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ tests ?=
cov_opts ?= --coverage=true
test_opts ?=

# warning suppression variables for tests and linting
quiet ?= false

FORMAT_FILE_GLOB = "**/*.@(ts|tsx|js|json|md|yml)"

# Top level targets
Expand All @@ -28,6 +31,9 @@ clean: clean-py
.PHONY: format
format: format-js format-py

.PHONY: lint
lint: lint-js lint-py

# JavaScript targets

.PHONY: lib-js
Expand All @@ -41,11 +47,19 @@ build-ts:

.PHONY: format-js
format-js:
yarn prettier --ignore-path .eslintignore --write $(FORMAT_FILE_GLOB)
yarn prettier --ignore-path ../.eslintignore --write $(FORMAT_FILE_GLOB)

.PHONY: lint-js
lint-js:
yarn prettier --ignore-path .eslintignore --check $(FORMAT_FILE_GLOB)
lint-js: lint-js-eslint lint-js-prettier

.PHONY: lint-js-eslint
lint-js-eslint:
yarn eslint --ignore-path ../.eslintignore --quiet=$(quiet) --ignore-pattern "node_modules/" "**/*.@(js|ts|tsx)"

.PHONY: lint-js-prettier
lint-js-prettier:
yarn prettier --ignore-path ../.eslintignore --check $(FORMAT_FILE_GLOB)


# Python targets

Expand Down

0 comments on commit 4ebe96b

Please sign in to comment.