Exempt the generated policy asset from prettier

focus_owner/assets/policy.json is rendered by json.dumps, which cannot
reproduce prettier's single-line-short-array style, so every regeneration
would reintroduce a formatting diff. Format pubspec.yaml, which is
hand-edited and has no such conflict.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AwepyL5Lxs5QKbKkMpxxxL
This commit is contained in:
Krzysztof Rudnicki 2026-08-05 09:40:44 +02:00
parent e3d5e1dd18
commit c299f95a9b
2 changed files with 6 additions and 2 deletions

View File

@ -15,3 +15,8 @@ node_modules/
# `accepts bare JPK payload and bare JWS token`, whose regex matches
# `"data":"..."` with no space after the colon.
billsplit/test/fixtures/
# Generated by `python3 -m python_pkg.focus_policy` from phone_focus_mode/config.sh.
# json.dumps cannot reproduce prettier's single-line-short-array style, so
# formatting it here would conflict with every regeneration.
focus_owner/assets/policy.json

View File

@ -2,7 +2,7 @@ name: focus_owner
description: "A new Flutter project."
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
publish_to: "none" # Remove this line if you wish to publish to pub.dev
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
@ -51,7 +51,6 @@ dev_dependencies:
# The following section is specific to Flutter packages.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.