forked from cdek-it/react-native-ui-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.prettierrc.mjs
More file actions
28 lines (27 loc) · 812 Bytes
/
.prettierrc.mjs
File metadata and controls
28 lines (27 loc) · 812 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
const /** @type {import("prettier").Config} */ config = {
printWidth: 80,
tabWidth: 2,
useTabs: false,
semi: false,
singleQuote: true,
trailingComma: 'es5',
arrowParens: 'always',
jsxSingleQuote: true,
bracketSpacing: true,
bracketSameLine: false,
objectWrap: 'collapse',
quoteProps: 'as-needed',
requirePragma: false,
proseWrap: 'always',
overrides: [
{ files: ['*.tsx'], options: { parser: 'babel-ts' } },
{ files: ['*.ts', '*.mts', '*.cts'], options: { parser: 'typescript' } },
{
files: ['*.js', '*.jsx', '*.cjs', '*.mjs'],
options: { parser: 'babel' },
},
{ files: ['*.md'], options: { parser: 'markdown' } },
{ files: ['*.yml'], options: { parser: 'yaml' } },
],
}
export default config