react/.prettierrc.js

22 lines
385 B
JavaScript

'use strict';
const {esNextPaths} = require('./scripts/shared/pathsByLanguageVersion');
module.exports = {
bracketSpacing: false,
singleQuote: true,
jsxBracketSameLine: true,
trailingComma: 'es5',
printWidth: 80,
parser: 'flow',
arrowParens: 'avoid',
overrides: [
{
files: esNextPaths,
options: {
trailingComma: 'all',
},
},
],
};