Closed Hetch3t closed 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
@idahogurl :
Setting the tsconfigRootDir
fixed it! Closing.
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
parserOptions: { project: './tsconfig.json' }
ineslintrc.json
in TypeScript project.ts
file via extension - same result as I would've run just Prettier (I tested). Though ESLint extension does show errors..js
file via extension - result as expectedprettier-eslint-cli
via command, e.g.yarn run prettier-eslint src/some_file.ts --write
- result as expectedparserOptions: { project: './tsconfig.json' }
fromeslintrc.json
(and rules required to it).ts
file via extension - result as expected (except for removed rules of course)Example
Versions (please complete the following information):
System Specifications (please complete the following information):