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

feat(packages/eslint-plugin-sui): Add rule to check relative imports #1760

Merged
merged 8 commits into from
May 10, 2024

Conversation

carlosvillu
Copy link
Collaborator

@carlosvillu carlosvillu commented May 7, 2024

  • Avoid relative imports between the monorepo packages.
  • Sass files
  • migration from JS to TS
  • component outside of the Studio
  • Spark adoption

* Really use the class as singleton

 * avoid missleading warning when the relative import is for

the same package
@carlosvillu carlosvillu merged commit 5075ecc into master May 10, 2024
3 checks passed
@carlosvillu carlosvillu deleted the sui-lint-add-fitness-board-rules-part-iii branch May 10, 2024 09:02
.filter(line => line.match(/'@spark-ui\/.*'/)).length

let percentage = (totalSparkComponents * 100) / (totalSparkComponents + totalSUIComponents)
percentage = Math.round((percentage + Number.EPSILON) * 100) / 100
Copy link
Member

Choose a reason for hiding this comment

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

Mantissa 😍

const resolvedBabelPresetSui = require.resolve('babel-preset-sui')
const parser = require.resolve('@babel/eslint-parser')

const CWD = '/Users/carlosvillu/Developer/frontend-mt--web-app'
Copy link
Contributor

Choose a reason for hiding this comment

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

the new /foo/bar? 😉

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.

5 participants