Skip to content

Commit

Permalink
fix(eslint-plugin): update remaining parser refs (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHenry committed Jan 20, 2019
1 parent c51d4e0 commit 055c3fc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
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

0 comments on commit 055c3fc

Please sign in to comment.