Skip to content

update codelyzer to 4.0 #8324

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

Closed
sibiraj-s opened this issue Nov 3, 2017 · 10 comments
Closed

update codelyzer to 4.0 #8324

sibiraj-s opened this issue Nov 3, 2017 · 10 comments
Assignees
Labels
help wanted P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent severity2: inconvenient

Comments

@sibiraj-s
Copy link
Contributor

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

    _                      _                 ____ _     ___
   / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
  / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
 / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
/_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
               |___/

Angular CLI: 1.5.0
Node: 8.9.0
OS: win32 x64
Angular: 5.0.0
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

@angular/cli: 1.5.0
@angular-devkit/build-optimizer: 0.0.32
@angular-devkit/core: 0.0.20
@angular-devkit/schematics: 0.0.35
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.8.0
@schematics/angular: 0.1.0
typescript: 2.4.2
webpack: 3.8.1

Repro steps.

  1. ng new my-app --skip-install
  2. cd my-app
  3. npm install

The log given by the failure.

npm WARN codelyzer@3.2.2 requires a peer of @angular/compiler@^2.3.1 || >=4.0.0-beta <5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN codelyzer@3.2.2 requires a peer of @angular/core@^2.3.1 || >=4.0.0-beta <5.0.0 but none is installed. You must install peer dependencies yourself.

Desired functionality.

Scaffold with codelyzer 4.0.

Mention any other details that might be useful.

This has been fixed in codelyzer 4.0
Issue: mgechev/codelyzer#409
Release: https://github.com/mgechev/codelyzer/releases/tag/4.0.0

@ibqn
Copy link

ibqn commented Nov 3, 2017

I hit that issue with 1.5.0 as well

@Kalki5
Copy link

Kalki5 commented Nov 6, 2017

I got the issue as well

@Danieliverant
Copy link

same issue, is there any fix?

@ibqn
Copy link

ibqn commented Nov 6, 2017

@Danieliverant the workaround is very trivial, just update codelyzer to ~4.0.1 in package.json and fix tslint.json file

-    "codelyzer": "~3.2.0",
+    "codelyzer": "~4.0.1",

and

-    "directive-class-suffix": true,
-    "invoke-injectable": true
+    "directive-class-suffix": true

cp. mgechev/codelyzer#260

@sibiraj-s
Copy link
Contributor Author

sibiraj-s commented Nov 6, 2017

The solution is simple, but it would be nice to be included by default. I think this will be patched soon

@Brocco
Copy link
Contributor

Brocco commented Nov 10, 2017

The fix for this will be in the angular/devkit repo.

The line that will need updated can be found here.

@Brocco Brocco self-assigned this Nov 10, 2017
@Brocco Brocco added help wanted P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent severity2: inconvenient labels Nov 10, 2017
@rmcc13
Copy link

rmcc13 commented Nov 14, 2017

Hi, it looks like there are already a couple of PRs for this. Here and here

@cyrilletuzi
Copy link
Contributor

Yes, I already did the PR 2 weeks ago, but it's not even reviewed yet. So it's quite funny to see the label "help wanted" here.

@Brocco There is a real problem about supporting the community effort in the CLI, this kind of situation happens very too often (I can give a lot of examples). One of the last Angular weekly meetings notes say " @bradlygreen has details on how to give kudos (in cash!) to external contributors". Well, I don't ask for cash, I think the priority would be first to have someone to manage the github PRs (I don't even mention issues...). That's really frustrating that first, each CLI release comes with this kind of issues (and other ones about generation commands are real problems) and second that when we take time to help, it feels like nobody cares.

SteveSandersonMS added a commit to aspnet/Templating that referenced this issue Nov 16, 2017
LHSnow pushed a commit to LHSnow/tdd-tetris-tutorial that referenced this issue Nov 20, 2017
@sibiraj-s
Copy link
Contributor Author

fixed 👍

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent severity2: inconvenient
Projects
None yet
Development

No branches or pull requests

7 participants