Commit Graph

12 Commits

Author SHA1 Message Date
Ricky
38b52cfdf0 More claude stuff (#8280)
* More claude stuff

* more stuff from uee edit

* revert
2026-01-30 14:54:45 -05:00
Ricky
303e6b4c6d Init claude config (#8265) 2026-01-27 10:22:10 -05:00
lauren
b6a32d1e0e Add local eslint rule to validate markdown codeblocks with React Compiler (#7988)
In https://github.com/facebook/react/pull/34462 for example, we found an issue where the compiler was incorrectly validating an example straight from the docs.

In order to find more issues like this + also provide more feedback to doc authors on valid/invalid patterns, this PR adds a new local eslint rule which validates all markdown codeblocks containing components/hooks with React Compiler. An autofixer is also provided.

To express that a codeblock has an expected error, we can use the following metadata:

```ts
// pseudo type def
type MarkdownCodeBlockMetadata = {
    expectedErrors?: {
      'react-compiler'?: number[];
    };
  };
```

and can be used like so:

````
```js {expectedErrors: {'react-compiler': [4]}}
//  setState directly in render
function Component({value}) {
  const [count, setCount] = useState(0);
  setCount(value); // error on L4
  return <div>{count}</div>;
}
```
````

Because this is defined as a local rule, we don't have the same granular reporting that `eslint-plugin-react-hooks` yet. I can look into that later but for now this first PR just sets us up with something basic.
2025-09-18 15:32:18 -04:00
Ricky
cf53cb5d52 Add rss feed (#6803)
* Add rss feed

* Add rss feed

* rss readers don't like å characters
2024-04-26 11:56:47 -04:00
Dan Abramov
5e1ec56701 Download all fonts 2023-03-29 22:54:03 +01:00
Dan Abramov
dd65dcac3b Move beta to top level 2023-03-18 22:35:53 +00:00
dan
4c2503a83e Move the old site to another repo (#5739)
* Delete the old site from this repo

* Remove old GH workflow

* Remove other files
2023-03-18 22:28:17 +00:00
Rachel Nabors
926dbeeb7c Re-add public folder 2021-10-28 22:27:24 +01:00
Brian Vaughn
bfc61c3d69 Bumped docs version 2018-09-06 13:17:07 -07:00
Brian Vaughn
1ec24d62f0 nit :) 2017-10-11 13:44:13 -07:00
Admir Sabanovic
0041ede3ba add idea to gitignore 2017-10-11 22:26:22 +02:00
Brian Vaughn
9d9b2021ed Migrated Gatsby website source and config 2017-10-04 14:56:10 -07:00