Skip to content
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

Examples for tslint-documentation #2

Open
wants to merge 91 commits into
base: docs/code-examples
Choose a base branch
from
Open

Examples for tslint-documentation #2

wants to merge 91 commits into from

Conversation

Shinigami92
Copy link

PR checklist

Overview of change:

Is there anything you'd like reviewers to focus on?

I'm not an english native speaker, pls check my sentences :)

CHANGELOG.md entry:

[enhancement] Documentation examples for following rules: arrow-return-shorthand, class-name, no-any, no-empty-interface, no-sparse-arrays, no-unnecessary-callback-wrapper, object-literal-sort-keys, one-variable-per-declaration, only-arrow-functions, prefer-template, radix, switch-default, typedef, use-isnan

reduckted and others added 30 commits December 19, 2017 19:10
[no-log] This doesn't change our public API.
[bugfix] `no-unsafe-any` allows spreading an `any`-value into an object
[bugfix] `callable-types` adds parentheses when fixing a type literal inside an array type
Accidentally committed formatting that VSCode did, has nothing to do with the commit
fixed vscode's formatting
OliverJAsh and others added 30 commits May 3, 2018 14:58
…#3729)

* Improve "no valid rules" error message to include file type

* Lint
* Excluded native JSX elements from no-unsafe-any

* Lint fix: double-apostrophe

Interesting how TypeScript auto-added single-apostrophes...

* ...almost working..

* Split no-unsafe-any into separate tests

* Added test cases for fragments

* Added case for TS2.1 and fragments
* Prepare release 5.10.0
```diff
+ for
- or
```
- Updated docs to make sense semantically (use vars that should exist in the scope of each for-loop)
- Updated tests with same issue
* no-empty: ensure rule works for typed functions

* no-empty: prove lack of methods handling

* fix
Some Walker fields had to be initialized with inline initializers.
palantir#3876)

* ignoring identifiers whose parent is a binding element

* check that ignored identifier is propname of binding element

* additional tests
JSON.stringify fails in some cases because its fails to convert circular structure to string
…me error (palantir#3919)

* fix no-unused-variable-rule for typescript@next

* fix ignore pattern test file as well

* fix tests

* deprecate noUnusedVariableRule for TS 2.9+

* use semver for cleaner comparison check
…ir#3985)

(node:16148) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
allocUnsafe should be fine because in both cases, the buffer is immediately filled and thrown out.
…alantir#3935)

* Implemented fixer for member-ordering and added corresponding tests.

* Improved node boundary calculation so trivia remains attached to the correct nodes.

* minor comment fixes.
* add fileNameCasing rule

* use camel case name for tslintCli

* refactor casing check into helper function

* use stylized name for casing in failure message
…r#3839) (palantir#3979)

* feature - no-implicit-dependencies - add whitelist (palantir#3839)

This allows you to specify a whitelist of modules that will not be part of package.json such as project-relative aliases

* feature - no-implicit-dependencies - add whitelist (palantir#3839)

Use Set for whitelist package name comparison instead of Array.
palantir#4019)

* Fix CI, which became red after consequent merge palantir#3979, palantir#3875

* Upgrade typescript@2.9.2, tsutils@2.27.2

* Remove unneded type assertion after typescript upgrade

* Add runtime check for 'ts.unescapeIdentifier()' presence
The GitHub GUI is a bit confusing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.