You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What kind of business use case are you trying to solve? What are your requirements?
Currently, opensearch-js uses Standard JS as lint check. But it seems not work very well. For example, it misses eslint:no-dupe-else-if and eslint:no-unused-vars and some trivial formats. More research: I checked standard rules here . In 16.x (can’t find 16.0.3 from a quick research), it does not contain eslint:no-dupe-else-if but it does contain eslint:no-unused-vars. I think these two are not trivial checks.
What is the problem? What is preventing you from meeting the requirements?
Standard JS not working well
What are you proposing? What do you suggest we do to solve the problem or improve the existing situation?
I am proposing to change from standard JS to eslint+prettier to make the lint function and make it a bit restrict for future maintain and test purpose.
What are your assumptions or prerequisites?
NA
What are remaining open questions?
NA
The text was updated successfully, but these errors were encountered:
ananzh
added a commit
to ananzh/opensearch-js-1
that referenced
this issue
May 23, 2022
* add prettier and apply prettier
* add eslint and its config; apply eslint
* modify package.json script
* turn off no-unused-vars and no-dupe-else-if. will fix them
in separate PRs
* modify workflow to run yarn lint for restricter format check
* remove standard
Issue Resolved:
opensearch-project#243
Signed-off-by: Anan Zhuang <[email protected]>
* add prettier and apply prettier
* add eslint and its config; apply eslint
* modify package.json script
* turn off no-unused-vars and no-dupe-else-if. will fix them
in separate PRs
* modify workflow to run yarn lint for restricter format check
* remove standard
Issue Resolved:
opensearch-project#243
Signed-off-by: Anan Zhuang <[email protected]>
remove yarn from devDependency and add it as engine
Signed-off-by: Ubuntu <[email protected]>
fix merge conflict
Signed-off-by: Anan Zhuang <[email protected]>
What kind of business use case are you trying to solve? What are your requirements?
Currently, opensearch-js uses Standard JS as lint check. But it seems not work very well. For example, it misses eslint:no-dupe-else-if and eslint:no-unused-vars and some trivial formats. More research: I checked standard rules here . In 16.x (can’t find 16.0.3 from a quick research), it does not contain eslint:no-dupe-else-if but it does contain eslint:no-unused-vars. I think these two are not trivial checks.
What is the problem? What is preventing you from meeting the requirements?
Standard JS not working well
What are you proposing? What do you suggest we do to solve the problem or improve the existing situation?
I am proposing to change from standard JS to eslint+prettier to make the lint function and make it a bit restrict for future maintain and test purpose.
What are your assumptions or prerequisites?
NA
What are remaining open questions?
NA
The text was updated successfully, but these errors were encountered: