Skip to content

Commit 055c3fc

Browse files
authored
fix(eslint-plugin): update remaining parser refs (#97)
1 parent c51d4e0 commit 055c3fc

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

packages/eslint-plugin/lib/configs/recommended.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"parser": "@typescript-eslint/eslint-plugin/parser",
2+
"parser": "@typescript-eslint/parser",
33
"parserOptions": {
44
"sourceType": "module"
55
},

packages/eslint-plugin/lib/util.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,8 @@ exports.getParserServices = context => {
117117
!context.parserServices.program ||
118118
!context.parserServices.esTreeNodeToTSNodeMap
119119
) {
120-
// TODO - the message will require revisiting once the @typescript-eslint/parser work finalises
121-
// their work around exposing the parser. They may require that there be a project config field in
122-
// the eslint config, in which case we should check and/or report that here appropriately.
123120
throw new Error(
124-
'This rule requires you to use `@typescript-eslint/eslint-plugin/parser`.'
121+
'This rule requires you to use `@typescript-eslint/parser`.'
125122
);
126123
}
127124
return context.parserServices;

packages/eslint-plugin/tools/update-recommended.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function generate() {
4949
const filePath = path.resolve(__dirname, '../lib/configs/recommended.json');
5050

5151
const recommendedConfig = {
52-
parser: '@typescript-eslint/eslint-plugin/parser',
52+
parser: '@typescript-eslint/parser',
5353
parserOptions: {
5454
sourceType: 'module'
5555
},

0 commit comments

Comments
 (0)