@transferwise/eslint-plugin
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -0,1 +1,5 @@ | ||
# v0.2.1 | ||
## Fix getServerSideProps rule for unnamed default exports | ||
# v0.2.0 | ||
@@ -2,0 +6,0 @@ |
{ | ||
"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
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
11012
222
17