idahogurl / vs-code-prettier-eslint

A Visual Studio Code Extension to format JavaScript and TypeScript code using the prettier-eslint package.
MIT License
185 stars 46 forks source link

`parserOptions#project` for TS parser breaks ESLint stage #141

Closed Hetch3t closed 1 year ago

Hetch3t commented 1 year ago

Describe the bug

parserOptions#project breaks extension functionality for TS projects. For all the steps below output for Prettier ESLint is completely silent.

To Reproduce

Example

Versions (please complete the following information):

System Specifications (please complete the following information):

idahogurl commented 1 year ago

@Hetch3t Try the js extension again and make sure your parserOptions matches the values found in this example .eslintrc.js file https://github.com/idahogurl/vs-code-prettier-eslint/blob/c387cdaaa1a82f47c83edfb09c03ae10372bb7f8/examples/typescript/.eslintrc.js#L5-L8

Hetch3t commented 1 year ago

@idahogurl : Setting the tsconfigRootDir fixed it! Closing.