fisker Cheung
fisker Cheung
`TSMappedType` and `TSEnumDeclaration` are known differently. Other differences are hard to tell, but there are some TODOs in Prettier repo - https://github.com/prettier/prettier/blob/dec0669339ae7d76c456bee12a62e1bc1e275107/src/language-js/print/array.js#L60 This one should be related to a Flow...
`typescript-eslint` also keep a list of differences between `babel` and `typescript-eslint` https://github.com/typescript-eslint/typescript-eslint/blob/eb76e34876ea973c462fad7073c134652f83c41b/packages/ast-spec/tests/fixtures-with-differences-ast.shot Differences should be able to found by search [`AST Alignment - Token`](https://github.com/typescript-eslint/typescript-eslint/blob/eb76e34876ea973c462fad7073c134652f83c41b/packages/ast-spec/tests/fixtures.test.ts#L256) in their snapshot files
Ah, sorry. I thought this is the Prettier core repo, anyway I'll take a look. Would you mind take a look what version of Prettier are you using? Since it's...
@utqinadhif What version of Node.js are you using? I tried this script, ``` const prettier = require('prettier/standalone') const prettierPluginPhp = require('@prettier/plugin-php/standalone') ;(async () => { const x = await prettier.format('
The computed destructuring is readable to me, but people may get confused by some of the following cases 1. Renamed ```js const {a: renamed} = b ``` 2. Default values...
Deep destructuring and default value can also confusing when the right side has multiple properties, even it's "simple". Shorthand ```js const { a = { b, c } } =...
> > string.split('/').at(numberVar) > > Could also be: > > string.split('/', numberVar).at(numberVar) > > string.split('/').at(numberVar) > > Could also be: > > string.split('/', numberVar).at(numberVar) Don't think it's safe, since `numberVar`...
`eslint-config-xo-typescript` may need expose an array instead of an object https://github.com/xojs/eslint-config-xo-typescript/blob/3271346cfa8cdc2d44bee64718399eea9f603ea3/index.js#L737 Should we expose an array here too? So user can ```js export {default} from 'eslint-config-xo'; ``` and ```diff import...