Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(eslint-plugin): add eslint rule no-useless-constructor#167

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
JamesHenry merged 9 commits intotypescript-eslint:masterfromarmano2:no-useless-constructor
Feb 1, 2019
Merged

feat(eslint-plugin): add eslint rule no-useless-constructor#167

JamesHenry merged 9 commits intotypescript-eslint:masterfromarmano2:no-useless-constructor
Feb 1, 2019

Conversation

armano2
Copy link
Collaborator

This PR adds wrapper around eslintno-useless-constructor to fix issues from#15 and#48

fixes:#15

@codecov
Copy link

codecovbot commentedFeb 1, 2019

Codecov Report

Merging#167 intomaster willincrease coverage by0.02%.
The diff coverage is100%.

@@            Coverage Diff             @@##           master     #167      +/-   ##==========================================+ Coverage   95.76%   95.78%   +0.02%==========================================  Files          50       51       +1       Lines        2526     2541      +15       Branches      373      373              ==========================================+ Hits         2419     2434      +15  Misses         63       63                Partials       44       44
Impacted FilesCoverage Δ
.../eslint-plugin/lib/rules/no-useless-constructor.js100% <100%> (ø)

@JamesHenryJamesHenry merged commit3fb57a5 intotypescript-eslint:masterFeb 1, 2019
@armano2armano2 deleted the no-useless-constructor branchFebruary 1, 2019 12:48
kaicataldo pushed a commit to kaicataldo/typescript-eslint that referenced this pull requestAug 27, 2019
@tsofist
Copy link

I still have a problem withd.ts file :(

declareclassMySuperClass{constructor(argument1:number);}

Error

TypeError: Cannot read property 'body' of nullOccurred while linting test.d.ts:2    at checkForConstructor (node_modules\eslint\lib\rules\no-useless-constructor.js:169:42)

@bradzacher
Copy link
Member

please don't necro old PRs.
Open an issue instead.

@typescript-eslinttypescript-eslint locked asresolvedand limited conversation to collaboratorsSep 4, 2019
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@mysticateamysticateamysticatea left review comments

@JamesHenryJamesHenryJamesHenry approved these changes

@bradzacherbradzacherbradzacher approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

no-useless-constructor: class declaration with constructor throws exception
5 participants
@armano2@tsofist@bradzacher@JamesHenry@mysticatea

[8]ページ先頭

©2009-2025 Movatter.jp