eslint-plugin-factorial
Advanced tools
Comparing version 2.0.6 to 2.0.7
{ | ||
"name": "eslint-plugin-factorial", | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
/** @type {import('eslint').Rule.RuleModule} */ | ||
module.exports = { | ||
create(context) { | ||
const fileName = context.getFilename() | ||
const reportWarning = (node) => { | ||
@@ -14,3 +16,5 @@ context.report({ | ||
JSXOpeningElement: function (node) { | ||
if (node.name.type === 'JSXIdentifier' && node.name.name.match(/^[a-z]/)) { | ||
const isDesignSystem = fileName.includes('design-system') | ||
if (!isDesignSystem && node.name.type === 'JSXIdentifier' && node.name.name.match(/^[a-z]/)) { | ||
reportWarning(node) | ||
@@ -17,0 +21,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12748
314