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

[@kadena/eslint-config] allow const to not have a type annotation. #201

Open
sstraatemans opened this issue Apr 3, 2023 · 3 comments
Open

Comments

@sstraatemans
Copy link
Contributor

I would like to be able to not type an object that is typed with as const.
At the moment it will throw a warning Expected a type annotation. eslint[@rushstack/typedef-var](https://www.npmjs.com/package/%40rushstack/eslint-plugin)

At the moment I have to disable typescript for this line.
But as it is has as const it should just work.

example

When I have an object like

const test = {
  "he-man": {
    "isMasterOfUniverse": true
  },
  "skeletor": {
    "isMasterOfUniverse": false
  }
} as const
@alber70g alber70g changed the title [eslint config] allow const to not have a type annotation. [eslint-config] allow const to not have a type annotation. Apr 3, 2023
@alber70g alber70g changed the title [eslint-config] allow const to not have a type annotation. [@kadena/eslint-config] allow const to not have a type annotation. Apr 3, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jun 2, 2023

This issue is stale because it is open for 60 days with no activity

@sstraatemans
Copy link
Contributor Author

still valid I think

@github-actions
Copy link
Contributor

github-actions bot commented Aug 5, 2023

This issue is stale because it is open for 60 days with no activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant