Skip to content

Latest commit

 

History

History
63 lines (52 loc) · 1.15 KB

prefer-lowercase-title.md

File metadata and controls

63 lines (52 loc) · 1.15 KB

Enforce lowercase titles (vitest/prefer-lowercase-title)

⚠️ This rule warns in the 🌐 all config.

🔧 This rule is automatically fixable by the --fix CLI option.

Rule Details

Examples of incorrect code for this rule:

test('It works', () => {
	// ...
})

Examples of correct code for this rule:

test('it works', () => {
	// ...
})

Options

{
   "type":"object",
   "properties":{
      "ignore":{
         "type":"array",
         "items":{
            "enum":[
               "describe",
               "test",
               "it"
            ]
         },
         "additionalProperties":false
      },
      "allowedPrefixes":{
         "type":"array",
         "items":{
            "type":"string"
         },
         "additionalItems":false
      },
      "ignoreTopLevelDescribe":{
         "type":"boolean",
         "default":false
      },
      "lowercaseFirstCharacterOnly":{
         "type":"boolean",
         "default":true
      }
   },
   "additionalProperties":false
}