### Install and Build Project Dependencies Source: https://github.com/mattrglobal/jsonld-lint/blob/master/README.md Use this command to install all project dependencies and build the project. Ensure Yarn is installed as a prerequisite. ```bash yarn install --frozen-lockfile yarn build ``` -------------------------------- ### Install jsonld-lint-cli with Yarn Source: https://github.com/mattrglobal/jsonld-lint/blob/master/packages/jsonld-lint-cli/README.md Install the jsonld-lint-cli package globally using Yarn. ```bash yarn add jsonld-lint-cli ``` -------------------------------- ### Install jsonld-lint-cli with npm Source: https://github.com/mattrglobal/jsonld-lint/blob/master/packages/jsonld-lint-cli/README.md Install the jsonld-lint-cli package globally using npm. ```bash npm i -g jsonld-lint-cli ``` -------------------------------- ### Unrecognized JSON-LD Keyword Source: https://github.com/mattrglobal/jsonld-lint/blob/master/packages/jsonld-lint/README.md Flags JSON properties that start with '@' but are not defined JSON-LD keywords, to prevent namespace conflicts. ```json { "@this-is-a-test": true } ``` -------------------------------- ### Duplicate Aliased JSON-LD Keyword Source: https://github.com/mattrglobal/jsonld-lint/blob/master/packages/jsonld-lint/README.md Identifies when both an aliased property and its original JSON-LD keyword are present in the same object. For example, 'id' and '@id'. ```json { "id": "test-id", "@id": "test-id" } ``` -------------------------------- ### Unexpected JSON-LD Keyword Value Type Source: https://github.com/mattrglobal/jsonld-lint/blob/master/packages/jsonld-lint/README.md Reports when a JSON-LD keyword has a value of an incorrect type. For example, '@context' expects a string, array, or object, not a boolean. ```json { "@context": false } ``` -------------------------------- ### Run All Project Tests Source: https://github.com/mattrglobal/jsonld-lint/blob/master/README.md Execute this command to run all tests across all packages within the project. This is part of the testing and quality assurance process. ```bash yarn test ``` -------------------------------- ### Lint a directory of JSON-LD files Source: https://github.com/mattrglobal/jsonld-lint/blob/master/packages/jsonld-lint-cli/README.md Use the jsonld-lint command to lint all JSON-LD files within a specified directory. ```bash jsonld-lint ./my-directory-of-jsonld-documents ``` -------------------------------- ### Lint a single JSON-LD file Source: https://github.com/mattrglobal/jsonld-lint/blob/master/packages/jsonld-lint-cli/README.md Use the jsonld-lint command to lint a specific JSON-LD file. ```bash jsonld-lint my-jsonld-document.jsonld ``` -------------------------------- ### Unexpected Use of JSON-LD Keyword Source: https://github.com/mattrglobal/jsonld-lint/blob/master/packages/jsonld-lint/README.md Flags JSON-LD keywords used in an invalid location. '@base' is only valid in local context definitions, not within a node object. ```json { "@base": "https://example.com" } ``` -------------------------------- ### Conventional Commit Message Structure Source: https://github.com/mattrglobal/jsonld-lint/blob/master/docs/CONTRIBUTING.md This is the standard format for commit messages used in this project, which is parsed by conventional-changelog for automated changelog generation. ```git ():