Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@reverecre/eslint-plugin-fontawesome

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@reverecre/eslint-plugin-fontawesome - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

1

lib/rules/shakeable-imports.js

@@ -61,2 +61,3 @@ /**

messageId: 'badImport',
fix: (fixer) => fixer.replaceText(node, generateFixedImports(node)),
suggest: [

@@ -63,0 +64,0 @@ {

2

package.json
{
"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 @@ {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc