mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-12 22:50:10 +08:00
add clang-format to current toolchain (#23434)
Summary: add `clang-format` toolchain. we have 2558 files need to process in current task. cc cpojer empyrical shergin matthargett Pull Request resolved: https://github.com/facebook/react-native/pull/23434 Differential Revision: D14067789 Pulled By: cpojer fbshipit-source-id: ddf812fc9579068ebb850bacedde6675376f18b7
This commit is contained in:
committed by
Facebook Github Bot
parent
f95876ba8c
commit
d056d756b0
@@ -140,6 +140,8 @@
|
||||
"flow-check-ios": "flow check",
|
||||
"flow-check-android": "flow check --flowconfig-name .flowconfig.android",
|
||||
"lint": "eslint .",
|
||||
"clang-format": "clang-format -i --glob=*/**/*.{h,cpp,m,mm}",
|
||||
"format": "npm run prettier && npm run clang-format",
|
||||
"prettier": "prettier --write \"./**/*.js\" \"./**/*.md\"",
|
||||
"format-check": "prettier --list-different \"./**/*.js\" \"./**/*.md\"",
|
||||
"docker-setup-android": "docker pull reactnativecommunity/react-native-android",
|
||||
@@ -162,6 +164,7 @@
|
||||
"@react-native-community/cli": "^1.1.0",
|
||||
"art": "^0.10.0",
|
||||
"base64-js": "^1.1.2",
|
||||
"connect": "^3.6.5",
|
||||
"create-react-class": "^15.6.3",
|
||||
"escape-string-regexp": "^1.0.5",
|
||||
"event-target-shim": "^1.0.5",
|
||||
@@ -188,6 +191,7 @@
|
||||
"@reactions/component": "^2.0.2",
|
||||
"async": "^2.4.0",
|
||||
"babel-eslint": "9.0.0",
|
||||
"clang-format": "^1.2.4",
|
||||
"coveralls": "^3.0.2",
|
||||
"detox": "9.0.4",
|
||||
"eslint": "5.1.0",
|
||||
|
||||
14
yarn.lock
14
yarn.lock
@@ -1172,6 +1172,11 @@ async-limiter@~1.0.0:
|
||||
resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.0.tgz#78faed8c3d074ab81f22b4e985d79e8738f720f8"
|
||||
integrity sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg==
|
||||
|
||||
async@^1.5.2:
|
||||
version "1.5.2"
|
||||
resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a"
|
||||
integrity sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=
|
||||
|
||||
async@^2.1.4, async@^2.4.0, async@^2.5.0:
|
||||
version "2.6.1"
|
||||
resolved "https://registry.yarnpkg.com/async/-/async-2.6.1.tgz#b245a23ca71930044ec53fa46aa00a3e87c6a610"
|
||||
@@ -1689,6 +1694,15 @@ circular-json@^0.3.1:
|
||||
resolved "https://registry.yarnpkg.com/circular-json/-/circular-json-0.3.3.tgz#815c99ea84f6809529d2f45791bdf82711352d66"
|
||||
integrity sha512-UZK3NBx2Mca+b5LsG7bY183pHWt5Y1xts4P3Pz7ENTwGVnJOUWbRb3ocjvX7hx9tq/yTAdclXm9sZ38gNuem4A==
|
||||
|
||||
clang-format@^1.2.4:
|
||||
version "1.2.4"
|
||||
resolved "https://registry.yarnpkg.com/clang-format/-/clang-format-1.2.4.tgz#4bb4b0a98180428deb093cf20982e9fc1af20b6c"
|
||||
integrity sha512-sw+nrGUp3hvmANd1qF8vZPuezSYQAiXgGBiEtkXTtJnnu6b00fCqkkDIsnRKrNgg4nv6NYZE92ejvOMIXZoejw==
|
||||
dependencies:
|
||||
async "^1.5.2"
|
||||
glob "^7.0.0"
|
||||
resolve "^1.1.6"
|
||||
|
||||
class-utils@^0.3.5:
|
||||
version "0.3.6"
|
||||
resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463"
|
||||
|
||||
Reference in New Issue
Block a user