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

Add typings #1382

Merged
merged 1 commit into from
Jan 6, 2021
Merged

Add typings #1382

merged 1 commit into from
Jan 6, 2021

Conversation

Semigradsky
Copy link
Member

Add typings based on typings from DefinitelyTyped.

package.json Outdated
"no-unused-vars": "off"
"no-unused-vars": "off",
"no-redeclare": "off",
"@typescript-eslint/no-redeclare": ["error"]
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"@typescript-eslint/no-redeclare": ["error"]
"@typescript-eslint/no-redeclare": "error"

Copy link
Member

Choose a reason for hiding this comment

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

What error it prevents in Autoprefixer?

Copy link
Member Author

Choose a reason for hiding this comment

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

no-redeclare rule forbid to make function overloading. Maybe it is better to move rules to @logux/eslint-config:

      "no-redeclare": "off",
      "@typescript-eslint/no-redeclare": "error"

Copy link
Member

Choose a reason for hiding this comment

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

Where it could happen?

Copy link
Member Author

Choose a reason for hiding this comment

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

In any place when you will have function overloading or interface declaration merging. no-redeclare doesn't understand that it is not "redeclare", @typescript-eslint/no-redeclare handles these cases.

Copy link
Member

@ai ai Jan 5, 2021

Choose a reason for hiding this comment

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

Thanks for the suggestion. I released ESLint config 44.0.1 and updated config in Autoprefixer’s master.

Can you revert config changes and rebase branch (and we are ready for the release)?

lib/autoprefixer.d.ts Outdated Show resolved Hide resolved
@ai
Copy link
Member

ai commented Jan 6, 2021

Released in 10.2

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