Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:palantir/tslint into alex
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/language/rule/typedRule.ts
#	src/rules/preferForOfRule.ts
#	src/test.ts
#	src/tslintMulti.ts
  • Loading branch information
Noah Chen committed Nov 23, 2016
2 parents 6d333a4 + e0869e4 commit bcc86a2
Show file tree
Hide file tree
Showing 520 changed files with 9,168 additions and 9,797 deletions.
9 changes: 0 additions & 9 deletions .eslintrc.json

This file was deleted.

14 changes: 14 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#### PR checklist

- [ ] Addresses an existing issue: #0000
- [ ] New feature, bugfix, or enhancement
- [ ] Includes tests
- [ ] Documentation update

#### What changes did you make?

(give an overview)

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

(optional)
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
/build/
/docs/site/
/scripts/*.js
/scripts/*.js.map
/lib/
/test/executable/tslint.json
node_modules/
tscommand*.txt
npm-debug.log
# created by grunt-ts for faster compiling
typings/.basedir.ts

Expand Down
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
.vscode
appveyor.yml
circle.yml
Gruntfile.js
tslint.json
/build/
/docs/
/scripts/
/src/
/test/
tscommand*.txt
89 changes: 89 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
{
"version": "0.1.0",
"configurations": [
{
"name": "Debug CLI",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/build/src/tslint-cli.js",
"stopOnEntry": false,
"args": [],
"cwd": "${workspaceRoot}",
"preLaunchTask": "tsc",
"runtimeExecutable": null,
"runtimeArgs": [
"--nolazy"
],
"env": {
"NODE_ENV": "development"
},
"console": "internalConsole",
"sourceMaps": true,
"outFiles": [],
"outDir": "${workspaceRoot}/build"
},
{
"name": "Debug Mocha Tests",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"stopOnEntry": false,
"args": ["--reporter", "spec", "--colors", "--no-timeouts", "build/test/**/*Tests.js", "build/test/assert.js"],
"cwd": "${workspaceRoot}",
"preLaunchTask": "tsc",
"runtimeExecutable": null,
"runtimeArgs": [
"--nolazy"
],
"env": {
"NODE_ENV": "development"
},
"console": "internalConsole",
"sourceMaps": true,
"outFiles": [],
"outDir": "${workspaceRoot}/build"
},
{
"name": "Debug Rule Tests",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/test/ruleTestRunner.ts",
"stopOnEntry": false,
"args": ["run", "test"],
"cwd": "${workspaceRoot}",
"preLaunchTask": "tsc",
"runtimeExecutable": null,
"runtimeArgs": [
"--nolazy"
],
"env": {
"NODE_ENV": "development"
},
"console": "internalConsole",
"sourceMaps": true,
"outFiles": [],
"outDir": "${workspaceRoot}/build"
},
{
"name": "Debug Document Generation",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/scripts/buildDocs.ts",
"stopOnEntry": false,
"args": ["run", "test"],
"cwd": "${workspaceRoot}",
"preLaunchTask": "tsc",
"runtimeExecutable": null,
"runtimeArgs": [
"--nolazy"
],
"env": {
"NODE_ENV": "development"
},
"console": "internalConsole",
"sourceMaps": true,
"outFiles": [],
"outDir": "${workspaceRoot}/build"
}
]
}
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@
"build",
"lib",
"node_modules"
]
],

// Always use project's provided typescript compiler version
"typescript.tsdk": "node_modules/typescript/lib"
}
30 changes: 11 additions & 19 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
// Available variables which can be used inside of strings.
// ${workspaceRoot}: the root folder of the team
// ${file}: the current opened file
// ${fileBasename}: the current opened file's basename
// ${fileDirname}: the current opened file's dirname
// ${fileExtname}: the current opened file's extension
// ${cwd}: the current working directory of the spawned process

// A task runner that calls scripts/tsc-wrapper.js. The wrapper script traverses
// up the file system until a valid `tsconfig.json` is found, and runs `tsc` from
// node_modules with that path as the root
{
"version": "0.1.0",
"command": "${workspaceRoot}/scripts/tsc-wrapper.js",
"isShellCommand": true,
"showOutput": "silent",
"args": ["${workspaceRoot}", "${fileDirname}"],
"problemMatcher": "$tsc"
}
{
// 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"
}
137 changes: 137 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,139 @@
Change Log
===

v4.0.2
---
* [enhancement] Don't exit when a rule can't be found. Print as a warning instead (#1771)
* [api-change] Allow 3rd party apps to see exception when the config is invalid (#1764)
* [bugfix] Don't flag a property named as empty string as not needing quotes in an object literal (#1762)
* [bugfix] Report correct number of fixes done by --fix (#1767)
* [bugfix] Fix false positives and exceptions in `prefer-for-of` (#1758)
* [bugfix] Fix `adjacent-overload-signatures` false positive when a static function has the same name (#1772)

Thanks to our contributors!
* @gustavderdrache

v4.0.1
---
* [bugfix] Removed `no-unused-variable` rule from recommended config, as it was causing spurious deprecation warnings.

v4.0.0-dev.2
---
* Include latest v4.0.0 changes

v4.0.0
---
* **BREAKING CHANGES**
* [api-change] Minor changes to the library API. See this PR for changes and upgrade instructions (#1720)
* [removed-rule] Removed `no-unreachable` rule; covered by compiler (#661)
* [enhancement] Changed order of applied configuration files for the `extends` array to make it more intuitive. (#1503)
* [enhancement] Changed TypeScript peer dependency to >= 2.0.0 (#1710)
* [new-rule] `completed-docs` rule added (#1644)
* [new-fixer] `ordered-imports` auto fixed (#1640)
* [new-fixer] `arrow-parens` auto fixed (#1731)
* [rule-change] `indent` rule now ignores template strings (#1611)
* [new-rule-option] `object-literal-key-quotes` adds the options `consistent` and `consistent-as-needed` (#1733)
* [enhancement] `--fix` option added to automatically fix selected rules (#1697)
* [enhancement] Updated recommend rules (#1717)
* [enhancement] `adjacent-overload-signatures` now works with classes, source files, modules, and namespaces (#1707)
* [enhancement] Users are notified if they are using an old TSLint version (#1696)
* [bugfix] Lint `.jsx` files if `jsRules` are configured (#1714)
* [bugfix] Command line glob patterns now handle single quotes (#1679)

Thanks to our contributors!
* Andrii Dieiev
* Andy
* Chris Barr
* Davie Schoots
* Jordan Hawker
* Josh Goldberg
* Stepan Riha
* Yuichi Nukiyama

v4.0.0-dev.1
---
* **BREAKING CHANGES**
* [enhancement] The `semicolon` rule now disallows semicolons in multi-line bound class methods
(to get the v3 behavior, use the `ignore-bound-class-methods` option) (#1643)
* [removed-rule] Removed `use-strict` rule (#678)
* [removed-rule] Removed `label-undefined` rule; covered by compiler (#1614)
* [enhancement] Renamed `no-constructor-vars` to `no-parameter-properties` (#1296)
* [rule-change] The `orderedImports` rule now sorts relative modules below non-relative modules (#1640)
* **Deprecated**
* [deprecated] `no-unused-variable` rule. This is checked by the TypeScript v2 compiler using the flags [`--noUnusedParameters` and `--noUnusedLocals`](https://github.com/Microsoft/TypeScript/wiki/What%27s-new-in-TypeScript#flag-unused-declarations-with---nounusedparameters-and---nounusedlocals). (#1481)
* [enhancement] Lint .js files (#1515)
* [new-fixer] `no-var-keyword` replaces `var` with `let` (#1547)
* [new-fixer] `trailing-comma` auto fixed (#1546)
* [new-fixer] `no-unused-variable` auto fixed for imports (#1568)
* [new-fixer] `semicolon` auto fixed (#1423)
* [new-rule] `max-classes-per-file` rule added (#1666)
* [new-rule-option] `no-consecutive-blank-lines` rule now accepts a number value indicating max blank lines (#1650)
* [new-rule-option] `ordered-inputs` rule option `input-sources-order` accepts value `any` (#1602)
* [bugfix] `no-empty` rule fixed when parameter has readonly modifier
* [bugfix] `no-namespace` rule: do not flag nested or .d.ts namespaces (#1571)

Thanks to our contributors!

* Alex Eagle
* Andrii Dieiev
* Ben Coveney
* Boris Aranovich
* Chris Barr
* Cyril Gandon
* Evgeniy Zhukovskiy
* Jay Anslow
* Kunal Marwaha
* Martin Probst
* Mingye Wang
* Raghav Katyal
* Sean Dawson
* Yuichi Nukiyama
* jakpaw

v4.0.0-dev.0
---
* **BREAKING CHANGES**
* [enhancement] Drop support for configuration via package.json (#1579)
* [removed-rule] Removed `no-duplicate-key` rule; covered by compiler (#1109)
* [enhancement] Call formatter once for all file results. Format output may be different (#656)
* [rule-change] `trailing-comma` supports function declarations, expressions, and types (#1486)
* [rule-change] `object-literal-sort-keys` now sorts quoted keys (#1529)
* [rule-change] `semicolon` now processes type aliases (#1475)
* [rule-change] `no-var-keyword` now rejects `export var` statements (#1256)
* [rule-change] `semicolon` now requires semicolon for function declaration with no body (#1447)
* [new-formatter] `fileslist` formatter writes a list of files with errors without position or error type specifics (#1558)
* [new-rule] `cyclomaticComplexity`, enforces a threshold of cyclomatic complexity.] (#1464)
* [new-rule] `prefer-for-of`, which errors when `for(var x of y)` can be used instead of `for(var i = 0; i < y.length; i++)` (#1335)
* [new-rule] `array-type`, which can require using either `T[]' or 'Array<T>' for arrays (#1498)
* [rule-change] `object-literal-sort-keys` checks multiline objects only (#1642)
* [rule-change] `ban` rule now can ban global functions (#327)
* [bugfix] always write lint result, even if using formatter (#1353)
* [bugfix] npm run test:bin fails on Windows (#1635)
* [bugfix] Don't enforce trailing spaces on newlines in typedef-whitespace rule (#1531)
* [bugfix] `jsdoc` rule should not match arbitrary comments (#1543)
* [bugfix] `one-line` rule errors when declaring wildcard ambient modules (#1425)

Thanks to our contributors!

* Alex Eagle
* Andrii Dieiev
* Andy Hanson
* Ben Coveney
* Boris Aranovich
* Chris Barr
* Christian Dreher
* Claas Augner
* Josh Goldberg
* Martin Probst
* Mike Deverell
* Nina Hartmann
* Satoshi Amemiya
* Scott Wu
* Steve Van Opstal
* Umar Bolatov
* Vladimir Matveev
* Yui

v3.15.1
---
* Enabled additional rules in `tslint:latest` configuration (#1506)
Expand Down Expand Up @@ -80,6 +213,10 @@ Thanks to our contributors!
* @janaagaard75
* @mprobst

v3.12.0-dev.2
---
* [enhancement] Support TypeScript v2.0.0-dev builds

v3.12.1
---
* Stable release containing changes from the last dev release (v3.12.0-dev.1)
Expand Down
Loading

0 comments on commit bcc86a2

Please sign in to comment.