You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using library-ts, when defining a long interface that goes beyond prettier's printWidth, npm run format wraps it onto new lines. This isn't a problem in *.ts files, but causes issues in *.marko files. Adding // prettier-ignore above the interface doesn't seem to prevent the line from being wrapped when running npm run format.
Expected Behavior
Preferably: Interface definitions that wrap multiple lines don't result in lint errors (ie. match the behavior of *.ts files)
Alternatively: npm run format respects // prettier-ignore in *.marko files
Actual Behavior
Interface/type definitions that wrap multiple lines result in linting errors, which blocks building/shipping code.
Possible Fix
I'm guessing this has something to do with how TypeScript is interpreted in *.marko files?
Additional Info
Your Environment
Environment name and version (e.g. Chrome 39, node.js 5.4): Mac Sonoma 14.5, node.js 20.12.2
Operating System and version (desktop or mobile): VSCode
Version: 3.1.2
Details
Using
library-ts
, when defining a long interface that goes beyond prettier'sprintWidth
,npm run format
wraps it onto new lines. This isn't a problem in*.ts
files, but causes issues in*.marko
files. Adding// prettier-ignore
above the interface doesn't seem to prevent the line from being wrapped when runningnpm run format
.Expected Behavior
Preferably: Interface definitions that wrap multiple lines don't result in lint errors (ie. match the behavior of
*.ts
files)Alternatively:
npm run format
respects// prettier-ignore
in*.marko
filesActual Behavior
Interface/type definitions that wrap multiple lines result in linting errors, which blocks building/shipping code.
Possible Fix
I'm guessing this has something to do with how TypeScript is interpreted in
*.marko
files?Additional Info
Your Environment
Steps to Reproduce
library-ts
*.marko
file, define an interface that has uses more characters than Prettier'sprintWidth
setting, eg:npm run format
extends
keyword:npm run lint
and see different errors in the console.Stack Trace
Linting Errors in VSCode
Error for
imports
line:Error for
extends
line:Error for
npm run lint
:The text was updated successfully, but these errors were encountered: