forked from codesandbox/codesandbox-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
23 lines (20 loc) · 657 Bytes
/
index.ts
File metadata and controls
23 lines (20 loc) · 657 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import DEFAULT_PRETTIER_CONFIG from '../../../prettify-default-config';
import { ConfigurationFile } from '../types';
const config: ConfigurationFile = {
title: '.prettierrc',
type: 'prettier',
description: 'Defines how all files will be prettified by Prettier.',
moreInfoUrl: 'https://prettier.io/docs/en/configuration.html',
generateFileFromState: prettierConfig =>
JSON.stringify(
{
...DEFAULT_PRETTIER_CONFIG,
...(prettierConfig || {}),
},
null,
2
),
schema:
'https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/prettierrc.json',
};
export default config;