8000 feat: Post merge adapdation from tslint2 repository · JamesHenry/eslint-plugin-tslint@477c656 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jan 18, 2019. It is now read-only.

Commit 477c656

Browse files
author
roman.vasilev
committed
feat: Post merge adapdation from tslint2 repository
Support rules which requires type information, support tsx BREAKING CHANGE: New dependency #32 #34
1 parent efce595 commit 477c656

File tree

4 files changed

+38
-61
lines changed

4 files changed

+38
-61
lines changed

.travis.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
sudo: false
2+
notifications:
3+
email: false
4+
language: node_js
5+
cache:
6+
directories:
7+
- node_modules
8+
node_js:
9+
- '9'
10+
- '8'
11+
install:
12+
- npm install
13+
script:
14+
- npm test
15+
deploy:
16+
provider: script
17+
script: npx semantic-release
18+
on:
19+
branch: master

CHANGELOG.md

Lines changed: 0 additions & 42 deletions
This file was deleted.

README.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
1-
# eslint-plugin-tslint2
1+
# ESLint Plugin TSLint
2+
[![Travis](https://img.shields.io/travis/JamesHenry/eslint-plugin-tslint.svg?style=flat-square)](https://travis-ci.org/JamesHenry/eslint-plugin-tslint)
3+
[![GitHub license](https://img.shields.io/npm/l/eslint-plugin-tslint.svg?style=flat-square)](https://github.com/JamesHenry/eslint-plugin-tslint/blob/master/LICENSE)
4+
[![NPM Version](https://img.shields.io/npm/v/eslint-plugin-tslint.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-tslint)
5+
[![NPM Downloads](https://img.shields.io/npm/dt/eslint-plugin-tslint.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-tslint)
6+
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
7+
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release)
8+
[![greenkeeper.io](https://badges.greenkeeper.io/JamesHenry/mongoose-schema-to-typescript-interface.svg?style=flat-square)](https://greenkeeper.io)
9+
210
ESLint plugin wraps a TSLint configuration and lints the whole source using TSLint.
3-
Fork of [eslint-plugin-tslint](https://github.com/JamesHenry/eslint-plugin-tslint), the main difference are:
4-
- Support rules which requires type information
5-
- Support tsx
611

712
## INSTALL
813
```
9-
npm i -D eslint-plugin-tslint2
14+
npm i -D eslint-plugin-tslint
1015
```
1116

1217
## USAGE
1318
Configure in your eslint config file:
1419
```
1520
"plugins": [
16-
"tslint2"
21+
"tslint"
1722
],
1823
"rules": {
19-
"tslint2/config": ["warn", {
24+
"tslint/config": ["warn", {
2025
rules: { /* tslint rules */ },
2126
rulesDirectory: [ /* array of paths to directories with rules, e.g. 'node_modules/tslint/lib/rules' */ ],
2227
configFile: '/* path to tsconfig.json of your project */',
@@ -26,7 +31,7 @@ Configure in your eslint config file:
2631
```
2732

2833
## RULES
29-
Plugin contains only single rule `tslint2/config`.
34+
Plugin contains only single rule `tslint/config`.
3035

3136
## EXAMPLES
3237
* [unlight/node-package-starter/.eslintrc.js](https://github.com/unlight/node-package-starter/blob/master/.eslintrc.js)

package.json

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "eslint-plugin-tslint2",
2+
"name": "eslint-plugin-tslint",
33
"version": "2.2.4",
44
"main": "dist/index.js",
55
"typings": "src/index.ts",
@@ -16,17 +16,17 @@
1616
],
1717
"repository": {
1818
"type": "git",
19-
"url": "git+https://github.com/unlight/eslint-plugin-tslint2.git"
19+
"url": "git+https://github.com/JamesHenry/eslint-plugin-tslint.git"
2020
},
2121
"license": "MIT",
2222
"scripts": {
23-
"test": "npm run tscheck && npm run test:cov",
23+
"test": "npm run eslint && npm run tscheck && npm run test:cov",
2424
"tscheck": "echo tscheck... && tsc --noEmit",
2525
"test:r": "mocha -r ts-node/register/transpile-only --timeout 8s test/*.spec.ts",
2626
"test:w": "mocha -r ts-node/register/transpile-only --watch-extensions ts --watch --timeout 8s test/**/*.spec.ts",
2727
"test:cov": "nyc mocha --timeout 8s test/**/*.spec.ts",
2828
"test:d": "node --inspect-brk -r ts-node/register/transpile-only node_modules/mocha/bin/_mocha --no-timeouts --watch-extensions ts --watch test/**/*.spec.ts",
29-
"semantic-release": "semantic-release",
29+
"eslint": "eslint src --ext ts",
3030
"prepublishOnly": "npm run build && sed -i -e 's/devDependencies/_devDependencies/g' package.json",
3131
"build": "tsc",
3232
"prebuild": "npm run clean",
@@ -78,11 +78,6 @@
7878
"instrument": true
7979
},
8080
"release": {
81-
"generateNotes": {
82-
"writerOpts": {
83-
"__keep": "me"
84-
}
85-
},
8681
"verifyConditions": [
8782
"@semantic-release/changelog",
8883
"@semantic-release/github",
@@ -111,9 +106,9 @@
111106
}
112107
},
113108
"bugs": {
114-
"url": "https://github.com/unlight/eslint-plugin-tslint2/issues"
109+
"url": "https://github.com/JamesHenry/eslint-plugin-tslint/issues"
115110
},
116-
"homepage": "https://github.com/unlight/eslint-plugin-tslint2#readme",
111+
"homepage": "https://github.com/JamesHenry/eslint-plugin-tslint#readme",
117112
"directories": {
118113
"test": "test"
119114
}

0 commit comments

Comments
 (0)
0