-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add id-length
ESLint rule
#1422
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is huge @ehmicky thanks.
Added a few comments
src/commands/dev/index.js
Outdated
@@ -92,7 +92,7 @@ async function startFrameworkServer({ settings, log, exit }) { | |||
return ps | |||
} | |||
|
|||
const getAddonsUrlsAndAddEnvVariablesToProcessEnv = async ({ api, site, flags }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This name is intentionally long since the function does multiple things (which it shouldn't).
I'm going to refactor it soon, probably as a part of #1331
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -16,7 +16,7 @@ exports.handler = async function (event) { | |||
}, | |||
user_metadata: { | |||
...user.user_metadata, // append current user metadata | |||
custom_data_from_function: 'hurray this is some extra metadata', | |||
custom_data_from_func: 'hurray this is some extra metadata', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if we want to keep the original due to https://www.netlify.com/blog/2019/02/21/the-role-of-roles-and-how-to-set-them-in-netlify-identity/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point 👍
Answered this in the PR for Netlify Build, let's solve this first: netlify/build#1982 (comment) |
57ae7a5
to
d4c2970
Compare
Thanks @erezrokah! |
d4c2970
to
7af8987
Compare
Rebased. Does this look good @erezrokah ? |
This adds the
id-length
ESLint rule.See also netlify/build#1982
Single-letter variable names makes reading code less clear.