Rule: file-name-casing

Enforces a consistent file naming convention

Rationale

Helps maintain a consistent style across a file hierarchy

Config

One of the following arguments must be provided:

  • camel-case: File names must be camel-cased: fileName.ts.
  • pascal-case: File names must be Pascal-cased: FileName.ts.
  • kebab-case: File names must be kebab-cased: file-name.ts.
Config examples
"file-name-casing": [true, "camel-case"]
"file-name-casing": [true, "pascal-case"]
"file-name-casing": [true, "kebab-case"]
Schema
{
  "type": "array",
  "items": [
    {
      "type": "string",
      "enum": [
        "camel-case",
        "pascal-case",
        "kebab-case"
      ]
    }
  ]
}