Improve experience when using ruleset in repo with mixed JS, TS, and Angular code #79
Labels
documentation
Improvements or additions to documentation
needs-proposal
Needs investigation and a proposal to implement
In this Skyline PR I enabled linting for the JS files in an Angular project. This situation is common because of config files like
karma.conf.js
and.eslintrc.js
. I hit a couple small bumps that would be nice to address in this repo..eslintrc.js
to use the JavaScript ruleset for files matching*.js
. We should either document this as our recommended approach or change our Angular and TS rulesets to apply to JS files too.angular.json
lintFilePatterns
to include*.js
since thenpm run lint
command calledng lint
. We should document this.karma.conf.js
generated by Angular. I chose to suppress those rules. In another case we chose to fix them (see discussion in linked PR). It would be nice to settle on a preferred approach and include guidance in our repo since most projects will likely hit the same errors.karma.conf.js
The text was updated successfully, but these errors were encountered: