Skip to content

Commit

Permalink
Merge branch 'master' into 3970-number-format-autofix
Browse files Browse the repository at this point in the history
* master: (60 commits)
  Added tslint-brunch to the list of 3rd party tools (palantir#4251)
  Switch to tslint-plugin-prettier, clean up rule options config syntax (palantir#4488)
  Enable grouped-imports for ordered-imports rule in tslint:all config (palantir#4420)
  Ordered imports grouping (palantir#4134)
  trailing-comma: check for a closing parenthesis (palantir#4457)
  Update index.md (palantir#4473)
  [bugfix] `no-unsafe-any`: allow implicitly downcasting `any` to `unknown` (palantir#4442)
  Add v5.12.1 changelog
  Bump version to 5.12.1
  Fix quotemark avoid-template issues (palantir#4408)
  Skip linting JSON files entirely (palantir#4001)
  Fix strict-type-predicate for unknown (palantir#4444)
  restrict increment-decrement fixer while fixing the postfix unary expressions (palantir#4415)
  Mention file names in script parse failures (palantir#4397)
  Revert breaking change to tslint:recommended, update tslint:latest (palantir#4404)
  Fix quotemark avoid-template issues (palantir#4408)
  Bump tslint dev dependency to 5.12.0 (palantir#4452)
  Skip linting JSON files entirely (palantir#4001)
  Fix strict-type-predicate for unknown (palantir#4444)
  [README] Update link for Webstorm (palantir#4450)
  ...
  • Loading branch information
ColCh committed Feb 3, 2019
2 parents aa548ff + a2c67a7 commit 45aaa7b
Show file tree
Hide file tree
Showing 269 changed files with 3,543 additions and 1,072 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- run: yarn test
test2.1:
docker:
- image: circleci/node:4
- image: circleci/node:6
steps:
- checkout
- attach_workspace:
Expand Down
3 changes: 0 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,3 @@ end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[tslint.json]
indent_size = 2
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
/scripts/*.js
/scripts/*.js.map
/lib/
/test/executable/tslint.json
node_modules/
!test/rules/**/node_modules
tscommand*.txt
Expand Down
36 changes: 0 additions & 36 deletions .prettierignore

This file was deleted.

19 changes: 0 additions & 19 deletions .prettierrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"stopOnEntry": false,
"args": ["run", "test"],
"cwd": "${workspaceRoot}",
"preLaunchTask": "tsc",
"preLaunchTask": "compile_tests",
"runtimeExecutable": null,
"runtimeArgs": ["--nolazy"],
"env": {
Expand Down
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
"node_modules": true
},

"tslint.configFile": "tslint-vscode.json",

// Always use project's provided typescript compiler version
"typescript.tsdk": "node_modules/typescript/lib",
"files.eol": "\n"
Expand Down
19 changes: 9 additions & 10 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"command": "tsc",
"isShellCommand": true,
"args": ["-w", "-p", "test"],
"showOutput": "silent",
"isWatching": true,
"problemMatcher": "$tsc-watch"
}
"tasks": [
{
"identifier": "compile_tests",
"type": "npm",
"script": "compile:test",
"problemMatcher": ["$tsc"]
}
]
}
162 changes: 162 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,167 @@
# Change Log

## v5.12.1

## :hammer_and_wrench: Bugfixes & enhancements

- [bugfix] Revert breaking change to tslint:recommended, update tslint:latest (#4404)
- [bugfix] Correcting fixer for the [`increment-decrement`](https://palantir.github.io/tslint/rules/increment-decrement/) rule (#4415)
- [bugfix] Fix [`strict-type-predicates`](https://palantir.github.io/tslint/rules/strict-type-predicates/) with `unknown` (#4444)
- [bugfix] Skip linting of `.json` files to avoid problems with `--resolveJsonModule` compiler option (#4001)
- [bugfix] fix some [`quotemark`](https://palantir.github.io/tslint/rules/quotemark/) issues when using backticks with the `avoid-template` option (#4408)
- [enhancement] Mention file names in test script parse failures (#4397)

Thanks to our contributors!
- Young Min Kim
- Enes SOYLU
- Thomas den Hollander
- Adrian Leonhard

## v5.12.0

## :tada: Features

- [feature] Configure format from file (#4155)
- [feature] Make cli expect array for rules dir (#3788)
- [feature] Set js rules to all valid active rules (#3641)
- [improvement] Add tests for typescript@2.9 and typescript@3.0 (#4053)
- [new-fixer][`type-literal-delimiter`](https://palantir.github.io/tslint/rules/type-literal-delimiter/) (#3964)
- [new-rule-option][`whitespace`](https://palantir.github.io/tslint/rules/whitespace/) Add whitespace rule for open braces (#4068)
- [new-rule-option][`file-name-casing`](https://palantir.github.io/tslint/rules/file-name-casing/): Add file name whitelist (#4206)
- [new-rule-option][`object-literal-sort-keys`](https://palantir.github.io/tslint/rules/object-literal-sort-keys/): `locale-compare` (#4193)
- [new-rule-option][`strict-boolean-expressions`](https://palantir.github.io/tslint/rules/strict-boolean-expressions/) adds `allow-enum` to allow using enums in boolean expressions (#3604)
- [new-rule-option][`import-blacklist`](https://palantir.github.io/tslint/rules/import-blacklist/): support blacklisting specific named exports (#3926)
- [new-rule-option][`type-literal-delimiter`](https://palantir.github.io/tslint/rules/type-literal-delimiter/): Add `{ singleLine: "always" | "never"}` (#3964)
- [new-rule-option][`file-name-casing`](https://palantir.github.io/tslint/rules/file-name-casing/): Add `snake-case` option (#4081)
- [new-rule-option][`file-header`](https://palantir.github.io/tslint/rules/file-header/): Enforce Blank Line after File Header (#3740)
- [new-rule][`ban-ts-ignore`](https://palantir.github.io/tslint/rules/ban-ts-ignore/) (#3728)
- [new-rule][`function-constructor`](https://palantir.github.io/tslint/rules/function-constructor/) (#4198)
- [new-rule][`increment-decrement`](https://palantir.github.io/tslint/rules/increment-decrement/) (#3575)
- [new-rule][`no-default-import`](https://palantir.github.io/tslint/rules/no-default-import/) (#4023)
- [new-rule][`unnecessary-constructor`](https://palantir.github.io/tslint/rules/unnecessary-constructor/) (#3647)
- [new-rule][`comment-type`](https://palantir.github.io/tslint/rules/comment-type/) (#4008)
- [new-rule][`unnecessary-bind`](https://palantir.github.io/tslint/rules/unnecessary-bind/) (#3588)

## :hammer_and_wrench: Bugfixes & enhancements

- [api] Allow `exclude` to work with node API (#4143)
- [api] Upgrade TSLint to support TS 3.1 (#4274)
- [bugfix] Allow whitelisted modules to start with `@` symbol (#4192)
- [bugfix] Added exception for generators in [`return-undefined`](https://palantir.github.io/tslint/rules/return-undefined/) rule (#4370)
- [bugfix] Allow unknown in 'no-object-literal-type-assertion' rule. (#4362)
- [bugfix] Completed docs rule can check single-line comments (#3841)
- [bugfix][`prefer-method-signature`](https://palantir.github.io/tslint/rules/prefer-method-signature/): Correct the auto-fix code of rule, now capable to handle multiline signature. (#4066)
- [bugfix] Default logger.error should log to stderr. (#3982)
- [bugfix] Fixes an issue where TSLint doesn't correctly resolve packages in a `node_modules` folder that are symlinked to another location where their dependencies are satisfied. (#4295)
- [bugfix] Fix configuration tests when comparing rules (#4346)
- [bugfix] Fix semicolon: Cannot read property 'initializer' of undefined (#4351)
- [bugfix] Fix whitespace rule in importClause with 'as' statement (#4249)
- [bugfix][`no-invalid-this`](https://palantir.github.io/tslint/rules/no-invalid-this/): fixes false positives on method-like syntax and false negatives on nested functions (#4034)
- [bugfix][`one-line`](https://palantir.github.io/tslint/rules/one-line/): Check block in a case clause (#3619)
- [bugfix][`whitespace`](https://palantir.github.io/tslint/rules/whitespace/) Don't require space between import and paren with in type imports (#4243)
- [bugfix] remove [`no-unused-variable`](https://palantir.github.io/tslint/rules/no-unused-variable/) from `tslint:all` (#4079)
- [bugfix][`callable-types`](https://palantir.github.io/tslint/rules/callable-types/) support interfaces containing a single construct signature (#4291) (#4352)
- [bugfix][`ordered-imports`](https://palantir.github.io/tslint/rules/ordered-imports/): Setting `import-sources-order: any` no longer invalidates `grouped-imports: true` (#4374)
- [develop] Add issue templates (#4028)
- [develop] Add test for 3.0 (#4119)
- [develop] Changes the node version from 4 to 6 for TS 2.1 tests. (#4282)
- [develop] Fix prettier command in package.json (#4275)
- [develop] Fix semantic merge break from #4374 and #3733 (#4378)
- [develop] Fix typo in launch.json (#4287)
- [develop] Prettier (#4012)
- [develop] Re-ran Prettier on source files again, with some more ignores (#4270)
- [develop] Update 'json-stringify-pretty-compact' to 1.2.0 and remove unnecessary type declaration (#4371)
- [develop] Upgrade prettier and run over all files (#4214)
- [docs] "< 0" means less than zero, not greater than (#4183)
- [docs] Added badges for dependencies status (#4160)
- [docs] Additional code examples for rules (#3869)
- [docs] Clarify no-shadowed-variable doc (#4347)
- [docs] Fix docs typo (#4165)
- [docs] Fix docs typo (#4182)
- [docs] Fix typo in index.md (#4242)
- [docs] Fix typos in formatter descriptions (#4288)
- [docs] Fixed typo in documentation (#4047)
- [docs] Includes new name Azure DevOps for VSO (#4289)
- [docs] Typo correction in no-unused-expression (#4322)
- [docs] Update documentation to reflect changes made in #2229. (#4336)
- [docs] Update stylish example (#4095)
- [docs] Use latest docs deps to avoid vulnerable libs (#4366)
- [docs] prefer-object-spread: this is new to ES2018, not ES2015 (#4321)
- [documentation] Update configuration documentation to include array syntax (#4258)
- [enhancement] Add `homepage` to package.json (#4101)
- [enhancement] Add esSpecCompliant: true to recommended trailing-comma config (#4072)
- [enhancement] Add new tests to workflows (#4054)
- [enhancement] Add quiet flag to hide warnings (#4025)
- [enhancement] Don't flag unmatched ${ in no-invalid-template-strings (#3769)
- [enhancement] Show offending value in 'no-magic-numbers' error message (#4332)
- [enhancement][`ordered-imports`](https://palantir.github.io/tslint/rules/ordered-imports/): When `grouped-imports` option of the rule is set, the fact that imports of the same type are all in one group is also checked. (#3733)
- [enhancement] Yaml parser now uses default schema, allowing for `<<:` to be used to merge anchors (#4350)
- [enhancement] Improve JUnit formatter (#4327)
- [enhancement] completed-docs: check properties and methods in interfaces (#4032)
- [enhancement] file-name-casing-rule supports regex expression for matching file (#4284)
- [enhancement] prose formatter uses `line:column` instead of `[line, column]` (#4222)
- [rule-change] Add "backtick" option for quotemark (#4029)
- [rule-change] Allow void expressions in binary expressions (#4323)

Thanks to our contributors!

- Shinigami
- Matthew Herbst
- Joshua R
- John Wiseheart
- Mitchell Wills
- Eric Ferreira
- Daniel Reichhart
- Rui
- Pavel Birukov
- Brian Schlenker
- Michael Black
- Andy Hanson
- atsu85
- PomanoB
- Oleg Vaskevich
- Daniel McNab
- Jan Pilzer
- Sebastian Silbermann
- Michael Lavina
- reduckted
- Ryan Waskiewicz
- Bowen Ni
- Josh Goldberg
- Erik
- Nathan
- Kevin Verdieck
- Joe Chung
- Peter Safranek
- Xavier Downs
- Igor Ovsiannikov
- RyosukeFukushima
- Andrew Boyton
- samuela
- stefanhamburger
- Carsten Dietzel
- Jakob Warkotsch
- Karthick Manoharan
- Ian Clanton-Thuon
- Yordis Prieto
- Mike Frysinger
- Dario Banfi
- Gérôme Grignon
- Antony74
- Morgan Zolob
- Young Min Kim
- rrogowski
- Eric Anderson
- Simon Marchi
- ulrichb
- Marvin Altemeier
- Ifiok Jr
- Andrew MacLeay
- Ethan
- Dan Homola
- NN
- Roman Rogowski

## v5.11.0

## :warning: Deprecations
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
[![NPM version](https://badge.fury.io/js/tslint.svg)](http://badge.fury.io/js/tslint)
[![Downloads](http://img.shields.io/npm/dm/tslint.svg)](https://npmjs.org/package/tslint)
[![Dependency Status](https://david-dm.org/palantir/tslint.svg)](https://david-dm.org/palantir/tslint)
[![devDependency Status](https://david-dm.org/palantir/tslint/dev-status.svg)](https://david-dm.org/palantir/tslint/?type=dev)
[![peerDependency Status](https://david-dm.org/palantir/tslint/peer-status.svg)](https://david-dm.org/palantir/tslint/?type=peer)
[![Circle CI](https://circleci.com/gh/palantir/tslint.svg?style=svg)](https://circleci.com/gh/palantir/tslint)

# TSLint
Expand All @@ -14,7 +17,7 @@ TSLint supports:
- inline disabling and enabling of rules with comment flags in source code
- configuration presets (`tslint:latest`, `tslint-react`, etc.) and plugin composition
- automatic fixing of formatting & style violations
- integration with [MSBuild](https://github.com/joshuakgoldberg/tslint.msbuild), [Grunt](https://github.com/palantir/grunt-tslint), [Gulp](https://github.com/panuhorsmalahti/gulp-tslint), [Atom](https://github.com/AtomLinter/linter-tslint), [Eclipse](https://github.com/palantir/eclipse-tslint), [Emacs](http://flycheck.org), [Sublime](https://packagecontrol.io/packages/SublimeLinter-contrib-tslint), [Vim](https://github.com/scrooloose/syntastic), [Visual Studio 2015](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.WebAnalyzer), [Visual Studio 2017](https://marketplace.visualstudio.com/items?itemName=RichNewman.TypeScriptAnalyzer), [Visual Studio code](https://marketplace.visualstudio.com/items?itemName=eg2.tslint), [WebStorm](https://www.jetbrains.com/webstorm/help/tslint.html) and [more](https://palantir.github.io/tslint/usage/third-party-tools/)
- integration with [MSBuild](https://github.com/joshuakgoldberg/tslint.msbuild), [Grunt](https://github.com/palantir/grunt-tslint), [Gulp](https://github.com/panuhorsmalahti/gulp-tslint), [Atom](https://github.com/AtomLinter/linter-tslint), [Eclipse](https://github.com/palantir/eclipse-tslint), [Emacs](https://www.flycheck.org/), [Sublime](https://packagecontrol.io/packages/SublimeLinter-contrib-tslint), [Vim](https://github.com/scrooloose/syntastic), [Visual Studio 2015](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.WebAnalyzer), [Visual Studio 2017](https://marketplace.visualstudio.com/items?itemName=RichNewman.TypeScriptAnalyzer), [Visual Studio code](https://marketplace.visualstudio.com/items?itemName=eg2.tslint), [WebStorm](https://www.jetbrains.com/webstorm/help/tslint.html) and [more](https://palantir.github.io/tslint/usage/third-party-tools/)

## Installation & Usage

Expand Down
Loading

0 comments on commit 45aaa7b

Please sign in to comment.