fisker Cheung
fisker Cheung
## Description Doing this because ["JSON modules"](https://github.com/tc39/proposal-json-modules) proposal forbids "named exports". Meriyah also added support for "import attributes", but not "import assertions". ## Checklist - [ ] I’ve added tests...
**Prettier 3.3.3** [Playground link](https://prettier.io/playground/#N4Igxg9gdgLgprEAuEA6AhgAmAHSpzAI3TAGsBzAJwgFcoATAWgEsBbdcuJTGygGwAUACxgwADgGckAemlwAHulZi+cVJFbS+0clp16ou7YYNH9bDmrGGAlABo8BAn2ZQ46Soyrp6zBDAEATgAGejhyO0wAYlDg9AAOOExggFJIqIAmAGYARgAzOBzMHODUmwBuPEciCHlGCSEfCAB3JGqCVwk4GGTekrF5aIBWEYd8J2DejOCBoj4SUkqoAF88EDsQCDEYZmgJZFAPamaABQ8EfZR0Pmb0AE99jcJKBe6AZSU4ABlXOGQ865dJ4vMjvMQkVzkZAwSg0OAbLqsZjQ2HwkAKMRwShsfzXAAqWKgHj8lwBfCBIAkkNUAEUaBB4P9AWiAFYSeRvalwOkMv5IMkUgCO9PgJ2okmQIHQEkYbjgYXo6xAMPQzBchgAwhBWOxJdc+EqqYZVABBUTYwg0UVYn5uJnktEiVh8ADqQmY8Ak4LAcDeFw9zAAbh67pKwBJHiBA3CAJIMfxvMDY7YmhhvGB3VT2iliahdF0vMSS3NwLqUQN-DadLEwMUcXX85kbcGUMthiNK3OuGAu5j0GBCZDxYIbShwYXMMd18gNgVomDoQi9-uDpAZDY0Lp4xekpvo1iEeUKr7oQw0SwAMQglHYokheqtEBAy2WQA) ```sh --parser css ``` **Input:** ```css .a { background-image: url(https://example.com/long/long/long/long/long/long/image.png), linear-gradient(90deg, #0d0a8e 0%, #231fe1 100%); box-shadow: inset 0 0 10px #555, 0 0 20px black; }...
In #15806, I added a `skipChainExpression` utility to make `isCallExpression` and `isMemberExpression` easier to use, and I was thinking maybe we should skip `TSNonNullExpression` in the future. Turns out it...
## Description The blank lines are annoying when there are only 3 imports https://github.com/prettier/prettier/blob/567d752480f8c38a24a084941cc46f16c0632440/scripts/build/esmify-typescript-eslint.js#L3-L7 ## Checklist - [ ] I’ve added tests to confirm my change works. - [ ]...
```console $ fnm install 0.12.18 Installing Node v0.12.18 (x64) error: Can't download the requested binary: v0.12.18 for x64 not found upstream. You can `fnm ls-remote` to see available versions or...
## Description Use yarn berry without `packageManager` field, the `yarn.lock` will be detected, and use the legacy yarn command, and throws ``` × Error: Command failed with exit code 1:...
## Description Similar to #749, I don't want different `publishConfig` in my packages, putting `"access": "public"` is not harmful. **Is the feature request related to a problem?** ## Possible implementation...
### ESLint version v9 ### What problem do you want to solve? In a rule `fix` function, ```js fixer.replaceText(node, replacement.text); ``` when `replacement.text` is undefined, it will replace the node...
### Description I just learned that `Date` constructor accepts `Date` since ES6. > If [Type](https://262.ecma-international.org/6.0/#sec-ecmascript-data-types-and-values)(value) is Object and value has a [[DateValue]] [internal slot](https://262.ecma-international.org/6.0/#sec-object-internal-methods-and-internal-slots), then Let tv be thisTimeValue(value). https://262.ecma-international.org/6.0/#sec-date-constructor...
When checking existence, should prefer `Map#has()` over `Map#get()`. ## Fail ```js if (map.get(foo)); ``` ## Pass ```js if (map.has(foo)); ``` I think better ship this with [`prefer-map`](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/1285) together, so user...