mirror of
https://github.com/react/react-native.git
synced 2026-09-28 05:13:06 +08:00
Summary: Pull Request resolved: https://github.com/react/react-native/pull/57537 Changelog: [Internal] Reviewed By: gkz Differential Revision: D111829105 fbshipit-source-id: 3309a22e737f68aca2d8d19f49e56bad955e5377
47 lines
870 B
JavaScript
47 lines
870 B
JavaScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
*/
|
|
|
|
module.exports = {
|
|
arrowParens: 'avoid',
|
|
bracketSameLine: true,
|
|
bracketSpacing: false,
|
|
requirePragma: true,
|
|
singleQuote: true,
|
|
trailingComma: 'all',
|
|
endOfLine: 'lf',
|
|
overrides: [
|
|
{
|
|
files: ['*.code-workspace'],
|
|
options: {
|
|
parser: 'json',
|
|
},
|
|
},
|
|
{
|
|
files: ['*.js', '*.js.flow'],
|
|
options: {
|
|
parser: 'flow',
|
|
},
|
|
},
|
|
{
|
|
files: ['**/__docs__/*.md'],
|
|
options: {
|
|
parser: 'markdown',
|
|
proseWrap: 'always',
|
|
requirePragma: false,
|
|
},
|
|
},
|
|
{
|
|
files: ['*.yml', '*.yaml'],
|
|
options: {
|
|
requirePragma: false,
|
|
},
|
|
},
|
|
],
|
|
};
|