Skip to content

Commit e91810b

Browse files
committed
Convert all presets to TypeScript (except for bootstrap)
1 parent 1b72aef commit e91810b

File tree

22 files changed

+105
-17
lines changed

22 files changed

+105
-17
lines changed

packages/preset-bulma/tsconfig.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"compilerOptions": {
3+
"resolveJsonModule": true,
4+
"esModuleInterop": true,
5+
"moduleResolution": "node",
6+
"strict": true
7+
}
8+
}

packages/preset-dark/src/index.js renamed to packages/preset-dark/src/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export default {
107107
my: 4,
108108
borderCollapse: 'separate',
109109
borderSpacing: 0,
110-
[['th', 'td']]: {
110+
[['th', 'td'].toString()]: {
111111
textAlign: 'left',
112112
py: '4px',
113113
pr: '4px',
@@ -143,7 +143,7 @@ export default {
143143
'.operator',
144144
'.entity',
145145
'.url',
146-
]]: {
146+
].toString()]: {
147147
color: 'gray',
148148
},
149149
'.comment': {
@@ -162,10 +162,10 @@ export default {
162162
'.regex',
163163
'.important',
164164
'.variable',
165-
]]: {
165+
].toString()]: {
166166
color: 'purple',
167167
},
168-
[['.atrule', '.attr-value', '.keyword']]: {
168+
[['.atrule', '.attr-value', '.keyword'].toString()]: {
169169
color: 'primary',
170170
},
171171
[[
@@ -175,7 +175,7 @@ export default {
175175
'.char',
176176
'.builtin',
177177
'.inserted',
178-
]]: {
178+
].toString()]: {
179179
color: 'secondary',
180180
},
181181
},

packages/preset-dark/tsconfig.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"compilerOptions": {
3+
"resolveJsonModule": true,
4+
"esModuleInterop": true,
5+
"moduleResolution": "node",
6+
"strict": true
7+
}
8+
}

packages/preset-deep/src/index.js renamed to packages/preset-deep/src/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export default {
107107
my: 4,
108108
borderCollapse: 'separate',
109109
borderSpacing: 0,
110-
[['th', 'td']]: {
110+
[['th', 'td'].toString()]: {
111111
textAlign: 'left',
112112
py: '4px',
113113
pr: '4px',
@@ -143,7 +143,7 @@ export default {
143143
'.operator',
144144
'.entity',
145145
'.url',
146-
]]: {
146+
].toString()]: {
147147
color: 'gray',
148148
},
149149
'.comment': {
@@ -162,10 +162,10 @@ export default {
162162
'.regex',
163163
'.important',
164164
'.variable',
165-
]]: {
165+
].toString()]: {
166166
color: 'purple',
167167
},
168-
[['.atrule', '.attr-value', '.keyword']]: {
168+
[['.atrule', '.attr-value', '.keyword'].toString()]: {
169169
color: 'primary',
170170
},
171171
[[
@@ -175,7 +175,7 @@ export default {
175175
'.char',
176176
'.builtin',
177177
'.inserted',
178-
]]: {
178+
].toString()]: {
179179
color: 'secondary',
180180
},
181181
},

packages/preset-deep/tsconfig.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"compilerOptions": {
3+
"resolveJsonModule": true,
4+
"esModuleInterop": true,
5+
"moduleResolution": "node",
6+
"strict": true
7+
}
8+
}
File renamed without changes.

packages/preset-funk/tsconfig.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"compilerOptions": {
3+
"resolveJsonModule": true,
4+
"esModuleInterop": true,
5+
"moduleResolution": "node",
6+
"strict": true
7+
}
8+
}

packages/preset-future/tsconfig.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"compilerOptions": {
3+
"resolveJsonModule": true,
4+
"esModuleInterop": true,
5+
"moduleResolution": "node",
6+
"strict": true
7+
}
8+
}

0 commit comments

Comments
 (0)