-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathprettier.config.mjs
More file actions
31 lines (29 loc) · 889 Bytes
/
prettier.config.mjs
File metadata and controls
31 lines (29 loc) · 889 Bytes
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
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
/**
* @see https://prettier.io/docs/configuration
* @type {import("prettier").Config}
*/
const config = {
printWidth: 120,
tabWidth: 4,
endOfLine: 'auto',
useTabs: false,
semi: true,
singleQuote: true,
trailingComma: 'all',
bracketSpacing: true,
arrowParens: 'always',
plugins: ['prettier-plugin-organize-imports'],
overrides: [
{
files: ['*.md', '*.json'],
options: {
tabWidth: 2,
},
},
],
};
export default config;