@reverecre/eslint-plugin-fontawesome
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -61,2 +61,3 @@ /** | ||
messageId: 'badImport', | ||
fix: (fixer) => fixer.replaceText(node, generateFixedImports(node)), | ||
suggest: [ | ||
@@ -63,0 +64,0 @@ { |
{ | ||
"name": "@reverecre/eslint-plugin-fontawesome", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Ensures proper usage of Font Awesome imports", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -40,2 +40,3 @@ /* eslint-disable node/no-unpublished-require */ | ||
code: `import { faCoffee } from '@fortawesome/free-solid-svg-icons';`, | ||
output: `import { faCoffee } from '@fortawesome/free-solid-svg-icons/faCoffee';`, | ||
errors: [ | ||
@@ -55,2 +56,3 @@ { | ||
code: `import { faCoffee, faTimes } from '@fortawesome/free-solid-svg-icons';`, | ||
output: `import { faCoffee } from '@fortawesome/free-solid-svg-icons/faCoffee';\nimport { faTimes } from '@fortawesome/free-solid-svg-icons/faTimes';`, | ||
errors: [ | ||
@@ -70,2 +72,3 @@ { | ||
code: `import { faCoffee as coffeeIcon } from '@fortawesome/free-solid-svg-icons';`, | ||
output: `import { faCoffee as coffeeIcon } from '@fortawesome/free-solid-svg-icons/faCoffee';`, | ||
errors: [ | ||
@@ -85,2 +88,3 @@ { | ||
code: `import { faCoffee } from '@fortawesome/free-solid-svg-icons';`, | ||
output: `import { faCoffee } from '@fortawesome/free-solid-svg-icons/faCoffee';`, | ||
errors: [ | ||
@@ -100,2 +104,3 @@ { | ||
code: `import { faCoffee, faTimes } from '@fortawesome/free-solid-svg-icons';`, | ||
output: `import { faCoffee } from '@fortawesome/free-solid-svg-icons/faCoffee';\nimport { faTimes } from '@fortawesome/free-solid-svg-icons/faTimes';`, | ||
errors: [ | ||
@@ -115,2 +120,3 @@ { | ||
code: `import { faCoffee as coffeeIcon } from '@fortawesome/free-solid-svg-icons';`, | ||
output: `import { faCoffee as coffeeIcon } from '@fortawesome/free-solid-svg-icons/faCoffee';`, | ||
errors: [ | ||
@@ -117,0 +123,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
11129
222