mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 00:20:04 +01:00
Prettier 3.3 (which we're on) should support modern flow features according to https://prettier.io/blog/2024/06/01/3.3.0
35 lines
621 B
JavaScript
35 lines
621 B
JavaScript
'use strict';
|
|
|
|
const {esNextPaths} = require('./scripts/shared/pathsByLanguageVersion');
|
|
|
|
module.exports = {
|
|
bracketSpacing: false,
|
|
singleQuote: true,
|
|
bracketSameLine: true,
|
|
trailingComma: 'es5',
|
|
printWidth: 80,
|
|
parser: 'flow',
|
|
arrowParens: 'avoid',
|
|
overrides: [
|
|
{
|
|
files: ['*.code-workspace'],
|
|
options: {
|
|
parser: 'json-stringify',
|
|
},
|
|
},
|
|
{
|
|
files: esNextPaths,
|
|
options: {
|
|
trailingComma: 'all',
|
|
},
|
|
},
|
|
{
|
|
files: ['*.ts', '*.tsx'],
|
|
options: {
|
|
trailingComma: 'all',
|
|
parser: 'typescript',
|
|
},
|
|
},
|
|
],
|
|
};
|