question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Codelyzer in tslint.json not found

See original GitHub issue

If I run ng lint with the angular cli version 1.0.1 i get the following error.

Failed to load [pathToProject]/node_modules/ng2-markdown-to-html/tslint.json: 
Could not find custom rule directory: [pathToProject]/node_modules/ng2-markdown-to-html/node_modules/codelyzer

Changing the path to ../codelyzer seems to work around the problem but maybe you have a better solution.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

8reactions
lj79490324commented, Nov 2, 2017

run “npm install codelyzer”,I succeed

1reaction
kdiehlcommented, Jun 20, 2017

Here is a repo that produces that error. informaterian/ng2-markdown-test

Read more comments on GitHub >

github_iconTop Results From Across the Web

ng lint Could not find custom rule directory: codelyzer with ...
In the trade-up-common package, I have added tslint.json to the .npmignore file. Codelyzer is included in the dependencies of both the main ...
Read more >
codelyzer
codelyzer. A set of tslint rules for static code analysis of Angular TypeScript projects. (If you are using ESLint check out the new ......
Read more >
angular-tslint-rules: a configuration preset for both TSLint & ...
Containing a set of TSLint and codelyzer rules, angular-tslint-rules has been ... that are not listed as a dependency in the project's package.json...
Read more >
How to extend TSLint rules with custom rules
The Codelyzer has custom rules that provide a way to lint Angular/TypeScript projects. ... Step 2. Then, we open the tslint.json file in...
Read more >
New Section - Angular Components and Core Directives
package.json is missing @angular/localize . ... npm ERR! peer tslint@"^3.9.0" from codelyzer@0.0.28 ... It appears you need tslint which is deprecated.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found