Skip to content

Commit 0cb9bb4

Browse files
author
Gonzalo Diaz
committed
[CONFIG] Makefile now check style in JSON files.
1 parent 82dfe24 commit 0cb9bb4

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Makefile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,23 +63,31 @@ dependencies:
6363
test -x ./node_modules || npm install --verbose
6464
@echo "################################################################################"
6565

66+
lint/json:
67+
prettier --check ./src/**/*.json
68+
6669
lint/markdown:
6770
markdownlint '**/*.md' --ignore node_modules && echo '✔ Your code looks good.'
6871

6972
lint/yaml:
7073
yamllint --stric . && echo '✔ Your code looks good.'
7174

72-
lint: lint/markdown lint/yaml test/styling test/static
75+
lint: lint/markdown lint/yaml lint/json test/styling test/static
7376

7477
test/static: dependencies
7578
${NPM} run lint
7679

7780
test/styling: dependencies
7881
${NPM} run style:check
7982

80-
format: dependencies
83+
format/sources: dependencies
8184
${NPM} run style:format
8285

86+
format/json:
87+
prettier --write ./src/**/*.json
88+
89+
format: format/sources format/json
90+
8391
test: env dependencies
8492
${NPM} run jest:ci
8593

0 commit comments

Comments
 (0)