https://github.com/houdinigraphql/houdini-plugin-lint
https://github.com/houdinigraphql/houdini-plugin-lint
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/houdinigraphql/houdini-plugin-lint
- Owner: HoudiniGraphql
- Created: 2023-04-12T06:06:47.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-24T13:17:42.000Z (about 2 years ago)
- Last Synced: 2025-02-16T12:02:03.756Z (4 months ago)
- Language: TypeScript
- Size: 33.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
---
# ➕ 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`.
---