Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
JamesHenry merged 1 commit intomasterfromfix-96
Jan 20, 2019
Merged
Show file tree
Hide file tree
Changes fromall 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 deletionpackages/eslint-plugin/lib/configs/recommended.json
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletionspackages/eslint-plugin/lib/util.js
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletionpackages/eslint-plugin/tools/update-recommended.js
View file
Open in desktop
Original file line numberDiff line numberDiff 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

[8]ページ先頭

©2009-2025 Movatter.jp