Skip to content

Commit 53b3daf

Browse files
authored
chore: deprecate tslint (#4289)
1 parent 615ae0f commit 53b3daf

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

packages/@vue/cli/lib/promptModules/linter.js

+10-10
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,6 @@ module.exports = cli => {
1919
message: 'Pick a linter / formatter config:',
2020
description: 'Checking code errors and enforcing an homogeoneous code style is recommended.',
2121
choices: answers => [
22-
...(
23-
answers.features.includes('ts')
24-
? [{
25-
name: `TSLint`,
26-
value: 'tslint',
27-
short: 'TSLint'
28-
}]
29-
: []
30-
),
3122
{
3223
name: 'ESLint with error prevention only',
3324
value: 'base',
@@ -47,7 +38,16 @@ module.exports = cli => {
4738
name: 'ESLint + Prettier',
4839
value: 'prettier',
4940
short: 'Prettier'
50-
}
41+
},
42+
...(
43+
answers.features.includes('ts')
44+
? [{
45+
name: `TSLint (deprecated)`,
46+
value: 'tslint',
47+
short: 'TSLint'
48+
}]
49+
: []
50+
)
5151
]
5252
})
5353

0 commit comments

Comments
 (0)