Skip to content

fix(eslint-plugin): update remaining parser refs #97

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 20, 2019
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