Skip to content

Commit

Permalink
Document the lowerCamelCase in a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lexidor authored Sep 19, 2022
1 parent 23a6da8 commit 2c3e996
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/__Private/LintRunConfig.hack
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ use type Facebook\HHAST\Linter;

final class LintRunConfig {

// Use `lowerCamelCase` for shape key names.
const type TOverride = shape(
// Which files this override applies to (uses `fnmatch()`)
'patterns' => vec<string>,
Expand All @@ -26,6 +27,9 @@ final class LintRunConfig {
?'disableAllLinters' => bool,
?'linterConfigs' => dict<string, dynamic>,
);

// Use `lowerCamelCase` for shape key names.
// The configuration file uses `lowerCamelCase` and being consistent is preferred.
const type TConfigFile = shape(
// Where to lint, eg '[ "src/", "codegen/", "tests/" ]
'roots' => vec<string>,
Expand Down

0 comments on commit 2c3e996

Please sign in to comment.