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' into format
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-hanson committed Aug 9, 2018
2 parents 485dfa1 + 9b7574b commit 03f6395
Show file tree
Hide file tree
Showing 696 changed files with 21,044 additions and 4,156 deletions.
153 changes: 153 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
version: 2
jobs:
build:
docker:
- image: circleci/node:latest
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
- run:
name: Install dependencies
command: yarn
- save_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
paths:
- node_modules
- run: yarn compile
- persist_to_workspace:
root: '.'
paths:
- lib
- build
- yarn.lock
lint:
docker:
- image: circleci/node:latest
steps:
- checkout
- attach_workspace:
at: '.'
- restore_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
- run: yarn lint
test:
docker:
- image: circleci/node:8
steps:
- checkout
- attach_workspace:
at: '.'
- restore_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
- run: yarn test
test2.1:
docker:
- image: circleci/node:4
steps:
- checkout
- attach_workspace:
at: '.'
- restore_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
- run: yarn add typescript@2.1
- run: yarn test
test2.4:
docker:
- image: circleci/node:6
steps:
- checkout
- attach_workspace:
at: '.'
- restore_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
- run: yarn add typescript@2.4
- run: yarn test
test2.7:
docker:
- image: circleci/node:6
steps:
- checkout
- attach_workspace:
at: '.'
- restore_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
- run: yarn add typescript@2.7
- run: yarn test
test2.8:
docker:
- image: circleci/node:6
steps:
- checkout
- attach_workspace:
at: '.'
- restore_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
- run: yarn add typescript@2.8
- run: yarn test
test2.9:
docker:
- image: circleci/node:6
steps:
- checkout
- attach_workspace:
at: '.'
- restore_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
- run: yarn add typescript@2.9
- run: yarn test
testRc:
docker:
- image: circleci/node:6
steps:
- checkout
- attach_workspace:
at: '.'
- restore_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
- run: yarn add typescript@rc
- run: yarn test
testNext:
docker:
- image: circleci/node:latest
steps:
- checkout
- attach_workspace:
at: '.'
- restore_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
- run: yarn add typescript@next
- run: yarn test

workflows:
version: 2
build_lint_test:
jobs:
- build
- lint:
requires:
- build
- test:
requires:
- build
- test2.1:
requires:
- build
- test2.4:
requires:
- build
- test2.7:
requires:
- build
- test2.8:
requires:
- build
- test2.9:
requires:
- build
- testRc:
requires:
- build
- testNext:
requires:
- build
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[tslint.json]
indent_size = 2
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
/test/rules/linebreak-style/**/CRLF/*.lint text eol=crlf
/test/rules/linebreak-style/**/LF/*.fix text eol=crlf
/test/rules/jsdoc-format/**/jsdoc-windows.ts.lint text eol=crlf
/test/rules/object-literal-sort-keys/default/crlf.ts.lint eol=crlf
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Bug report
about: Report a bug in TSLint

---

### Bug Report

- __TSLint version__:
- __TypeScript version__:
- __Running TSLint via__: (pick one) CLI / Node.js API / VSCode / grunt-tslint / Atom / Visual Studio / etc

#### TypeScript code being linted

```ts
// code snippet
```

with `tslint.json` configuration:

```json

```

#### Actual behavior

#### Expected behavior
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Feature request
about: Suggest a non-rule idea for TSLint

---

### Feature request

**Is your feature request that we implement a new rule?**
Please use the `Rule Suggestion` template instead

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE/rule-suggestion.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: Rule suggestion
about: Suggest a new rule for TSLint

---

### Rule Suggestion

**Is your rule for a general problem or is it specific to your development style?**

**What does your suggested rule do?**

**List several examples where your rule could be used**

**Additional context**
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ node_modules/
!test/rules/**/node_modules
tscommand*.txt
npm-debug.log
package-lock.json
# created by grunt-ts for faster compiling
typings/.basedir.ts

Expand All @@ -19,7 +20,12 @@ typings/.basedir.ts
*.swp

docs/_data/rules.json
docs/_data/formatters.json
docs/rules/*/index.html
docs/formatters/*/index.html

/coverage/
/.nyc_output
/.nyc_output

# ide
/.idea
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
.vscode
.nycrc
.editorconfig
.circleci
appveyor.yml
circle.yml
tslint.json
Expand Down
27 changes: 27 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
/node_modules

# testing
/coverage

# production
/build

# ide
/.idea

# npm
package-lock.json

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
4 changes: 4 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"tabWidth": 4,
"printWidth": 100
}
12 changes: 8 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"NODE_ENV": "development"
},
"console": "internalConsole",
"outputCapture": "std",
"sourceMaps": true,
"outFiles": ["${workspaceRoot}/build/**/*.js"]
},
Expand All @@ -27,7 +28,7 @@
"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"],
"args": ["--reporter", "spec", "--colors", "--no-timeouts", "build/test/**/*Tests.js"],
"cwd": "${workspaceRoot}",
"preLaunchTask": "tsc",
"runtimeExecutable": null,
Expand All @@ -38,7 +39,8 @@
"NODE_ENV": "development"
},
"console": "internalConsole",
"sourceMaps": true,
"outputCapture": "std",
"sourceMaps": true,
"outFiles": ["${workspaceRoot}/build/**/*.js"]
},
{
Expand All @@ -58,7 +60,8 @@
"NODE_ENV": "development"
},
"console": "internalConsole",
"sourceMaps": true,
"outputCapture": "std",
"sourceMaps": true,
"outFiles": ["${workspaceRoot}/build/**/*.js"]
},
{
Expand All @@ -78,7 +81,8 @@
"NODE_ENV": "development"
},
"console": "internalConsole",
"sourceMaps": true,
"outputCapture": "std",
"sourceMaps": true,
"outFiles": ["${workspaceRoot}/build/**/*/js"]
}
]
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
},

// Always use project's provided typescript compiler version
"typescript.tsdk": "node_modules/typescript/lib"
"typescript.tsdk": "node_modules/typescript/lib",
"files.eol": "\n"
}

0 comments on commit 03f6395

Please sign in to comment.