-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprettier.config.js
39 lines (38 loc) · 1.25 KB
/
prettier.config.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
/*
* Copyright © 2025, RTE (http://www.rte-france.com)
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
// @ts-check
/**
* @see https://prettier.io/docs/configuration
* @type {import("prettier").Config}
* @todo Pass this file in typescript when the IDEs plugins support it<ul>
* <li>https://github.com/prettier/prettier-vscode/issues/3623</li>
* <li>https://youtrack.jetbrains.com/issue/WEB-71713/Support-for-prettier.config.ts</li></ul>
*/
const config = {
trailingComma: 'es5',
tabWidth: 4,
printWidth: 120,
singleQuote: true,
keySeparator: '=', // format of separator in .properties
plugins: ['prettier-plugin-properties', 'prettier-plugin-glsl'],
overrides: [
{
files: ['.env', '.env.*'],
options: { parser: 'dot-properties' },
},
{
// .frag files are recognized as JavaScript files by default
files: ['*.frag'],
options: { parser: 'glsl-parser' },
},
{
files: ['.github/**/*'],
options: { tabWidth: 2 },
},
],
};
export default config;