-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathprettier.config.js
27 lines (21 loc) · 953 Bytes
/
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
// @ts-check
/** @type {import('prettier').Options} */
const config = {
// https://github.com/airbnb/javascript/tree/eslint-config-airbnb-v16.1.0#strings--quotes
// https://github.com/prettier/prettier/issues/4102
//
// ["Holding down the shift key every time you want a string kinda stinks. Your carpal tunnel will
// thank you for using single quotes."](https://github.com/airbnb/javascript/issues/269#issuecomment-107319162)
singleQuote: true,
// https://github.com/airbnb/javascript/tree/eslint-config-airbnb-v16.1.0#whitespace--max-len
printWidth: 100,
// https://github.com/prettier/prettier/issues/68
trailingComma: 'none',
// https://github.com/prettier/prettier/issues/6929
arrowParens: 'avoid',
// https://github.com/prettier/plugin-xml/blob/v2.2.0/README.md#whitespace
// FIXME https://github.com/prettier/prettier/issues/5322
// @ts-ignore
xmlWhitespaceSensitivity: 'ignore'
};
module.exports = config;