Skip to content

Commit

Permalink
Fix TSLint Config
Browse files Browse the repository at this point in the history
Removed rules which were causing issues. In future any changes made to the JS files must pass linting.

Note: TSLint is deprecated and no longer updated. Final version is v6.1.3.
  • Loading branch information
coliff committed Jun 14, 2023
1 parent c36613c commit 44373f3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 28 deletions.
2 changes: 1 addition & 1 deletion app-components/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion app-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"lint": "ng lint",
"e2e": "ng e2e"
},
"engines": {
"node": ">=14.15.0"
},
"private": true,
"dependencies": {
"@angular/animations": "~12.2.17",
Expand Down Expand Up @@ -46,7 +49,7 @@
"protractor": "~7.0.0",
"sass": "^1.58.0",
"ts-node": "~8.3.0",
"tslint": "~6.1.0",
"tslint": "6.1.3",
"typescript": "~4.3.5"
}
}
30 changes: 4 additions & 26 deletions app-components/tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@
},
"array-type": false,
"arrow-return-shorthand": true,
"curly": true,
"curly": false,
"deprecation": {
"severity": "warning"
},
"eofline": true,
"import-blacklist": [
true,
"rxjs/Rx"
Expand Down Expand Up @@ -60,19 +59,6 @@
"no-redundant-jsdoc": true,

Check warning on line 59 in app-components/tslint.json

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (jsdoc)

Check warning on line 59 in app-components/tslint.json

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (jsdoc)
"no-switch-case-fall-through": true,
"no-var-requires": false,
"object-literal-key-quotes": [
true,
"as-needed"
],
"quotemark": [
true,
"single"
],
"semicolon": {
"options": [
"always"
]
},
"space-before-function-paren": {
"options": {
"anonymous": "never",
Expand All @@ -83,7 +69,7 @@
}
},
"typedef": [
true,
false,
"call-signature"
],
"typedef-whitespace": {
Expand Down Expand Up @@ -111,16 +97,6 @@
"allow-pascal-case"
]
},
"whitespace": {
"options": [
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type",
"check-typecast"
]
},
"component-class-suffix": true,
"contextual-lifecycle": true,
"directive-class-suffix": true,
Expand All @@ -132,10 +108,12 @@
"no-output-on-prefix": true,
"no-output-rename": true,
"no-outputs-metadata-property": true,
"prefer-const": false,
"template-banana-in-box": true,
"template-no-negated-async": true,
"use-lifecycle-interface": true,
"use-pipe-transform-interface": true,
"expected call-signature": false,
"directive-selector": [
true,
"attribute",
Expand Down

0 comments on commit 44373f3

Please sign in to comment.