Skip to content

Commit 160cfff

Browse files
committed
feat: use pnpm
1 parent 4efa66f commit 160cfff

File tree

7 files changed

+7175
-6669
lines changed

7 files changed

+7175
-6669
lines changed

.eslintrc

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
{
2-
"extends": [
3-
"@nuxtjs/eslint-config-typescript"
4-
],
2+
"plugins": ["prettier"],
3+
"extends": "@nuxtjs/eslint-config-typescript",
54
"rules": {
6-
"@typescript-eslint/no-unused-vars": [
7-
"off"
8-
]
9-
}
5+
"@typescript-eslint/no-unused-vars": ["off"],
6+
},
107
}

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,12 @@
3434
"@nuxt/schema": "^3.0.0",
3535
"@nuxt/test-utils": "^3.0.0",
3636
"@nuxtjs/eslint-config-typescript": "^12.0.0",
37-
"eslint": "^8.31.0",
38-
"nitropack": "^1.0.0",
37+
"@typescript-eslint/eslint-plugin": "^5.0.0",
38+
"eslint-config-prettier": "^8.6.0",
39+
"eslint-plugin-promise": "^6.0.0",
3940
"nuxt": "^3.0.0",
41+
"prettier": "^2.8.3",
42+
"typescript": "*",
4043
"vitest": "^0.27.2"
4144
},
4245
"publishConfig": {

playground/app.vue

Lines changed: 35 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,47 @@
11
<template>
22
<div>
3-
<div :class="styles.root">
4-
Nuxt module playground!
5-
</div>
6-
<button :class="styles.button">
7-
Hello World
8-
</button>
3+
<div :class="styles.root">Nuxt module playground!</div>
4+
<button :class="styles.button">Hello World</button>
95
</div>
106
</template>
117

12-
<script setup>
13-
import { css } from '@emotion/css'
8+
<script lang="ts" setup>
9+
import { css } from "@emotion/css";
1410
1511
const styles = reactive({
1612
root: css({
17-
paddingInline: '16px',
18-
paddingBlock: '12px',
19-
fontSize: '1rem',
20-
fontFamily: 'system ui',
21-
color: 'white',
22-
borderRadius: '20px',
23-
backgroundColor: 'indigo'
13+
paddingInline: "16px",
14+
paddingBlock: "12px",
15+
fontSize: "1rem",
16+
fontFamily: "system ui",
17+
color: "white",
18+
borderRadius: "20px",
19+
backgroundColor: "indigo",
2420
}),
2521
button: css({
26-
padding: '13px 18px',
27-
position: 'relative',
28-
display: 'inline-flex',
29-
alignItems: 'center',
30-
justifyContent: 'center',
31-
whiteSpace: 'pre',
32-
borderRadius: '9999px',
33-
borderWidth: '2px',
34-
borderColor: 'transparent',
35-
backgroundColor: 'rgb(245 245 240)',
36-
fontSize: '15px',
37-
fontWeight: '400',
38-
lineHeight: '21px',
39-
letterSpacing: '.011em',
40-
cursor: 'pointer',
22+
padding: "13px 18px",
23+
position: "relative",
24+
display: "inline-flex",
25+
alignItems: "center",
26+
justifyContent: "center",
27+
whiteSpace: "pre",
28+
borderRadius: "9999px",
29+
borderWidth: "2px",
30+
borderColor: "transparent",
31+
backgroundColor: "rgb(245 245 240)",
32+
fontSize: "15px",
33+
fontWeight: "400",
34+
lineHeight: "21px",
35+
letterSpacing: ".011em",
36+
cursor: "pointer",
4137
transitionProperty:
42-
'color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter',
43-
transitionTimingFunction: 'cubic-bezier(.4,0,.2,1)',
44-
transitionDuration: '.15s',
45-
'&:hover': {
46-
backgroundColor: 'rgb(79 77 77)',
47-
color: 'rgb(245 245 240)'
48-
}
49-
})
50-
})
38+
"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter",
39+
transitionTimingFunction: "cubic-bezier(.4,0,.2,1)",
40+
transitionDuration: ".15s",
41+
"&:hover": {
42+
backgroundColor: "rgb(79 77 77)",
43+
color: "rgb(245 245 240)",
44+
},
45+
}),
46+
});
5147
</script>

0 commit comments

Comments
 (0)