@rhds/tokens
Advanced tools
Comparing version 2.1.0-next.9 to 2.1.0-next.10
{ | ||
"name": "@rhds/tokens", | ||
"version": "2.1.0-next.9", | ||
"version": "2.1.0-next.10", | ||
"description": "Red Hat Design System Tokens", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -24,2 +24,3 @@ import { dirname, sep } from 'node:path'; | ||
const migrations = new Map(Object.entries(opts?.migrations ?? {})); | ||
const allowed = new Set(opts?.migrations ?? []); | ||
root.walk(node => { | ||
@@ -35,2 +36,3 @@ if (node.type === 'decl') { | ||
&& !tokens.has(value) | ||
&& !allowed.has(value) | ||
|| migrations.has(value)) { | ||
@@ -63,2 +65,2 @@ const message = `Expected ${value} to be a known token name`; | ||
export default ruleFunction; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm8tdW5rbm93bi10b2tlbi1uYW1lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsibm8tdW5rbm93bi10b2tlbi1uYW1lLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE9BQU8sRUFBRSxPQUFPLEVBQUUsR0FBRyxFQUFFLE1BQU0sV0FBVyxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxjQUFjLENBQUM7QUFFdEMsT0FBTyxTQUFTLE1BQU0sV0FBVyxDQUFDO0FBQ2xDLE9BQU8sTUFBTSxNQUFNLHNCQUFzQixDQUFDO0FBRTFDLE1BQU0sUUFBUSxHQUFHLDRCQUE0QixDQUFDO0FBRTlDLE1BQU0sUUFBUSxHQUFHLFNBQVMsQ0FBQyxLQUFLLENBQUMsWUFBWSxDQUFDLFFBQVEsRUFBRTtJQUN0RCxRQUFRLEVBQUUsY0FBYztDQUN6QixDQUFDLENBQUM7QUFFSCxNQUFNLElBQUksR0FBRztJQUNYLEdBQUcsRUFBRSwrR0FBK0c7SUFDcEgsT0FBTyxFQUFFLElBQUk7Q0FDZ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