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

[lint] Add envs and globals #1255

Merged
merged 1 commit into from
Sep 6, 2022
Merged

Conversation

dayo09
Copy link
Contributor

@dayo09 dayo09 commented Sep 2, 2022

This commit adds envs and globals to configurations to remove wrong errors.

NOTE

"node" in "env" <-- Removes 'process' is undefined error
"mocha" in "env" <-- Removes 'test'/'suites' is undefined error
"Thenable" in "globals" <-- Removes 'Thenables' is undefined error. Thenable is defined in node_modules/@types/vscode
"NodeJS" in "gloabls" <-- Removes 'NodeJS' is undefined error. Ref Chatie/eslint-config#45

ONE-vscode-DCO-1.0-Signed-off-by: dayo09 [email protected]

For #1253 #587

This commit adds envs and globals to configurations to remove wrong errors.

NOTE

"node" in "env"  <-- Removes 'process' is undefined error
"mocha" in "env" <-- Removes 'test'/'suites' is undefined error
"Thenable" in "globals" <-- Removes 'Thenables' is undefined error. Thenable is defined in node_modules/@types/vscode
"NodeJS" in "gloabls" <-- Removes 'NodeJS' is undefined error. Ref Chatie/eslint-config#45

ONE-vscode-DCO-1.0-Signed-off-by: dayo09 <[email protected]>
@dayo09
Copy link
Contributor Author

dayo09 commented Sep 2, 2022

This removes about 600 problems when "eslint:recommended" is on.

BEFORE

✖ 701 problems (701 errors, 0 warnings)
26 errors and 0 warnings potentially fixable with the --fix option.

AFTER

✖ 98 problems (98 errors, 0 warnings)
26 errors and 0 warnings potentially fixable with the --fix option.

@dayo09 dayo09 added the 2 approvals 2 approvals required to be merged label Sep 2, 2022
@dayo09 dayo09 requested a review from a team September 2, 2022 07:04
@dayo09
Copy link
Contributor Author

dayo09 commented Sep 5, 2022

@Samsung/one-vscode PTAL, too ! :-D

@llFreetimell
Copy link
Contributor

@dayo09 dayo09 requested a review from a team September 6, 2022 02:53
@dayo09
Copy link
Contributor Author

dayo09 commented Sep 6, 2022

You can track down with #1253 #587

Copy link
Collaborator

@jyoungyun jyoungyun left a comment

Choose a reason for hiding this comment

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

LGTM

@llFreetimell llFreetimell merged commit a3dc9dd into Samsung:main Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 approvals 2 approvals required to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants