Skip to content

Commit 5e91d93

Browse files
committed
chore: remove tslint related code
1 parent bf4addd commit 5e91d93

File tree

14 files changed

+3
-370
lines changed

14 files changed

+3
-370
lines changed

docs/core-plugins/typescript.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ Since `3.0.0-rc.6`, `typescript` is now a peer dependency of this package, so yo
1212

1313
This plugin can be used alongside `@vue/cli-plugin-babel`. When used with Babel, this plugin will output ES2015 and delegate the rest to Babel for auto polyfill based on browser targets.
1414

15-
## Injected Commands
16-
17-
If opted to use [TSLint](https://palantir.github.io/tslint/) during project creation, `vue-cli-service lint` will be injected.
18-
1915
## Caching
2016

2117
[cache-loader](https://github.com/webpack-contrib/cache-loader) is enabled by default and cache is stored in `<projectRoot>/node_modules/.cache/ts-loader`.

docs/ru/core-plugins/typescript.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ TypeScript может быть сконфигурирован через `tsconf
1212

1313
Этот плагин может использоваться вместе с `@vue/cli-plugin-babel`. При использовании вместе с Babel, этот плагин должен генерировать ES2015 и делегировать остальное Babel для автоматического добавления полифилов на основе целевых браузеров.
1414

15-
## Внедряемые команды
16-
17-
При выборе [TSLint](https://palantir.github.io/tslint/) на этапе создания проекта, будет внедряться команда `vue-cli-service lint`.
18-
1915
## Кэширование
2016

2117
[cache-loader](https://github.com/webpack-contrib/cache-loader) используется по умолчанию, кэш хранится в `<projectRoot>/node_modules/.cache/ts-loader`.

packages/@vue/cli-plugin-e2e-cypress/__tests__/cypressPlugin.spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ test('should work with TS', async () => {
3030
plugins: {
3131
'@vue/cli-plugin-typescript': {
3232
'classComponent': true,
33-
'tsLint': true,
3433
'lintOn': ['save']
3534
},
3635
'@vue/cli-plugin-e2e-cypress': {}

packages/@vue/cli-plugin-e2e-webdriverio/__tests__/wdioPlugin.spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ test('should work with TS', async () => {
2828
plugins: {
2929
'@vue/cli-plugin-typescript': {
3030
'classComponent': true,
31-
'tsLint': true,
3231
'lintOn': ['save']
3332
},
3433
'@vue/cli-plugin-e2e-webdriverio': {

packages/@vue/cli-plugin-typescript/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ Since `3.0.0-rc.6`, `typescript` is now a peer dependency of this package, so yo
1212

1313
This plugin can be used alongside `@vue/cli-plugin-babel`. When used with Babel, this plugin will output ES2015 and delegate the rest to Babel for auto polyfill based on browser targets.
1414

15-
## Injected Commands
16-
17-
If opted to use [TSLint](https://palantir.github.io/tslint/) during project creation, `vue-cli-service lint` will be injected.
18-
1915
## Caching
2016

2117
[cache-loader](https://github.com/webpack-contrib/cache-loader) is enabled by default and cache is stored in `<projectRoot>/node_modules/.cache/ts-loader`.

packages/@vue/cli-plugin-typescript/__tests__/tsConvertLintFlags.spec.js

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

packages/@vue/cli-plugin-typescript/__tests__/tsGenerator.spec.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,11 @@ test('use with router', async () => {
8181
})
8282

8383
test('lint', async () => {
84-
const { pkg, files } = await generateWithPlugin([
84+
const { pkg } = await generateWithPlugin([
8585
{
8686
id: 'ts',
8787
apply: require('../generator'),
8888
options: {
89-
tsLint: true,
9089
lintOn: ['save', 'commit']
9190
}
9291
}
@@ -99,8 +98,6 @@ test('lint', async () => {
9998
'*.ts': ['vue-cli-service lint', 'git add'],
10099
'*.vue': ['vue-cli-service lint', 'git add']
101100
})
102-
103-
expect(files['tslint.json']).toBeTruthy()
104101
})
105102

106103
test('lint with no lintOnSave', async () => {
@@ -109,7 +106,6 @@ test('lint with no lintOnSave', async () => {
109106
id: 'ts',
110107
apply: require('../generator'),
111108
options: {
112-
tsLint: true,
113109
lintOn: ['commit']
114110
}
115111
}

packages/@vue/cli-plugin-typescript/__tests__/tsPluginTSLint.spec.js

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

packages/@vue/cli-plugin-typescript/generator/template/src/shims-tsx.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ import Vue, { VNode } from 'vue'
22

33
declare global {
44
namespace JSX {
5-
// tslint:disable no-empty-interface
65
interface Element extends VNode {}
7-
// tslint:disable no-empty-interface
86
interface ElementClass extends Vue {}
97
interface IntrinsicElements {
108
[elem: string]: any

packages/@vue/cli-plugin-typescript/generator/template/tslint.json

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

packages/@vue/cli-plugin-typescript/lib/convertLintFlags.js

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

0 commit comments

Comments
 (0)