2024-02-28 08:45:08 -08:00
|
|
|
|
# Ignore everything
|
|
|
|
|
|
# We are making prettier opt in for the moment while we work on the rollout
|
|
|
|
|
|
# !*/ means do not ignore recursive directories
|
|
|
|
|
|
# Together these work togather to make nothing opted-in by default
|
|
|
|
|
|
*
|
|
|
|
|
|
!*/
|
|
|
|
|
|
|
2024-04-03 16:12:53 -07:00
|
|
|
|
# Do not ignore markdown and yaml
|
|
|
|
|
|
# We are only going to do markdown and yaml file formatting for now
|
2024-02-28 08:45:08 -08:00
|
|
|
|
# Hopefully we will use prettier for more file types in the future
|
|
|
|
|
|
!*.md
|
2024-04-03 16:12:53 -07:00
|
|
|
|
!*.yml
|
|
|
|
|
|
!*.yaml
|
2025-04-09 14:11:16 -07:00
|
|
|
|
!*.idl
|
2025-08-21 10:17:44 -07:00
|
|
|
|
!*.js
|
2024-02-05 10:11:10 -08:00
|
|
|
|
|
2025-08-22 10:37:09 -07:00
|
|
|
|
# Ignore files that fail after format
|
|
|
|
|
|
jstests/noPassthrough/js_exceptions.js
|
|
|
|
|
|
jstests/noPassthrough/network/client_metadata_slowlog.js
|
|
|
|
|
|
jstests/noPassthrough/network/client_metadata_slowlog_rs.js
|
2025-08-29 18:49:06 -07:00
|
|
|
|
# TODO(SERVER-110065): Fix these tests so that the formatting on them
|
|
|
|
|
|
# doesn't cause them to fail
|
|
|
|
|
|
jstests/sharding/rs_stepdown_and_pooling.js
|
|
|
|
|
|
jstests/sharding/migration_coordinator_abort_failover.js
|
|
|
|
|
|
jstests/sharding/resharding_commit_monitor_repl_lag.js
|
|
|
|
|
|
jstests/sharding/refresh_sessions.js
|
|
|
|
|
|
jstests/sharding/query/agg/agg_orphan_filtering_renamed_shardkey.js
|
|
|
|
|
|
jstests/sharding/safe_secondary_reads_single_migration_suspend_range_deletion.js
|
|
|
|
|
|
jstests/libs/shardingtest.js
|
2025-08-22 10:37:09 -07:00
|
|
|
|
|
2025-05-06 11:51:43 -04:00
|
|
|
|
# Opt in specific JS file paths
|
|
|
|
|
|
!*.mjs
|
|
|
|
|
|
|
2024-09-02 09:07:43 +01:00
|
|
|
|
# Ignore all golden test output files, which are machine-generated by the "golden"
|
|
|
|
|
|
# jstests. We would have to be able to run prettier (via bazel) during a jstest
|
|
|
|
|
|
# in order to format the "actual" output of the test so that we can safely diff it
|
|
|
|
|
|
# against the expected output, or accept the new output without needing to reformat.
|
|
|
|
|
|
# However, due to difficulties in running bazel within a jstest on evergreen, we
|
|
|
|
|
|
# will avoid formatting these files for now (see SERVER-93772).
|
2024-07-23 09:16:24 +01:00
|
|
|
|
jstests/*golden*/expected_output/*
|
|
|
|
|
|
|
2024-02-05 10:11:10 -08:00
|
|
|
|
# Ignore all template files
|
|
|
|
|
|
# When we eventually enable prettier on javascript these files are invalid and should be ignored
|
|
|
|
|
|
**/*.tpl.*
|
|
|
|
|
|
|
|
|
|
|
|
# Ignore .yy files since prettier seems to think these are json files
|
|
|
|
|
|
**/*.yy
|
|
|
|
|
|
|
2024-04-03 16:12:53 -07:00
|
|
|
|
# Ignore generated pnpm lock file
|
|
|
|
|
|
pnpm-lock.yaml
|
|
|
|
|
|
|
|
|
|
|
|
# Ignore version expansions that are created in evergreen
|
|
|
|
|
|
version_expansions.yml
|
|
|
|
|
|
|
2024-02-28 08:45:08 -08:00
|
|
|
|
# Ignore all formatting in third_party/*
|
|
|
|
|
|
src/third_party
|
2024-07-09 12:32:16 -07:00
|
|
|
|
|
|
|
|
|
|
# Ignore anything in the build output directories
|
|
|
|
|
|
build
|
2025-04-09 12:09:34 -05:00
|
|
|
|
bazel-*
|
|
|
|
|
|
|
|
|
|
|
|
# Streams specific
|
2025-08-21 10:17:44 -07:00
|
|
|
|
src/mongo/db/modules/enterprise/src/streams/third_party/mongocxx/dist
|