Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@times-components/schema
Advanced tools
The GraphQL schema that is generated from our GraphQL endpoint is used primarily for two cases, linting and helping out Apollo with a [fragment matcher](https://www.apollographql.com/docs/react/advanced/fragments.html#fragment-matcher).
The GraphQL schema that is generated from our GraphQL endpoint is used primarily for two cases, linting and helping out Apollo with a fragment matcher.
This package auto-generates the schema.json
necessary for linting at install
time (provided you set the GRAPHQL_ENDPOINT
envar) and also the
fragmentMatcher
. By inlining it we can statically bundle the minimal amount of
code for the Apollo Client to be happy, with no runtime overhead.
We do this at install
time in order to fail the builds as soon as there's a
mismatch with our server side implementation.
Everything should be generated at install
time but you can regenerate by
running something like:
GRAPHQL_ENDPOINT='my.endpoint.io/graphql' yarn postinstall
Please read CONTRIBUTING.md before contributing to this package
Please see our main README.md to get the project running locally
The code can be formatted and linted in accordance with the agreed standards.
yarn fmt
yarn lint
FAQs
The GraphQL schema that is generated from our GraphQL endpoint is used primarily for two cases, linting and helping out Apollo with a [fragment matcher](https://www.apollographql.com/docs/react/advanced/fragments.html#fragment-matcher).
The npm package @times-components/schema receives a total of 1,580 weekly downloads. As such, @times-components/schema popularity was classified as popular.
We found that @times-components/schema demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.