HoudiniGraphql / houdini-plugin-lint

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Houdini's logo (dark or light)

The disappearing GraphQL clients.

version CI Tests github stars downloads license

➕ houdini-plugin-lint

This package provides some linting rules for houdini.

Setup

To use this plugin, add it to the list of plugins in houdini.config.js:

/// <references types="houdini-plugin-svelte-lint">

/** @type {import('houdini').ConfigFile} */
const config = {
  plugins: {
    "houdini-plugin-lint": {},
  },
};

export default config;

Rules

1/ Fragment matching Component name

Fragments declared in a component must start with the same name as the component.

✅ In CompA.svelte or CompA.tsx, Fragments must start with CompA.


HoudiniGraphQL.com 🚀

About


Languages

Language:TypeScript 100.0%