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

fix: resolve conflicting packages; address linting issues; resolve "@… #46

Merged
merged 1 commit into from
Nov 23, 2022

Conversation

mdodsworth
Copy link
Contributor

…/" aliases in generated types

Addressing the type aliasing issue mentioned in #33.
On the way through, noticed and cleared up a few things:

  • package conflicts that were borking install
  • linting errors -- I've cleared up errors and warnings

@@ -14,7 +14,7 @@ module.exports = {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'space-before-function-paren': 0,
'no-unused-vars': ['warn', { varsIgnorePattern: '^_' }],
'no-unused-vars': 'off',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

recommendation is to disable no-unused-vars as it complains about unused vars in interface declarations

@@ -1,5 +1,7 @@
<template>
<slot />
<div>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

linting error complaining about having slot as the root element, so wrapped in a div

@@ -93,11 +93,13 @@ export default class Scale {
const valueMin: number = min(stackedData, (arr) => min(arr, (x) => min(x))) || 0

const [dataMin, dataMax] = extent(Array.from(new Set(values.concat([valueMin, valueMax]))))
// eslint-disable-next-line no-eval
Copy link
Contributor Author

Choose a reason for hiding this comment

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

just ignoring these for now: my recommendation would be to allow a function to be passed through, rather than a string that you have to eval. That is, allow a function to be passed through that takes an optional min/max.

@ghalex
Copy link
Owner

ghalex commented Jul 14, 2022

Hi @mdodsworth,

Thank you for taking the time to help, I will have a look at the changes and approve them.

Thanks,
Alexandru

@ghalex ghalex merged commit 6141374 into ghalex:main Nov 23, 2022
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