Skip to content

Commit 1765eb9

Browse files
committed
fixup
1 parent fbc35d2 commit 1765eb9

File tree

2 files changed

+1
-26
lines changed

2 files changed

+1
-26
lines changed

const styledSystemAttributes = ['width',.js

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/rules/no-deprecated-colors.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ const deprecations = require('@primer/primitives/dist/deprecations/colors')
22
const traverse = require('eslint-traverse')
33
const {isImportedFrom} = require('../utils/isImportedFrom')
44
const {isPrimerComponent} = require('../utils/isPrimerComponent')
5-
const {getVariableDeclaration} = require('../utils/getVariableDeclaration')
65

76
const styledSystemColorProps = ['color', 'bg', 'backgroundColor', 'borderColor', 'textShadow', 'boxShadow']
87

@@ -177,7 +176,7 @@ function replaceDeprecatedColor(
177176
node,
178177
message: `"${transformName(deprecatedName)}" is deprecated. Use "${transformName(replacement)}" instead.`,
179178
fix(fixer) {
180-
// return fixer.replaceText(node, transformReplacementValue(transformName(replacement)))
179+
return fixer.replaceText(node, transformReplacementValue(transformName(replacement)))
181180
}
182181
})
183182
}

0 commit comments

Comments
 (0)