Skip to content

Commit c074b4f

Browse files
authored
Merge pull request #3 from Guiqft/prettier-config
Prettier Config
2 parents 46b6b34 + f469ca3 commit c074b4f

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"trailingComma": "es5",
3+
"useTabs": true,
4+
"semi": true,
5+
"singleQuote": true,
6+
"printWidth": 120
7+
}

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ export default defineInterface({
3030
interface: 'boolean',
3131
width: 'half',
3232
},
33-
}
33+
},
3434
],
3535
});

src/interface.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default defineComponent({
6666
}
6767
6868
function checkFieldInTemplate(field: string) {
69-
const matches = props.template.match(/{{.*?}}/g)
69+
const matches = props.template.match(/{{.*?}}/g);
7070
return (matches || []).some((m) => m.includes(field));
7171
}
7272

src/operations.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Ref } from "vue";
1+
import { Ref } from 'vue';
22

33
export function parseExpression(exp: string, values: Ref | undefined): any {
44
if (values) {
@@ -86,7 +86,7 @@ function parseOp(exp: string) {
8686
op,
8787
a: innerExp,
8888
b: null,
89-
}
89+
};
9090
}
9191
return null;
9292
}

0 commit comments

Comments
 (0)