Skip to content

New Rule: no-invalid-names #203

Open
@bmish

Description

Disallow unwanted module/test string names.

  • No leading/trailing spaces (autofixable)
  • No empty strings
  • No missing name (ava/test-title)
  • No non-string values (numbers, objects, etc)
  • No strings starting/ending in qunit delimiters (> or :)
  • We could also allow a regexp pattern option to be passed to this rule defining the required format (ava/test-title-format)

A few disallowed examples:

module(' Foo Bar @unit  ', function () {});
test(' it does foo ', function () {});

Related: qunit/no-identical-names

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions