-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
.prettierrc.js
39 lines (38 loc) · 790 Bytes
/
.prettierrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/**
* @type {import('prettier').Config}
* @see https://prettier.io/docs/en/options.html
*/
const prettierOptions = {
printWidth: 120,
proseWrap: 'always',
semi: false,
singleQuote: true,
useTabs: false,
jsxSingleQuote: false,
plugins: ['prettier-plugin-packagejson'],
overrides: [
{
files: '*.html',
options: {
plugins: ['@shopify/prettier-plugin-liquid'],
parser: 'liquid-html',
singleQuote: false,
liquidSingleQuote: false,
},
},
{
files: ['*.scss', '*.css'],
options: {
singleQuote: false,
printWidth: 80,
},
},
{
files: ['.github/workflows/**/*.yml'],
options: {
proseWrap: 'preserve',
},
},
],
}
module.exports = prettierOptions