Skip to content

Conversation

mcasimir
Copy link
Collaborator

@mcasimir mcasimir commented Sep 10, 2021

chore: fix eslint integration with VS Code ESLint extension

@mcasimir mcasimir merged commit c437255 into main Sep 10, 2021
@mcasimir mcasimir deleted the fix-eslint-in-vscode branch September 10, 2021 10:22
addaleax added a commit that referenced this pull request Sep 13, 2021
This reverts commit c437255.

This fixes Windows CI:

    [2021/09/13 10:44:59.161] > npm run lint
    [2021/09/13 10:44:59.161] > @mongosh/errors@0.0.0-dev.0 lint C:\data\mci\abacfdf08bad6c5c588fc6f7d2007707\src\packages\errors
    [2021/09/13 10:44:59.161] > eslint --report-unused-disable-directives "./{src,test}/**/*.{js,ts,tsx}"
    [2021/09/13 10:44:59.161] C:\data\mci\abacfdf08bad6c5c588fc6f7d2007707\src\packages\errors\src\common-errors.ts
    [2021/09/13 10:44:59.161]   0:0  error  Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
    [2021/09/13 10:44:59.161] The file does not match your project config: C:\data\mci\abacfdf08bad6c5c588fc6f7d2007707\src\packages\errors\src\common-errors.ts.
    [2021/09/13 10:44:59.161] The file must be included in at least one of the projects provided
    [2021/09/13 10:44:59.161] C:\data\mci\abacfdf08bad6c5c588fc6f7d2007707\src\packages\errors\src\index.spec.ts
    [2021/09/13 10:44:59.161]   0:0  error  Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
    [2021/09/13 10:44:59.161] The file does not match your project config: C:\data\mci\abacfdf08bad6c5c588fc6f7d2007707\src\packages\errors\src\index.spec.ts.
    [2021/09/13 10:44:59.161] The file must be included in at least one of the projects provided
    [2021/09/13 10:44:59.161] C:\data\mci\abacfdf08bad6c5c588fc6f7d2007707\src\packages\errors\src\index.ts
    [2021/09/13 10:44:59.161]   0:0  error  Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
    [2021/09/13 10:44:59.161] The file does not match your project config: C:\data\mci\abacfdf08bad6c5c588fc6f7d2007707\src\packages\errors\src\index.ts.
    [2021/09/13 10:44:59.161] The file must be included in at least one of the projects provided
    [2021/09/13 10:44:59.161] ✖ 3 problems (3 errors, 0 warnings)
    [2021/09/13 10:44:59.161] lerna ERR! npm run check stderr:
    [2021/09/13 10:44:59.161] npm ERR! code ELIFECYCLE
    [2021/09/13 10:44:59.161] npm ERR! errno 1
    [2021/09/13 10:44:59.161] npm ERR! @mongosh/errors@0.0.0-dev.0 lint: `eslint --report-unused-disable-directives "./{src,test}/**/*.{js,ts,tsx}"`
addaleax added a commit that referenced this pull request Sep 13, 2021
This reverts commit c437255.

This fixes Windows CI:

    [2021/09/13 10:44:59.161] > npm run lint
    [2021/09/13 10:44:59.161] > @mongosh/errors@0.0.0-dev.0 lint C:\data\mci\abacfdf08bad6c5c588fc6f7d2007707\src\packages\errors
    [2021/09/13 10:44:59.161] > eslint --report-unused-disable-directives "./{src,test}/**/*.{js,ts,tsx}"
    [2021/09/13 10:44:59.161] C:\data\mci\abacfdf08bad6c5c588fc6f7d2007707\src\packages\errors\src\common-errors.ts
    [2021/09/13 10:44:59.161]   0:0  error  Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
    [2021/09/13 10:44:59.161] The file does not match your project config: C:\data\mci\abacfdf08bad6c5c588fc6f7d2007707\src\packages\errors\src\common-errors.ts.
    [2021/09/13 10:44:59.161] The file must be included in at least one of the projects provided
    [2021/09/13 10:44:59.161] C:\data\mci\abacfdf08bad6c5c588fc6f7d2007707\src\packages\errors\src\index.spec.ts
    [2021/09/13 10:44:59.161]   0:0  error  Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
    [2021/09/13 10:44:59.161] The file does not match your project config: C:\data\mci\abacfdf08bad6c5c588fc6f7d2007707\src\packages\errors\src\index.spec.ts.
    [2021/09/13 10:44:59.161] The file must be included in at least one of the projects provided
    [2021/09/13 10:44:59.161] C:\data\mci\abacfdf08bad6c5c588fc6f7d2007707\src\packages\errors\src\index.ts
    [2021/09/13 10:44:59.161]   0:0  error  Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
    [2021/09/13 10:44:59.161] The file does not match your project config: C:\data\mci\abacfdf08bad6c5c588fc6f7d2007707\src\packages\errors\src\index.ts.
    [2021/09/13 10:44:59.161] The file must be included in at least one of the projects provided
    [2021/09/13 10:44:59.161] ✖ 3 problems (3 errors, 0 warnings)
    [2021/09/13 10:44:59.161] lerna ERR! npm run check stderr:
    [2021/09/13 10:44:59.161] npm ERR! code ELIFECYCLE
    [2021/09/13 10:44:59.161] npm ERR! errno 1
    [2021/09/13 10:44:59.161] npm ERR! @mongosh/errors@0.0.0-dev.0 lint: `eslint --report-unused-disable-directives "./{src,test}/**/*.{js,ts,tsx}"`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants