Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/eslint-plugin/lib/configs/recommended.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"parser": "@typescript-eslint/eslint-plugin/parser",
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module"
},
Expand Down
5 changes: 1 addition & 4 deletions packages/eslint-plugin/lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,8 @@ exports.getParserServices = context => {
!context.parserServices.program ||
!context.parserServices.esTreeNodeToTSNodeMap
) {
// TODO - the message will require revisiting once the @typescript-eslint/parser work finalises
// their work around exposing the parser. They may require that there be a project config field in
// the eslint config, in which case we should check and/or report that here appropriately.
throw new Error(
'This rule requires you to use `@typescript-eslint/eslint-plugin/parser`.'
'This rule requires you to use `@typescript-eslint/parser`.'
);
}
return context.parserServices;
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/tools/update-recommended.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function generate() {
const filePath = path.resolve(__dirname, '../lib/configs/recommended.json');

const recommendedConfig = {
parser: '@typescript-eslint/eslint-plugin/parser',
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module'
},
Expand Down