Skip to content
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

[qa] Fix linting erros #112 #121

Merged
merged 4 commits into from
Jun 13, 2022
Merged

[qa] Fix linting erros #112 #121

merged 4 commits into from
Jun 13, 2022

Conversation

totallynotvaishnav
Copy link
Member

closes #112

Copy link
Member

@nemesifier nemesifier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make the linting rules similar to https://github.com/openwisp/openwisp-wifi-login-pages to maintain consitency across the different openwisp JS modules.

We need also a CI build, for that I created #123.

@totallynotvaishnav
Copy link
Member Author

I'm on it.

Copy link
Member

@nemesifier nemesifier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good progress @totallynotvaishnav! 👍

Don't we need .babelrc too? It may not have to be exactly as wifi-login-pages but I think having it similar should be good.

Also, what about .prettierrc and .prettierignore?

.editorconfig Outdated Show resolved Hide resolved
.eslintrc.js Outdated
'no-underscore-dangle': 'off',
'no-plusplus': 'off',
'no-param-reassign': 'off',
'class-methods-use-this': 'off',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why these? Are we sure these are good? It doesn't look so good, are these needed because there's some code which needs this? If yes, please create a separate issue to fix it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now, pretty much most of the code violates these rules. To fix these we will have to rewrite most of the code.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please open an issue for this so we can analyze it, it's not great to have bad practices allowed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will do.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for the moment turn the rules so that the build passes and we can work on the changes required to have these rules off when working on the dedicated issue. Right now the priority is to have the build running fine so it's a first checkpoint for any review and will make our work easier (especially for mentors).

// : _this.utils.nodeInfo(params.data.node);
// }
// }
// }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting! I think we didn't see this commented code here before, could you open a new issue to fix this? Showing info on hover is pretty importantin some cases.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure I will open an issue.

@totallynotvaishnav
Copy link
Member Author

Don't we need .babelrc too? It may not have to be exactly as wifi-login-pages but I think having it similar should be good.

Also, what about .prettierrc and .prettierignore?

I will add it in #123.

Copy link
Member

@nemesifier nemesifier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rebase this on the latest master, fix the conflict and let's make sure the CI build passes.

@totallynotvaishnav
Copy link
Member Author

#129 needs to be merged before this. Maybe we can do both tasks in this PR.

.eslintrc.js Outdated
'no-underscore-dangle': 'off',
'no-plusplus': 'off',
'no-param-reassign': 'off',
'class-methods-use-this': 'off',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for the moment turn the rules so that the build passes and we can work on the changes required to have these rules off when working on the dedicated issue. Right now the priority is to have the build running fine so it's a first checkpoint for any review and will make our work easier (especially for mentors).

@@ -39,23 +38,24 @@ class NetJSONGraphUpdate extends NetJSONGraphUtil {
}
};

// eslint-disable-next-line consistent-return
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've disabled some rules locally for the build to pass.

@nemesifier nemesifier merged commit 7139b21 into gsoc22 Jun 13, 2022
@nemesifier nemesifier deleted the issues/112-fix-linting branch June 13, 2022 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants