An open API service indexing awesome lists of open source software.

https://github.com/houdinigraphql/houdini-plugin-lint


https://github.com/houdinigraphql/houdini-plugin-lint

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

        




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`:

```js
///

/** @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 🚀