Skip to content

Commit

Permalink
fix: wrong lint-staged statement
Browse files Browse the repository at this point in the history
  • Loading branch information
wazolab authored and frodrigo committed Sep 25, 2024
1 parent 7dd479e commit e07423f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,23 @@ Header set Content-Security-Policy "frame-ancestors *"

Vido is mainly building using:
- [MapLibre GL JS](https://maplibre.org/maplibre-gl-js-docs/api/map/)
- [Nxut3](https://nuxt.com/) and [Vue3](https://vuejs.org/), using the Options API
- [Nuxt 3](https://nuxt.com/) and [Vue 3](https://vuejs.org/), using both Options API / Composition API

### Setup hooks

Ensure that `core.hooksPath` is properly setup !

From your project root run:

```bash
git config core.hooksPath .git/hooks/
```

Then update your hooks with the following command:

```bash
yarn dlx simple-git-hooks
```

```
# serve with hot reload at localhost:3000
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"start:cypress": "CONFIG=vidos-config-empty.json yarn build-fixture && yarn run cypress open",
"lint": "yarn lint:js && yarn lint:style",
"lint:js": "eslint .",
"lint:js:fix": "eslint --fix .",
"lint:style": "stylelint --cache **/*.{vue,css,scss}",
"test": "yarn test:cypress && yarn test:histoire",
"test:cypress": "yarn build-fixture && yarn run cypress run",
Expand Down Expand Up @@ -120,6 +121,7 @@
},
"lint-staged": {
"*.{css,scss,vue}": "stylelint",
"*.{js,jsx,ts,tsx,vue}": "nuxi typecheck && eslint"
"*": "yarn nuxi typecheck .",
"*.{vue,ts,js}": "yarn lint:js:fix"
}
}

0 comments on commit e07423f

Please sign in to comment.