Skip to content

Commit

Permalink
Merge pull request #155 from double-beep/add-tag
Browse files Browse the repository at this point in the history
feat: add support for the `@tag` header
  • Loading branch information
Yash-Singh1 authored Aug 3, 2024
2 parents 1c6455b + a6f4460 commit 79fdb7d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/data/compat-headers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ export const compatMap: {
{ type: 'tampermonkey', versionConstraint: '>=3.8' },
{ type: 'violentmonkey', versionConstraint: '>=2.1.6.2' }
],
tag: [{ type: 'tampermonkey', versionConstraint: '>=5.3' }],

// OpenUserJS
collaborator: [],
Expand Down
10 changes: 10 additions & 0 deletions tests/lib/rules/compat-headers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,16 @@ ruleTester.run('compat-headers', compatHeaders, {
tampermonkey: '*'
}
}
},
{
code: `// ==UserScript==
// @tag productivity
// ==/UserScript==`,
settings: {
userscriptVersions: {
tampermonkey: '5.3.2'
}
}
}
],
invalid: [
Expand Down

0 comments on commit 79fdb7d

Please sign in to comment.