mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-21 21:47:18 +08:00
Disable clang/eslint in front_end/generated
This CL disables formatting within the `generated` directory, which is all code that is programatically generated. Previously we disabled eslint for `protocol.ts`, but now we are being consistent and disabling it (and clang) for all files. I also re-generated the files in the generated folder, so we avoid any confusion if/when the generated scripts get re-run and suddenly the format drastically changes. DISABLE_THIRD_PARTY_CHECK=changing generated files + config Bug: none Change-Id: I714ada8bf7d85020e3be71b35c9db98840bf3ef2 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3755163 Reviewed-by: Philip Pfaffe <pfaffe@chromium.org> Commit-Queue: Jack Franklin <jacktfranklin@chromium.org> Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
This commit is contained in:
committed by
Devtools-frontend LUCI CQ
parent
788bf6c18e
commit
130d2ae03b
@@ -32,4 +32,5 @@ with open(GENERATED_LOCATION, "w+") as f:
|
||||
f.write('// Use of this source code is governed by a BSD-style license that can be\n')
|
||||
f.write('// found in the LICENSE file.\n')
|
||||
f.write('\n')
|
||||
f.write("export const config = %s;\n" % json.dumps(ARIA_PROPERTIES))
|
||||
f.write("export const config = %s;\n" %
|
||||
json.dumps(ARIA_PROPERTIES, sort_keys=True, indent=1))
|
||||
|
||||
@@ -108,7 +108,10 @@ with open(GENERATED_LOCATION, "w+") as f:
|
||||
f.write('// Use of this source code is governed by a BSD-style license that can be\n')
|
||||
f.write('// found in the LICENSE file.\n')
|
||||
f.write('\n')
|
||||
f.write("export const generatedProperties = %s;\n" % json.dumps(properties))
|
||||
f.write("export const generatedProperties = %s;\n" %
|
||||
json.dumps(properties, sort_keys=True, indent=1))
|
||||
# sort keys to ensure entries are generated in a deterministic way to avoid inconsistencies across different OS
|
||||
f.write("export const generatedPropertyValues = %s;\n" % json.dumps(property_values, sort_keys=True))
|
||||
f.write("export const generatedAliasesFor = new Map(%s);\n" % json.dumps(aliases_for))
|
||||
f.write("export const generatedPropertyValues = %s;\n" %
|
||||
json.dumps(property_values, sort_keys=True, indent=1))
|
||||
f.write("export const generatedAliasesFor = new Map(%s);\n" %
|
||||
json.dumps(aliases_for, sort_keys=True, indent=1))
|
||||
|
||||
Reference in New Issue
Block a user