mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 00:20:04 +01:00
Updates the prettier config to format all `.ts` and `.tsx` files in the repo using the existing defaults and removing overrides. The first commit in this PR contains the config changes, the second is just the result of running `yarn prettier-all`.
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',
|
|
},
|
|
},
|
|
],
|
|
};
|