-
Notifications
You must be signed in to change notification settings - Fork 12k
Introduce tslint npm script task #1835
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
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(whitespace) addon/ng2/commands/doc.ts[13, 41]: missing whitespace (no-trailing-whitespace) addon/ng2/commands/doc.ts[15, 1]: trailing whitespace (eofline) addon/ng2/commands/doc.ts[26, 29]: file should end with a newline Left untouched (variable-name) addon/ng2/commands/doc.ts[4, 7]: variable name must be in camelcase or uppercase
(no-trailing-whitespace) addon/ng2/commands/generate.ts[24, 1]: trailing whitespace (no-trailing-whitespace) addon/ng2/commands/generate.ts[32, 1]: trailing whitespace (no-trailing-whitespace) addon/ng2/commands/generate.ts[41, 1]: trailing whitespace Left untouched (variable-name) addon/ng2/commands/generate.ts[9, 7]: variable name must be in camelcase or uppercase
(max-line-length) addon/ng2/commands/github-pages-deploy.ts[21, 1]: Exceeds maximum line length of 100 (max-line-length) addon/ng2/commands/github-pages-deploy.ts[218, 1]: Exceeds maximum line length of 100 (max-line-length) addon/ng2/commands/github-pages-deploy.ts[228, 1]: Exceeds maximum line length of 100 (one-line) addon/ng2/commands/github-pages-deploy.ts[69, 36]: missing whitespace (one-line) addon/ng2/commands/github-pages-deploy.ts[182, 37]: missing whitespace (semicolon) addon/ng2/commands/github-pages-deploy.ts[168, 36]: Missing semicolon (semicolon) addon/ng2/commands/github-pages-deploy.ts[186, 71]: Missing semicolon (curly) addon/ng2/commands/github-pages-deploy.ts[140, 7]: if statements must be braced (curly) addon/ng2/commands/github-pages-deploy.ts[191, 7]: if statements must be braced
(max-line-length) addon/ng2/commands/serve.ts[39, 1]: Exceeds maximum line length of 100 (max-line-length) addon/ng2/commands/serve.ts[43, 1]: Exceeds maximum line length of 100 (max-line-length) addon/ng2/commands/serve.ts[44, 1]: Exceeds maximum line length of 100 (max-line-length) addon/ng2/commands/serve.ts[45, 1]: Exceeds maximum line length of 100 (max-line-length) addon/ng2/commands/serve.ts[46, 1]: Exceeds maximum line length of 100 (max-line-length) addon/ng2/commands/serve.ts[47, 1]: Exceeds maximum line length of 100 (max-line-length) addon/ng2/commands/serve.ts[75, 1]: Exceeds maximum line length of 100 (no-shadowed-variable) addon/ng2/commands/serve.ts[68, 14]: Shadowed variable: commandOptions (one-line) addon/ng2/commands/serve.ts[55, 43]: missing whitespace
(no-inferrable-types) addon/ng2/models/config/config.ts[32, 23]: LHS type (string) inferred by RHS expression, remove type annotation (no-shadowed-variable) addon/ng2/models/config/config.ts[76, 34]: Shadowed variable: content (variable-name) addon/ng2/models/config/config.ts[18, 11]: variable name must be in camelcase or uppercase (variable-name) addon/ng2/models/config/config.ts[20, 31]: variable name must be in camelcase or uppercase
(no-inferrable-types) addon/ng2/models/config/config.ts[32, 23]: LHS type (string) inferred by RHS expression, remove type annotation (no-inferrable-types) addon/ng2/models/config/config.ts[32, 23]: LHS type (string) inferred by RHS expression, remove type annotation (no-shadowed-variable) addon/ng2/models/config/config.ts[76, 34]: Shadowed variable: content (variable-name) addon/ng2/models/config/config.ts[18, 11]: variable name must be in camelcase or uppercase (variable-name) addon/ng2/models/config/config.ts[20, 31]: variable name must be in camelcase or uppercase
(no-inferrable-types) addon/ng2/models/json-schema/schema-class-factory.ts[148, 25]: LHS type (string) inferred by RHS expression, remove type annotation (one-line) addon/ng2/models/json-schema/schema-class-factory.ts[140, 25]: missing whitespace (semicolon) addon/ng2/models/json-schema/schema-class-factory.ts[111, 22]: Missing semicolon
(typedef-whitespace) addon/ng2/models/json-schema/schema-tree.ts[78, 17]: expected nospace before colon in call-signature (whitespace) addon/ng2/models/json-schema/schema-tree.ts[135, 11]: missing whitespace Left untouched (variable-name) addon/ng2/models/json-schema/schema-tree.ts[32, 13]: variable name must be in camelcase or uppercase (variable-name) addon/ng2/models/json-schema/schema-tree.ts[34, 13]: variable name must be in camelcase or uppercase (variable-name) addon/ng2/models/json-schema/schema-tree.ts[35, 13]: variable name must be in camelcase or uppercase (variable-name) addon/ng2/models/json-schema/schema-tree.ts[37, 13]: variable name must be in camelcase or uppercase (variable-name) addon/ng2/models/json-schema/schema-tree.ts[38, 13]: variable name must be in camelcase or uppercase (variable-name) addon/ng2/models/json-schema/schema-tree.ts[40, 13]: variable name must be in camelcase or uppercase (variable-name) addon/ng2/models/json-schema/schema-tree.ts[41, 13]: variable name must be in camelcase or uppercase (variable-name) addon/ng2/models/json-schema/schema-tree.ts[133, 9]: variable name must be in camelcase or uppercase (variable-name) addon/ng2/models/json-schema/schema-tree.ts[160, 13]: variable name must be in camelcase or uppercase (variable-name) addon/ng2/models/json-schema/schema-tree.ts[221, 13]: variable name must be in camelcase or uppercase (variable-name) addon/ng2/models/json-schema/schema-tree.ts[281, 11]: variable name must be in camelcase or uppercase
(max-line-length) addon/ng2/models/webpack-build-common.ts[66, 1]: Exceeds maximum line length of 100 (max-line-length) addon/ng2/models/webpack-build-common.ts[67, 1]: Exceeds maximum line length of 100 (max-line-length) addon/ng2/models/webpack-build-common.ts[68, 1]: Exceeds maximum line length of 100 (max-line-length) addon/ng2/models/webpack-build-common.ts[71, 1]: Exceeds maximum line length of 100 (max-line-length) addon/ng2/models/webpack-build-common.ts[72, 1]: Exceeds maximum line length of 100 (max-line-length) addon/ng2/models/webpack-build-common.ts[73, 1]: Exceeds maximum line length of 100 (max-line-length) addon/ng2/models/webpack-build-common.ts[74, 1]: Exceeds maximum line length of 100 (no-trailing-whitespace) addon/ng2/models/webpack-build-common.ts[17, 16]: trailing whitespace (quotemark) addon/ng2/models/webpack-build-common.ts[100, 59]: " should be ' (semicolon) addon/ng2/models/webpack-build-common.ts[127, 4]: Missing semicolon (curly) addon/ng2/models/webpack-build-common.ts[22, 3]: if statements must be braced (curly) addon/ng2/models/webpack-build-common.ts[23, 3]: if statements must be braced '
(max-line-length) addon/ng2/models/webpack-build-mobile.ts[13, 1]: Exceeds maximum line length of 100 (max-line-length) addon/ng2/models/webpack-build-mobile.ts[14, 1]: Exceeds maximum line length of 100 (no-unused-variable) addon/ng2/models/webpack-build-mobile.ts[1, 13]: Unused import: webpack (semicolon) addon/ng2/models/webpack-build-mobile.ts[22, 4]: Missing semicolon (semicolon) addon/ng2/models/webpack-build-mobile.ts[33, 4]: Missing semicolon
(comment-format) addon/ng2/models/webpack-build-production.ts[22, 28]: comment must start with a space (comment-format) addon/ng2/models/webpack-build-production.ts[23, 60]: comment must start with a space (comment-format) addon/ng2/models/webpack-build-production.ts[24, 42]: comment must start with a space (comment-format) addon/ng2/models/webpack-build-production.ts[25, 27]: comment must start with a space (no-unused-variable) addon/ng2/models/webpack-build-production.ts[2, 13]: Unused import: webpackMerge (semicolon) addon/ng2/models/webpack-build-production.ts[60, 4]: Missing semicolon
(max-line-length) addon/ng2/models/webpack-config.ts[21, 1]: Exceeds maximum line length of 100 (max-line-length) addon/ng2/models/webpack-config.ts[32, 1]: Exceeds maximum line length of 100 (max-line-length) addon/ng2/models/webpack-config.ts[33, 1]: Exceeds maximum line length of 100 (max-line-length) addon/ng2/models/webpack-config.ts[34, 1]: Exceeds maximum line length of 100 (max-line-length) addon/ng2/models/webpack-config.ts[35, 1]: Exceeds maximum line length of 100 (one-line) addon/ng2/models/webpack-config.ts[31, 26]: missing whitespace (quotemark) addon/ng2/models/webpack-config.ts[43, 12]: " should be ' (quotemark) addon/ng2/models/webpack-config.ts[46, 12]: " should be '
(max-line-length) addon/ng2/tasks/build-webpack-watch.ts[19, 1]: Exceeds maximum line length of 100 (quotemark) addon/ng2/tasks/build-webpack-watch.ts[37, 71]: " should be ' (semicolon) addon/ng2/tasks/build-webpack-watch.ts[40, 7]: Missing semicolon (semicolon) addon/ng2/tasks/build-webpack-watch.ts[39, 9]: Missing semicolon (curly) addon/ng2/tasks/build-webpack-watch.ts[31, 11]: if statements must be braced (whitespace) addon/ng2/tasks/build-webpack-watch.ts[31, 13]: missing whitespace (whitespace) addon/ng2/tasks/build-webpack-watch.ts[35, 11]: missing whitespace
(max-line-length) addon/ng2/tasks/build-webpack.ts[19, 1]: Exceeds maximum line length of 100 (no-trailing-whitespace) addon/ng2/tasks/build-webpack.ts[20, 1]: trailing whitespace (quotemark) addon/ng2/tasks/build-webpack.ts[44, 71]: " should be ' (curly) addon/ng2/tasks/build-webpack.ts[38, 11]: if statements must be braced (variable-name) addon/ng2/tasks/build-webpack.ts[23, 11]: variable name must be in camelcase or uppercase (whitespace) addon/ng2/tasks/build-webpack.ts[35, 11]: missing whitespace (whitespace) addon/ng2/tasks/build-webpack.ts[38, 13]: missing whitespace (whitespace) addon/ng2/tasks/build-webpack.ts[42, 11]: missing whitespace
(max-line-length) addon/ng2/tasks/create-github-repo.ts[21, 1]: Exceeds maximum line length of 100 (max-line-length) addon/ng2/tasks/create-github-repo.ts[22, 1]: Exceeds maximum line length of 100 (max-line-length) addon/ng2/tasks/create-github-repo.ts[30, 1]: Exceeds maximum line length of 100 (max-line-length) addon/ng2/tasks/create-github-repo.ts[66, 1]: Exceeds maximum line length of 100 (max-line-length) addon/ng2/tasks/create-github-repo.ts[68, 1]: Exceeds maximum line length of 100 (quotemark) addon/ng2/tasks/create-github-repo.ts[21, 20]: " should be ' (quotemark) addon/ng2/tasks/create-github-repo.ts[24, 20]: " should be ' (semicolon) addon/ng2/tasks/create-github-repo.ts[66, 129]: Missing semicolon
(max-line-length) addon/ng2/tasks/serve-webpack.ts[20, 1]: Exceeds maximum line length of 100 (max-line-length) addon/ng2/tasks/serve-webpack.ts[24, 1]: Exceeds maximum line length of 100 (max-line-length) addon/ng2/tasks/serve-webpack.ts[44, 1]: Exceeds maximum line length of 100 (max-line-length) addon/ng2/tasks/serve-webpack.ts[51, 1]: Exceeds maximum line length of 100 (semicolon) addon/ng2/tasks/serve-webpack.ts[70, 7]: Missing semicolon (curly) addon/ng2/tasks/serve-webpack.ts[59, 11]: if statements must be braced (whitespace) addon/ng2/tasks/serve-webpack.ts[51, 24]: missing whitespace (whitespace) addon/ng2/tasks/serve-webpack.ts[56, 11]: missing whitespace (whitespace) addon/ng2/tasks/serve-webpack.ts[59, 13]: missing whitespace (whitespace) addon/ng2/tasks/serve-webpack.ts[63, 11]: missing whitespace
We already fixed those and already added tslint. |
Right, issue #1823 covered it. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Since
tslint
is a dev dependency, we might as well make use of it.This PR introduces an
npm
script task namestslint
.Running it reveals a flood of rather trivial "typos".
I corrected most of them, they are included in this PR.
After applying this PR, the output of
npm run tslint
is 25 cases of camelcase/uppercase and one usage of evileval
(down from 147 cases):