Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 377 Bytes

no-dup-keywords.md

File metadata and controls

33 lines (27 loc) · 377 Bytes

Enforce not having duplicate keywords in package.json

Prevents having duplicate keywords in the keywords field in package.json.

Fail

{
  "name": "foo",
  "keywords": [
    "foo",
    "bar",
    "unicorn",
    "foo",
    "rainbow"
  ]
}

Pass

{
  "name": "foo",
  "keywords": [
    "foo",
    "bar",
    "unicorn",
    "rainbow"
  ]
}