You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 15, 2023. It is now read-only.
* Add prettier, prettierrc and prettierignore
* Add tslint-config-prettier to avoid tslint and prettier conflicts
* First prettier run
* Prettify json files
* Ignore package.json and package-lock.json
* Prettier json files
* Use single quotes
* Revert to single quotes
* Use 4 spaces when creating JSON files
* Remove TODO comments
* Bring back TODO comments
* Add tslint:check as part of test script
* Remove conflicting rules from tslint.json as reported by tslint-config-prettier
* Use exact version for prettier
* Fix tests
* tslint-disable for variable-name
* Add no-unnecessary-semicolons to disabled rules
* Disable arrow-return-shorthand
* Make comment spacing consistent
* Update recommendations
* Single space before and after curly parens
* Generate recommended_ruleset with single quotes
* Single quote 'rule' key
* Grammatical fix
* Generate recommended ruleset
* Ignore recommended_ruleset.js
* Format markdown files using prettier
* Format *.md files
* Remove new line
* Add tslint:check before linting
* Update .prettierignore
* Add husky and lint-staged
* Run prettier on pre-commit
* Add prettier-vscode as a recommendation
* Escape asterisk
* Remove extra space
* Remove unwanted string concatenations
Copy file name to clipboardExpand all lines: README.md
+25-26
Original file line number
Diff line number
Diff line change
@@ -18,17 +18,16 @@ Alternately, you can download the files directly from GitHub: see [npm-5.2.1](ht
18
18
...or use the [`releases`](https://github.com/Microsoft/tslint-microsoft-contrib/tree/releases) branch, which is available online.
19
19
You can use that build by setting your npm version of `tslint-microsoft-contrib` to `git://github.com/Microsoft/tslint-microsoft-contrib.git#releases`.
20
20
21
-
22
21
## TSLint and corresponding tslint-microsoft-contrib version
23
22
24
-
| TSLint version | tslint-microsoft-contrib version |
The `tslint.json` file does not change format when using this package. Just add our rule definitions to your existing `tslint.json` file.
@@ -56,10 +55,10 @@ The `tslint.json` file does not change format when using this package. Just add
56
55
57
56
There certainly are a lot of options! Here are some links to get you started.
58
57
59
-
* Easiest Option - Our recommended ruleset is here: [recommended_ruleset.js](recommended_ruleset.js). You can also easily extend the ruleset by adding `"extends": "tslint-microsoft-contrib"` to your configuration. Please note, the default rules require the `--type-check` and `--project` TSLint options. Also, please note that adding a rule to the recommended ruleset is considered backwards compatible. If you rely on version ranges in your dependencies then you may find that new rules being added to the product create violations and fail your build.
60
-
* A nice blog post on the MSDN secure development blog can be found here: [Automating Secure Development Lifecycle Checks in TypeScript with TSLint](https://blogs.msdn.microsoft.com/secdevblog/2016/05/11/automating-secure-development-lifecycle-checks-in-typescript-with-tslint/)
61
-
* A wiki briefly describing the SDL and related rules is here: [TSLint and the Microsoft Security Development Lifecycle](https://github.com/Microsoft/tslint-microsoft-contrib/wiki/TSLint-and-the-Microsoft-Security-Development-Lifecycle)
62
-
* And our configuration file with all options is available here: [tslint.json](tslint.json)
58
+
- Easiest Option - Our recommended ruleset is here: [recommended_ruleset.js](recommended_ruleset.js). You can also easily extend the ruleset by adding `"extends": "tslint-microsoft-contrib"` to your configuration. Please note, the default rules require the `--type-check` and `--project` TSLint options. Also, please note that adding a rule to the recommended ruleset is considered backwards compatible. If you rely on version ranges in your dependencies then you may find that new rules being added to the product create violations and fail your build.
59
+
- A nice blog post on the MSDN secure development blog can be found here: [Automating Secure Development Lifecycle Checks in TypeScript with TSLint](https://blogs.msdn.microsoft.com/secdevblog/2016/05/11/automating-secure-development-lifecycle-checks-in-typescript-with-tslint/)
60
+
- A wiki briefly describing the SDL and related rules is here: [TSLint and the Microsoft Security Development Lifecycle](https://github.com/Microsoft/tslint-microsoft-contrib/wiki/TSLint-and-the-Microsoft-Security-Development-Lifecycle)
61
+
- And our configuration file with all options is available here: [tslint.json](tslint.json)
63
62
64
63
### Supported Rules
65
64
@@ -1207,10 +1206,10 @@ There certainly are a lot of options! Here are some links to get you started.
1207
1206
1208
1207
These formatters assume that you use the UTF-8 file encoding. They may not work if you have a different encoding, especially if your encoding uses a 2-byte line ending (such as `\r\n` on Windows).
1209
1208
1210
-
Formatter Name | Description | Since
1211
-
:----------| :------------ | -------------
1212
-
`fix-no-require-imports`| This formatter automatically converts imports from the require syntax to the ES6 syntax. For example `import Utils = require('Utils');` becomes `import {Utils} from 'Utils';`. However, be warned that the fix assumes that your imported module exports the correct thing. If anything goes wrong with your exports then you'll get a compiler failure saying there is no default export. | 2.0.8
1213
-
`fix-no-var-keyword` | This formatter automatically converts var variable declarations into let variable declarations found by the no-var-keyword rule. | 2.0.8
|`fix-no-require-imports`| This formatter automatically converts imports from the require syntax to the ES6 syntax. For example `import Utils = require('Utils');` becomes `import {Utils} from 'Utils';`. However, be warned that the fix assumes that your imported module exports the correct thing. If anything goes wrong with your exports then you'll get a compiler failure saying there is no default export. | 2.0.8|
1212
+
|`fix-no-var-keyword`| This formatter automatically converts var variable declarations into let variable declarations found by the no-var-keyword rule. | 2.0.8|
0 commit comments