@@ -44,13 +44,23 @@ jobs:
44
44
45
45
# This schema is referenced by the package.json schema, so must also be accessible.
46
46
- name : Download JSON schema for eslintrc.json
47
- id : download-referenced -schema
47
+ id : download-eslintrc -schema
48
48
uses : carlosperate/download-file-action@v1
49
49
with :
50
50
# See: https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/eslintrc.json
51
51
file-url : https://json.schemastore.org/eslintrc.json
52
52
location : ${{ runner.temp }}/json-schema
53
- file-name : eslintrc-json-schema.json
53
+ file-name : eslintrc-schema.json
54
+
55
+ # This schema is referenced by the package.json schema, so must also be accessible.
56
+ - name : Download JSON schema for eslintrc.json
57
+ id : download-prettierrc-schema
58
+ uses : carlosperate/download-file-action@v1
59
+ with :
60
+ # See: https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/prettierrc.json
61
+ file-url : https://json.schemastore.org/prettierrc.json
62
+ location : ${{ runner.temp }}/json-schema
63
+ file-name : prettierrc-schema.json
54
64
55
65
- name : Install JSON schema validator
56
66
# package.json schema is draft-04, which is not supported by ajv-cli >=4.
61
71
# See: https://github.com/ajv-validator/ajv-cli#readme
62
72
ajv validate \
63
73
-s "${{ steps.download-schema.outputs.file-path }}" \
64
- -r "${{ steps.download-referenced-schema.outputs.file-path }}" \
74
+ -r "${{ steps.download-eslintrc-schema.outputs.file-path }}" \
75
+ -r "${{ steps.download-prettierrc-schema.outputs.file-path }}" \
65
76
-d "./**/package.json"
66
77
67
78
check-sync :
0 commit comments