18 lines
640 B
JavaScript
18 lines
640 B
JavaScript
/** @type {import('prettier').Config} */
|
|
module.exports = {
|
|
arrowParens: 'always',
|
|
// Prettier might give an "unknown option" warning, however "editorconfig" is a valid option, see:
|
|
// http://json.schemastore.org/prettierrc
|
|
// https://prettier.io/docs/en/configuration.html#configuration-schema
|
|
editorconfig: true, // see .editorconfig
|
|
endOfLine: 'auto', // see .editorconfig
|
|
bracketSameLine: false,
|
|
jsxSingleQuote: true,
|
|
printWidth: 100, // this isn't like max-len, it's a soft target
|
|
semi: true,
|
|
singleQuote: true,
|
|
tabWidth: 2, // see .editorconfig
|
|
trailingComma: 'all',
|
|
useTabs: false // see .editorconfig
|
|
};
|