Skip to content

Commit 90ca711

Browse files
committed
update and organize prettier rules
1 parent 3243707 commit 90ca711

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

.prettierrc.js

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
module.exports = {
2+
arrowParens: 'always',
3+
bracketSpacing: true,
4+
endOfLine: 'lf',
5+
htmlWhitespaceSensitivity: 'strict',
6+
jsxBracketSameLine: false,
7+
jsxSingleQuote: true,
28
printWidth: 80,
3-
tabWidth: 2,
4-
useTabs: false,
9+
proseWrap: 'never',
10+
quoteProps: 'as-needed',
511
semi: false,
612
singleQuote: true,
13+
tabWidth: 2,
714
trailingComma: 'es5',
8-
bracketSpacing: true,
9-
jsxBracketSameLine: false,
10-
arrowParens: 'always',
11-
proseWrap: 'never',
12-
htmlWhitespaceSensitivity: 'strict',
13-
endOfLine: 'lf',
15+
useTabs: false,
16+
vueIndentScriptAndStyle: false,
1417
}

src/components/_base-link.unit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const mountBaseLink = (options = {}) => {
66
RouterLink: {
77
functional: true,
88
render(h, { slots, data }) {
9-
return <a data-router-link="true">{slots().default}</a>
9+
return <a data-router-link='true'>{slots().default}</a>
1010
},
1111
},
1212
},

src/components/nav-bar-routes.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default {
2424
// root node.
2525
return props.routes.map((route) => (
2626
<BaseLink
27-
tag="li"
27+
tag='li'
2828
key={route.name}
2929
to={route}
3030
exact-active-class={$style.active}

0 commit comments

Comments
 (0)