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

@telefonica/eslint-plugin-import

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@telefonica/eslint-plugin-import - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2-beta0

__tests__/import-react-test.js

9

package.json
{
"name": "@telefonica/eslint-plugin-import",
"version": "1.0.1",
"version": "1.0.2-beta0",
"description": "eslint plugin with some rules regarding imports",
"main": "index.js",
"scripts": {
"test": "jest"
},
"keywords": [

@@ -22,3 +25,7 @@ "eslint",

"eslint": ">=7"
},
"devDependencies": {
"eslint": "^8.43.0",
"jest": "^29.5.0"
}
}

5

rules/import-react.js

@@ -24,6 +24,3 @@ module.exports = {

) {
return fixer.replaceTextRange(
[node.loc.start.column, node.loc.end.column],
"import * as React from 'react';"
);
return fixer.replaceText(node.specifiers[0], '* as React');
}

@@ -30,0 +27,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