silverwind
silverwind
Another `map` example added to OP which shows a different resolution by using `forEach`.
PR is up: https://github.com/stylelint/stylelint/pull/8824
In case someone is looking for alternatives, this is already possible today: ```ts import type {Config} from "stylelint"; export default {} satisfies Config; ```
From my point of view, using `satisfies Config` is clearly superior than having this function, so I'd vote for close. I can contribute a documentation update for it.
> However, it is technically a breaking change, since it doesn't support a few TS features. Yes, it's only erasable syntax. Non-erasable syntax requires `--experimental-transform-types`, which I think will move...
So this rule is validated in `csstree` only? Wouldn't it be better to process the AST in stylelint code? Is the AST even available to stylelint?
Definitely a useful feature, thanks.
Many users configure a custom robots.txt, but I agree we should probably provide a reasonable default.
> Actually it won't help too much. Many AI crawlers even don't respect the robots.txt ........ Manybe reputable AI crawlers should respect robots.txt. Otherwise there would not be lists like...
This is a duplicate of https://github.com/jest-community/jest-extended/issues/685 which was closed as "stale" for unknown reasons. I can recommend the solution, been using it a long time.