Skip to content

Commit

Permalink
Add lint and format commands for .js and .vue files.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-cintra committed May 9, 2024
1 parent cd41fb4 commit a6623dd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/vendor/
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
stubs/stack-configs/*
stubs/site/stack-configs/*
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"private": true,
"type": "module",
"scripts": {
"lint": "eslint . --ext .js,.vue",
"format": "prettier --write ."
},
"devDependencies": {
"eslint": "^v8.52.0",
"eslint-config-prettier": "^9.0.0",
Expand Down
1 change: 1 addition & 0 deletions stubs/resources/js/Layouts/AuthenticatedLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
/>
<div class="mx-8 2xl:mx-16">
<transition name="fade" mode="out-in">
<!-- eslint-disable-next-line vue/require-toggle-inside-transition -->
<div :key="page.props.ziggy.location">
<slot></slot>
</div>
Expand Down

0 comments on commit a6623dd

Please sign in to comment.