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

[CHORE] Improve Eslint configuration #385

Merged
merged 3 commits into from
Apr 22, 2021

Conversation

whotake
Copy link
Contributor

@whotake whotake commented Apr 21, 2021

Resolves #235

Adds additional rules:

  • no cycle deps
  • no relative imports
  • import order

Copy link
Member

@workshur workshur left a comment

Choose a reason for hiding this comment

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

LGTM

"import/no-extraneous-dependencies": ["error", { "devDependencies": true }]
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"import/no-cycle": "error",
"import/order": ["error", {"groups": ["builtin", "external", "parent", "sibling", "index"]}],
Copy link
Member

Choose a reason for hiding this comment

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

🥳
I also like {"newlines-between": "always"} option. But I'm not strong on this if you think this is too much.

@workshur workshur force-pushed the chore/eslint-path-configuration branch from f90c9ff to 4358823 Compare April 22, 2021 11:27
@sonarcloud
Copy link

sonarcloud bot commented Apr 22, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@workshur workshur merged commit 083e3f7 into master Apr 22, 2021
@workshur workshur deleted the chore/eslint-path-configuration branch April 22, 2021 11:50
javalover123 pushed a commit to javalover123/kafka-ui that referenced this pull request Dec 7, 2022
Co-authored-by: Oleg Shuralev <workshur@gmail.com>
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.

Improve Eslint configuration
3 participants