Skip to content

Commit

Permalink
docs: add eslint info to the vue doc (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
DamlaDemir authored Nov 3, 2022
1 parent d93b289 commit 1b3b36a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/using-baklava-in-vue.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,14 @@ Also, you can add ignore rule as compiler options to your webpack or vite.
}
}
```
#### Eslint Configuration
Baklava components are developed with `kebab case`. Eslint uses `pascal case` by default. If you are using eslint in your project, it will automatically convert the baklava components to `pascal case`. To prevent this, you need to turn off the `pascal case` rule in your project.
To do this, give the following rule in your eslint config file.
```js
rules: {
"vue/component-name-in-template-casing": "off",
},
```

0 comments on commit 1b3b36a

Please sign in to comment.