Skip to content

Commit 132c078

Browse files
authored
chore: rename and reorg packages (typescript-eslint#82)
1 parent 78a8b7c commit 132c078

File tree

989 files changed

+286
-825
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

989 files changed

+286
-825
lines changed

Diff for: .github/ISSUE_TEMPLATE/eslint-plugin-tslint.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
name: eslint-plugin-tslint
3-
about: Report an issue with the eslint-plugin-tslint package
2+
name: '@typescript-eslint/eslint-plugin-tslint'
3+
about: Report an issue with the '@typescript-eslint/eslint-plugin-tslint' package
44
title: ''
5-
labels: 'package: eslint-plugin-tslint, triage'
5+
labels: 'package: @typescript-eslint/eslint-plugin-tslint, triage'
66
assignees: ''
77
---
88

@@ -13,8 +13,8 @@ assignees: ''
1313

1414
**What version of the following packages are you using?**
1515

16-
- eslint-plugin-tslint: <!-- Please fill in -->
17-
- typescript-eslint-parser: <!-- Please fill in -->
16+
- @typescript-eslint/eslint-plugin-tslint: <!-- Please fill in -->
17+
- @typescript-eslint/parser: <!-- Please fill in -->
1818
- TypeScript: <!-- Please fill in -->
1919
- ESLint: <!-- Please fill in -->
2020

Diff for: .github/ISSUE_TEMPLATE/eslint-plugin-typescript.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
name: eslint-plugin-typescript
3-
about: Report an issue with the eslint-plugin-typescript package
2+
name: '@typescript-eslint/eslint-plugin'
3+
about: Report an issue with the '@typescript-eslint/eslint-plugin' package
44
title: ''
55
labels: 'package: eslint-plugin, triage'
66
assignees: ''
@@ -38,8 +38,8 @@ Please try to avoid code that isn't directly related to the bug, as it makes it
3838

3939
**Versions**
4040

41-
| package | version |
42-
| -------------------------- | ------- |
43-
| `eslint-plugin-typescript` | `X.Y.Z` |
44-
| `typescript-eslint-parser` | `X.Y.Z` |
45-
| `typescript` | `X.Y.Z` |
41+
| package | version |
42+
| ---------------------------------- | ------- |
43+
| `@typescript-eslint/eslint-plugin` | `X.Y.Z` |
44+
| `@typescript-eslint/parser` | `X.Y.Z` |
45+
| `typescript` | `X.Y.Z` |

Diff for: .github/ISSUE_TEMPLATE/typescript-eslint-parser.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
name: 'typescript-eslint-parser'
3-
about: Report an issue with the typescript-eslint-parser package
2+
name: '@typescript-eslint/parser'
3+
about: Report an issue with the '@typescript-eslint/parser' package
44
title: ''
55
labels: 'package: parser, triage'
66
assignees: ''
@@ -13,7 +13,7 @@ assignees: ''
1313

1414
**What version of the following packages are you using?**
1515

16-
- typescript-eslint-parser: <!-- Please fill in -->
16+
- @typescript-eslint/parser: <!-- Please fill in -->
1717
- TypeScript: <!-- Please fill in -->
1818
- ESLint: <!-- Please fill in -->
1919

Diff for: .github/ISSUE_TEMPLATE/typescript-estree.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
2-
name: typescript-estree
3-
about: Report an issue with the `typescript-estree` package
2+
name: '@typescript-eslint/typescript-estree'
3+
about: Report an issue with the `@typescript-eslint/typescript-estree` package
44
title: ''
55
labels: 'package: typescript-estree, triage'
66
assignees: ''
77
---
88

99
**What version of TypeScript are you using?**
1010

11-
**What version of `typescript-estree` are you using?**
11+
**What version of `@typescript-eslint/typescript-estree` are you using?**
1212

1313
**What code were you trying to parse?**
1414

Diff for: .prettierignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
**/tests/fixtures/**/*
22
**/dist
33
**/coverage
4-
**/typescript-eslint-shared-fixtures
4+
**/shared-fixtures
55
**/tests/integration/fixtures/**/*
66
**/lib/configs/recommended.json
77
**/.vscode

Diff for: .travis.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ install:
1919
script:
2020
- commitlint-travis
2121
- yarn check-format
22-
- yarn workspace eslint-plugin-typescript docs:check
22+
# TODO: Fix this check
23+
# - yarn workspace eslint-plugin docs:check
2324
- yarn build
2425
- yarn test
2526
- yarn integration-tests
@@ -29,3 +30,9 @@ after_success:
2930
branches:
3031
only:
3132
- master
33+
deploy:
34+
on:
35+
branch: master
36+
provider: script
37+
script: npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN && npx lerna publish --canary --force-publish --yes
38+
skip_cleanup: true

Diff for: README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616

1717
This repo contains several packages which allow ESLint users to lint their TypeScript code.
1818

19-
- [`typescript-estree`](./packages/typescript-estree/) - An entirely generic TypeScript parser which takes TypeScript source code and produces an <a href="https://github.com/estree/estree">ESTree</a>-compatible AST</p>
19+
- [`@typescript-eslint/typescript-estree`](./packages/typescript-estree/) - An entirely generic TypeScript parser which takes TypeScript source code and produces an <a href="https://github.com/estree/estree">ESTree</a>-compatible AST</p>
2020

2121
- This package is also used to power the amazing opinionated code formatter [Prettier](https://prettier.io)'s own TypeScript use-case.
2222

23-
- [`typescript-eslint-parser`](./packages/typescript-eslint-parser/) - An ESLint-specific parser which leverages `typescript-estree` and is designed to be used as a replacement for ESLint's default parser, `espree`.
23+
- [`@typescript-eslint/parser`](./packages/parser/) - An ESLint-specific parser which leverages `typescript-estree` and is designed to be used as a replacement for ESLint's default parser, `espree`.
2424

25-
- [`eslint-plugin-typescript`](./packages/eslint-plugin-typescript/) - An ESLint-specific plugin which, when used in conjunction with `typescript-eslint-parser`, allows for TypeScript-specific linting rules to run.
25+
- [`@typescript-eslint/eslint-plugin`](./packages/eslint-plugin/) - An ESLint-specific plugin which, when used in conjunction with `@typescript-eslint/parser`, allows for TypeScript-specific linting rules to run.
2626

27-
- [`eslint-plugin-tslint`](./packages/eslint-plugin-tslint) - An ESLint-specific plugin which runs an instance of TSLint within your ESLint setup to allow for users to more easily migrate from TSLint to ESLint.
27+
- [`@typescript-eslint/eslint-plugin-tslint`](./packages/eslint-plugin-tslint) - An ESLint-specific plugin which runs an instance of TSLint within your ESLint setup to allow for users to more easily migrate from TSLint to ESLint.
2828

2929
## Supported TypeScript Version
3030

@@ -42,4 +42,4 @@ COMING SOON!
4242

4343
## License
4444

45-
TypeScript ESTree inherits from the the original TypeScript ESLint Parser license, as the majority of the work began there. It is licensed under a permissive BSD 2-clause license.
45+
TypeScript ESLint inherits from the the original TypeScript ESLint Parser license, as the majority of the work began there. It is licensed under a permissive BSD 2-clause license.

Diff for: lerna.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.0.0",
2+
"version": "0.2.0",
33
"npmClient": "yarn",
44
"useWorkspaces": true,
55
"stream": true

Diff for: package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "typescript-eslint",
2+
"name": "@typescript-eslint/typescript-eslint",
33
"private": true,
44
"workspaces": [
55
"packages/*"
@@ -62,7 +62,7 @@
6262
"@types/node": "^10.12.2",
6363
"@types/semver": "^5.5.0",
6464
"cz-conventional-changelog": "2.1.0",
65-
"eslint": "^4.19.1",
65+
"eslint": "^5.12.1",
6666
"glob": "7.1.2",
6767
"husky": "0.14.3",
6868
"jest": "23.6.0",
@@ -72,6 +72,7 @@
7272
"prettier": "^1.14.3",
7373
"rimraf": "^2.6.3",
7474
"ts-jest": "^23.10.4",
75+
"tslint": "^5.11.0",
7576
"typescript": "~3.2.1"
7677
}
7778
}

Diff for: packages/eslint-plugin-tslint/CHANGELOG.md

-27
Original file line numberDiff line numberDiff line change
@@ -1,27 +0,0 @@
1-
# [3.1.0](https://github.com/JamesHenry/eslint-plugin-tslint/compare/v3.0.0...v3.1.0) (2018-10-19)
2-
3-
### Bug Fixes
4-
5-
- Tiny lint note elimination ([a731838](https://github.com/JamesHenry/eslint-plugin-tslint/commit/a731838))
6-
7-
### Features
8-
9-
- Support for tslint property ([18a4afb](https://github.com/JamesHenry/eslint-plugin-tslint/commit/18a4afb)), closes [#40](https://github.com/JamesHenry/eslint-plugin-tslint/issues/40)
10-
11-
# [3.0.0](https://github.com/JamesHenry/eslint-plugin-tslint/compare/v2.1.0...v3.0.0) (2018-09-09)
12-
13-
### Bug Fixes
14-
15-
- Fixed bug when file not defined in tsconfig ([20b498b](https://github.com/JamesHenry/eslint-plugin-tslint/commit/20b498b))
16-
- Pass sourceText parameter to service getSource ([dd4c2f8](https://github.com/JamesHenry/eslint-plugin-tslint/commit/dd4c2f8))
17-
- Update program when sourceFile was updated ([0fe933c](https://github.com/JamesHenry/eslint-plugin-tslint/commit/0fe933c))
18-
- Updated typescript-service dependency ([2f4f434](https://github.com/JamesHenry/eslint-plugin-tslint/commit/2f4f434))
19-
20-
### Features
21-
22-
- **core:** Added support rules requires type information ([6bc1deb](https://github.com/JamesHenry/eslint-plugin-tslint/commit/6bc1deb)), closes [#32](https://github.com/JamesHenry/eslint-plugin-tslint/issues/32) [#34](https://github.com/JamesHenry/eslint-plugin-tslint/issues/34)
23-
- Post merge adapdation from tslint2 repository ([477c656](https://github.com/JamesHenry/eslint-plugin-tslint/commit/477c656)), closes [#32](https://github.com/JamesHenry/eslint-plugin-tslint/issues/32) [#34](https://github.com/JamesHenry/eslint-plugin-tslint/issues/34)
24-
25-
### BREAKING CHANGES
26-
27-
- New dependency

Diff for: packages/eslint-plugin-tslint/README.md

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
# ESLint Plugin TSLint
22

3-
[![Travis](https://img.shields.io/travis/JamesHenry/eslint-plugin-tslint.svg?style=flat-square)](https://travis-ci.org/JamesHenry/eslint-plugin-tslint)
4-
[![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)
5-
[![NPM Version](https://img.shields.io/npm/v/eslint-plugin-tslint.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-tslint)
6-
[![NPM Downloads](https://img.shields.io/npm/dt/eslint-plugin-tslint.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-tslint)
3+
[![Travis](https://img.shields.io/travis/@typescript-eslint/eslint-plugin-tslint.svg?style=flat-square)](https://travis-ci.org/@typescript-eslint/eslint-plugin-tslint)
4+
[![GitHub license](https://img.shields.io/npm/l/@typescript-eslint/eslint-plugin-tslint.svg?style=flat-square)](https://github.com/@typescript-eslint/eslint-plugin-tslint/blob/master/LICENSE)
5+
[![NPM Version](https://img.shields.io/npm/v/@typescript-eslint/eslint-plugin-tslint.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/eslint-plugin-tslint)
6+
[![NPM Downloads](https://img.shields.io/npm/dt/@typescript-eslint/eslint-plugin-tslint.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/eslint-plugin-tslint)
77
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
8-
[![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)
9-
[![greenkeeper.io](https://badges.greenkeeper.io/JamesHenry/mongoose-schema-to-typescript-interface.svg?style=flat-square)](https://greenkeeper.io)
108

119
ESLint plugin wraps a TSLint configuration and lints the whole source using TSLint.
1210

1311
## INSTALL
1412

1513
```
16-
npm i -D eslint-plugin-tslint
14+
npm i -D @typescript-eslint/eslint-plugin-tslint
1715
```
1816

1917
## USAGE

Diff for: packages/eslint-plugin-tslint/package.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "eslint-plugin-tslint",
3-
"version": "3.1.0",
2+
"name": "@typescript-eslint/eslint-plugin-tslint",
3+
"version": "0.2.0",
44
"main": "dist/index.js",
55
"typings": "src/index.ts",
66
"description": "TSLint wrapper plugin for ESLint",
@@ -33,7 +33,6 @@
3333
"devDependencies": {
3434
"@types/eslint": "^4.16.3",
3535
"@types/lodash.memoize": "^4.1.4",
36-
"typescript-eslint-parser": "21.0.2",
37-
"tslint": "^5.11.0"
36+
"@typescript-eslint/parser": "0.2.0"
3837
}
3938
}

Diff for: packages/eslint-plugin-tslint/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ export const rules = {
9898

9999
/**
100100
* The user needs to have configured "project" in their parserOptions
101-
* for typescript-eslint-parser
101+
* for @typescript-eslint/parser
102102
*/
103103
if (!parserServices || !parserServices.program) {
104104
throw new Error(
105-
`You must provide a value for the "parserOptions.project" property for typescript-eslint-parser`
105+
`You must provide a value for the "parserOptions.project" property for @typescript-eslint/parser`
106106
);
107107
}
108108

Diff for: packages/eslint-plugin-tslint/tests/index.spec.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const parserOptions: any = {
1010
ecmaFeatures: {},
1111
/**
1212
* Project is needed to generate the parserServices
13-
* within typescript-eslint-parser
13+
* within @typescript-eslint/parser
1414
*/
1515
project: './tests/tsconfig.json'
1616
};
@@ -40,7 +40,7 @@ ruleTester.run('tslint/config', rules.config, {
4040
valid: [
4141
{
4242
code: 'var foo = true;',
43-
parser: 'typescript-eslint-parser',
43+
parser: '@typescript-eslint/parser',
4444
parserOptions,
4545
options: [tslintRulesConfig]
4646
},
@@ -50,7 +50,7 @@ ruleTester.run('tslint/config', rules.config, {
5050
/\n/g,
5151
' '
5252
),
53-
parser: 'typescript-eslint-parser',
53+
parser: '@typescript-eslint/parser',
5454
parserOptions: {
5555
...parserOptions,
5656
project: `${__dirname}/test-project/tsconfig.json`
@@ -63,7 +63,7 @@ ruleTester.run('tslint/config', rules.config, {
6363
},
6464
{
6565
code: 'throw "should be ok because rule is not loaded";',
66-
parser: 'typescript-eslint-parser',
66+
parser: '@typescript-eslint/parser',
6767
parserOptions,
6868
options: [tslintRulesConfig]
6969
}
@@ -72,7 +72,7 @@ ruleTester.run('tslint/config', rules.config, {
7272
invalid: [
7373
{
7474
options: [{ lintFile: './tests/test-project/tslint.json' }],
75-
parser: 'typescript-eslint-parser',
75+
parser: '@typescript-eslint/parser',
7676
parserOptions,
7777
code: 'throw "err" // no-string-throw',
7878
errors: [
@@ -84,7 +84,7 @@ ruleTester.run('tslint/config', rules.config, {
8484
},
8585
{
8686
code: 'var foo = true // semicolon',
87-
parser: 'typescript-eslint-parser',
87+
parser: '@typescript-eslint/parser',
8888
parserOptions,
8989
options: [tslintRulesConfig],
9090
output: 'var foo = true // semicolon',
@@ -98,7 +98,7 @@ ruleTester.run('tslint/config', rules.config, {
9898
},
9999
{
100100
code: 'var foo = true // fail',
101-
parser: 'typescript-eslint-parser',
101+
parser: '@typescript-eslint/parser',
102102
parserOptions,
103103
options: [tslintRulesDirectoryConfig],
104104
output: 'var foo = true // fail',
@@ -116,7 +116,7 @@ ruleTester.run('tslint/config', rules.config, {
116116
/\n/g,
117117
' '
118118
),
119-
parser: 'typescript-eslint-parser',
119+
parser: '@typescript-eslint/parser',
120120
parserOptions: {
121121
...parserOptions,
122122
project: `${__dirname}/test-project/tsconfig.json`

Diff for: packages/eslint-plugin-typescript/lib/configs/recommended.json

-42
This file was deleted.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)