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

@transferwise/eslint-plugin

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@transferwise/eslint-plugin - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# v0.2.1
## Fix getServerSideProps rule for unnamed default exports
# v0.2.0

@@ -2,0 +6,0 @@

2

package.json
{
"name": "@transferwise/eslint-plugin",
"version": "0.2.0",
"version": "0.2.1",
"description": "TransferWise ESLint plugin",

@@ -5,0 +5,0 @@ "main": "./index.js",

@@ -8,2 +8,3 @@ # @transferwise/eslint-plugin

- form-has-method-attribute
- get-server-side-props-is-in-pages-directory

@@ -10,0 +11,0 @@ ## Writing a custom rule

@@ -26,3 +26,3 @@ /**

function checkExportedName(node) {
const name = node.name;
const name = node?.name;

@@ -29,0 +29,0 @@ if (name !== 'getServerSideProps') {

@@ -31,2 +31,6 @@ /**

},
{
code: 'export default function() {}',
filename: 'pages/[someNestedDirectory]/index.js',
},
],

@@ -33,0 +37,0 @@

Sorry, the diff of this file is not supported yet

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