We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd14594 commit 0a649ebCopy full SHA for 0a649eb
src/rules/no-deprecated-colors.js
@@ -11,8 +11,11 @@ module.exports = {
11
create(context) {
12
return {
13
JSXOpeningElement(node) {
14
+ const options = context.options[0] || {}
15
+ const ignoreImport = options.ignoreImport || false
16
+
17
// Skip if component was not imported from @primer/components
- if (!isPrimerComponent(node.name, context.getScope(node))) {
18
+ if (!ignoreImport && !isPrimerComponent(node.name, context.getScope(node))) {
19
return
20
}
21
0 commit comments