Skip to content

Commit

Permalink
chore(deps): update dependency eslint to v9 (#646)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency eslint to v9

* fix(deps): update bod monorepo to v5.21.4

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: sabertazimi <[email protected]>
  • Loading branch information
renovate[bot] and sabertazimi authored Nov 20, 2024
1 parent 4a9a440 commit 4531f31
Show file tree
Hide file tree
Showing 32 changed files with 2,954 additions and 2,437 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@
"test": "pnpm -r run test"
},
"devDependencies": {
"@dg-scripts/eslint-config": "^5.21.3",
"@dg-scripts/stylelint-config": "^5.21.3",
"@dg-scripts/eslint-config": "^5.21.4",
"@dg-scripts/stylelint-config": "^5.21.4",
"@types/node": "^22.9.1",
"eslint": "^8.57.1",
"eslint": "^9.15.0",
"lerna": "^8.1.9",
"prettier": "^3.3.3",
"stylelint": "^16.10.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/mortal-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
"vue-i18n": "^10.0.4"
},
"devDependencies": {
"@dg-scripts/eslint-config": "^5.21.3",
"@dg-scripts/eslint-config": "^5.21.4",
"@types/jsdom": "^21.1.7",
"@types/node": "^22.9.1",
"@vitejs/plugin-vue": "^5.2.0",
"@vitest/coverage-v8": "^2.1.5",
"@vue/test-utils": "^2.4.6",
"@vue/tsconfig": "^0.6.0",
"eslint": "^8.57.1",
"eslint": "^9.15.0",
"eslint-plugin-format": "^0.1.2",
"jsdom": "^25.0.1",
"npm-run-all2": "^7.0.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/mortal-ui/src/components/Advice.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup lang="ts">
import { useI18n } from 'vue-i18n'
import TileGroup from './TileGroup.vue'
import type { MortalReview } from '@/mortal'
import { TileUtils } from '@/mortal'
import { useI18n } from 'vue-i18n'
import TileGroup from './TileGroup.vue'
const props = defineProps<{
review: MortalReview
Expand Down
4 changes: 2 additions & 2 deletions packages/mortal-ui/src/components/GameInfo.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup lang="ts">
import { useI18n } from 'vue-i18n'
import { Button, Tile, TileGroup } from '@/components'
import type { GameInfo } from '@/mortal'
import { Button, Tile, TileGroup } from '@/components'
import { TileUtils } from '@/mortal'
import { useI18n } from 'vue-i18n'
const props = defineProps<{
info: GameInfo
Expand Down
15 changes: 5 additions & 10 deletions packages/mortal-ui/src/components/Tile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ const tileImage = computed(
.tile-shimo {
margin-inline: calc((var(--tile-height) - var(--tile-width)) / 2);
margin-top: calc(var(--tile-width) - var(--tile-height));
transform: rotate(-90deg)
translateX(calc((var(--tile-width) - var(--tile-height)) / 2));
transform: rotate(-90deg) translateX(calc((var(--tile-width) - var(--tile-height)) / 2));
}
.tile-toimen {
Expand All @@ -120,25 +119,21 @@ const tileImage = computed(
.tile-kami {
margin-inline: calc((var(--tile-height) - var(--tile-width)) / 2);
margin-top: calc(var(--tile-width) - var(--tile-height));
transform: rotate(-270deg)
translateX(calc((var(--tile-height) - var(--tile-width)) / 2));
transform: rotate(-270deg) translateX(calc((var(--tile-height) - var(--tile-width)) / 2));
}
.tile-sided {
margin-inline: calc((var(--tile-height) - var(--tile-width)) / 2);
transform: rotate(-90deg)
translateX(calc((var(--tile-width) - var(--tile-height)) / 2));
transform: rotate(-90deg) translateX(calc((var(--tile-width) - var(--tile-height)) / 2));
}
.tile-shimo.tile-sided {
margin-top: 0;
transform: rotate(-180deg)
translateX(calc((var(--tile-width) - var(--tile-height)) / 2));
transform: rotate(-180deg) translateX(calc((var(--tile-width) - var(--tile-height)) / 2));
}
.tile-toimen.tile-sided {
transform: rotate(-270deg)
translateX(calc((var(--tile-width) - var(--tile-height)) / 2));
transform: rotate(-270deg) translateX(calc((var(--tile-width) - var(--tile-height)) / 2));
}
.tile-kami.tile-sided {
Expand Down
4 changes: 2 additions & 2 deletions packages/mortal-ui/src/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import Advice from './Advice.vue'
import Button from './Button.vue'
import Claim from './Claim.vue'
import GameInfo from './GameInfo.vue'
import LoadingSquare from './LoadingSquare.vue'
import Score from './Score.vue'
import Tile from './Tile.vue'
import TileGroup from './TileGroup.vue'
import Claim from './Claim.vue'

export {
Advice,
Button,
Claim,
GameInfo,
LoadingSquare,
Claim,
Score,
Tile,
TileGroup,
Expand Down
4 changes: 2 additions & 2 deletions packages/mortal-ui/src/features/Controls.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup lang="ts">
import { ref } from 'vue'
import { useI18n } from 'vue-i18n'
import { Button } from '@/components'
import { useMortalStore } from '@/stores'
import { ref } from 'vue'
import { useI18n } from 'vue-i18n'
const props = defineProps<{
rounds: number
Expand Down
18 changes: 5 additions & 13 deletions packages/mortal-ui/src/features/Game.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { Claim, GameInfo, Score, Tile, TileGroup } from '@/components'
import type { UIState } from '@/mortal'
import { Claim, GameInfo, Score, Tile, TileGroup } from '@/components'
const props = defineProps<{
state: UIState
Expand Down Expand Up @@ -57,18 +57,10 @@ const props = defineProps<{
display: grid;
grid-template:
'hand-p3 hand-p2 hand-p2 hand-p2 hand-p2' 1fr
'hand-p3 . discard-p2 . hand-p1' calc(
var(--tile-height) * 3
)
'hand-p3 discard-p3 info discard-p1 hand-p1' calc(
var(--tile-width) * 6
)
'hand-p3 . discard-p0 . hand-p1' calc(
var(--tile-height) * 3
)
'hand-p0 hand-p0 hand-p0 hand-p0 hand-p1' 1fr / 1fr calc(
var(--tile-height) * 3
)
'hand-p3 . discard-p2 . hand-p1' calc(var(--tile-height) * 3)
'hand-p3 discard-p3 info discard-p1 hand-p1' calc(var(--tile-width) * 6)
'hand-p3 . discard-p0 . hand-p1' calc(var(--tile-height) * 3)
'hand-p0 hand-p0 hand-p0 hand-p0 hand-p1' 1fr / 1fr calc(var(--tile-height) * 3)
calc(var(--tile-width) * 6) calc(var(--tile-height) * 3) 1fr;
width: 100%;
height: 100%;
Expand Down
6 changes: 3 additions & 3 deletions packages/mortal-ui/src/features/Reviewer.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<script setup lang="ts">
import { Advice } from '@/components'
import { createMachine } from '@/mortal'
import { useMortalStore } from '@/stores'
import { useHead } from '@unhead/vue'
import { computed } from 'vue'
import { useI18n } from 'vue-i18n'
import Controls from './Controls.vue'
import Game from './Game.vue'
import { useMortalStore } from '@/stores'
import { createMachine } from '@/mortal'
import { Advice } from '@/components'
const { t } = useI18n()
Expand Down
4 changes: 2 additions & 2 deletions packages/mortal-ui/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createApp } from 'vue'
import { createHead } from '@unhead/vue'
import { createPinia } from 'pinia'
import { createApp } from 'vue'
import { createI18n } from 'vue-i18n'
import { createHead } from '@unhead/vue'
import App from './App.vue'
import locales from './locales'
import './assets/main.css'
Expand Down
2 changes: 1 addition & 1 deletion packages/mortal-ui/src/mortal/machine.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Log } from './data'
import { describe, it } from 'vitest'
import log from '../../e2e/report.json'
import { createMachine } from './machine'
import type { Log } from './data'

describe('machine', () => {
describe('run', () => {
Expand Down
2 changes: 2 additions & 0 deletions packages/mortal-ui/src/mortal/machine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ class Machine {
case 'end_game':
this.rounds = this.round + 1
break
case 'none':
break
default:
break
}
Expand Down
2 changes: 1 addition & 1 deletion packages/mortal-ui/src/stores/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ref } from 'vue'
import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useMortalStore = defineStore('mortal', () => {
const round = ref(0)
Expand Down
2 changes: 1 addition & 1 deletion packages/react-renderer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"react-reconciler": "^0.29.2"
},
"devDependencies": {
"@sabertazimi/react-scripts": "^5.21.3",
"@sabertazimi/react-scripts": "^5.21.4",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.0.1",
Expand Down
6 changes: 3 additions & 3 deletions packages/vue-basis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
"vuex": "^4.1.0"
},
"devDependencies": {
"@dg-scripts/eslint-config": "^5.21.3",
"@dg-scripts/stylelint-config": "^5.21.3",
"@dg-scripts/eslint-config": "^5.21.4",
"@dg-scripts/stylelint-config": "^5.21.4",
"@types/node": "^22.9.1",
"@vitejs/plugin-vue": "^5.2.0",
"autoprefixer": "^10.4.20",
"eslint": "^8.57.1",
"eslint": "^9.15.0",
"postcss": "^8.4.49",
"prettier": "^3.3.3",
"stylelint": "^16.10.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-basis/src/components/EventCard.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import Card from './Card.vue'
import type { Event } from '@/services'
import Card from './Card.vue'
defineProps<{ event: Event }>()
</script>
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-basis/src/router/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { RouteRecordRaw } from 'vue-router'
import { createRouter, createWebHistory } from 'vue-router'
import EventList from '../views/EventList.vue'
import EventDetails from '../views/EventDetails.vue'
import EventList from '../views/EventList.vue'

const routes: Array<RouteRecordRaw> = [
{
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-basis/src/views/EventDetails.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { getEvent } from '@/services'
import type { Event } from '@/services'
import { getEvent } from '@/services'
const props = defineProps<{ id: string }>()
const event: Event = await getEvent(Number.parseInt(props.id))
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-basis/src/views/EventList.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { Event } from '@/services'
import EventCard from '@/components/EventCard.vue' // @ is an alias to /src
import { getEvents } from '@/services'
import type { Event } from '@/services'
const events: Event[] = await getEvents()
</script>
Expand Down
4 changes: 0 additions & 4 deletions packages/vue-challenges/.eslintignore

This file was deleted.

2 changes: 1 addition & 1 deletion packages/vue-challenges/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"devDependencies": {
"@vitejs/plugin-vue": "^5.2.0",
"@vue/test-utils": "^2.4.6",
"eslint": "^8.57.1",
"eslint": "^9.15.0",
"jsdom": "^25.0.1",
"typescript": "^5.6.3",
"vite": "^5.4.11",
Expand Down
5 changes: 0 additions & 5 deletions packages/vue-design/.eslintignore

This file was deleted.

4 changes: 2 additions & 2 deletions packages/vue-design/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"snabbdom": "^3.6.2"
},
"devDependencies": {
"@dg-scripts/eslint-config": "^5.21.3",
"eslint": "^8.57.1",
"@dg-scripts/eslint-config": "^5.21.4",
"eslint": "^9.15.0",
"prettier": "^3.3.3",
"typescript": "^5.6.3",
"vite": "^5.4.11"
Expand Down
6 changes: 3 additions & 3 deletions packages/vue-trello/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
"vuex": "^4.1.0"
},
"devDependencies": {
"@dg-scripts/eslint-config": "^5.21.3",
"@dg-scripts/stylelint-config": "^5.21.3",
"@dg-scripts/eslint-config": "^5.21.4",
"@dg-scripts/stylelint-config": "^5.21.4",
"@types/node": "^22.9.1",
"@vitejs/plugin-vue": "^5.2.0",
"autoprefixer": "^10.4.20",
"eslint": "^8.57.1",
"eslint": "^9.15.0",
"postcss": "^8.4.49",
"prettier": "^3.3.3",
"stylelint": "^16.10.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/vue-trello/src/components/BoardColumn.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup lang="ts">
import { useAppStore } from 'src/store'
import { move as moveColumn } from 'src/composables'
import type { BoardColumnType } from 'src/services'
import ColumnTask from 'src/components/ColumnTask.vue'
import { move as moveColumn } from 'src/composables'
import { useAppStore } from 'src/store'
defineProps<{ columnIndex: number, column: BoardColumnType }>()
Expand Down
4 changes: 2 additions & 2 deletions packages/vue-trello/src/components/ColumnTask.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup lang="ts">
import type { TaskType } from 'src/services'
import { move as moveTask } from 'src/composables'
import { useAppRouter } from 'src/router'
import { useAppStore } from 'src/store'
import { move as moveTask } from 'src/composables'
import type { TaskType } from 'src/services'
defineProps<{ columnIndex: number, taskIndex: number, task: TaskType }>()
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-trello/src/router/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { RouteRecordRaw } from 'vue-router'
import { createRouter, createWebHistory, useRoute, useRouter } from 'vue-router'
import Board from 'src/views/Board.vue'
import Task from 'src/views/Task.vue'
import { createRouter, createWebHistory, useRoute, useRouter } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
{
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-trello/src/services/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ const defaultBoard: BoardType = {
const getDefaultBoard = (): BoardType => defaultBoard

export { getDefaultBoard }
export type { TaskType, BoardColumnType, BoardType }
export type { BoardColumnType, BoardType, TaskType }
6 changes: 3 additions & 3 deletions packages/vue-trello/src/store/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { InjectionKey } from 'vue'
import type { Store } from 'vuex'
import { createStore, useStore } from 'vuex'
import type { BoardColumnType, BoardType, TaskType } from '../services'
import { nanoid } from 'nanoid'
import { createStore, useStore } from 'vuex'
import { getDefaultBoard } from '../services'
import type { BoardColumnType, BoardType, TaskType } from '../services'

interface State {
board: BoardType
Expand Down Expand Up @@ -130,5 +130,5 @@ const store = createStore<State>({
const useAppStore = () => useStore<State>(key)

export { key, useAppStore }
export type { State, AppStore }
export type { AppStore, State }
export default store
4 changes: 2 additions & 2 deletions packages/vue-trello/src/views/Board.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed } from 'vue'
import { useAppStore } from 'src/store'
import BoardColumn from 'src/components/BoardColumn.vue'
import { useAppStore } from 'src/store'
import { computed } from 'vue'
const store = useAppStore()
const columns = computed(() => store.state.board.columns)
Expand Down
4 changes: 2 additions & 2 deletions packages/vue-trello/src/views/Task.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup lang="ts">
import { computed } from 'vue'
import type { TaskType } from 'src/services'
import { useAppRouter } from 'src/router'
import { useAppStore } from 'src/store'
import type { TaskType } from 'src/services'
import { computed } from 'vue'
const props = defineProps<{ id: string }>()
const router = useAppRouter()
Expand Down
Loading

0 comments on commit 4531f31

Please sign in to comment.