Skip to content

Commit 1a761e1

Browse files
docs: update moved JSX specification links (#21198)
* docs: update moved JSX specification links The JSX specification moved from the `facebook` GitHub organization to `react`, so https://facebook.github.io/jsx/ now returns a 404. GitHub Pages does not redirect across organization renames, so the old URL is permanently dead. Points the three remaining references at https://react.github.io/jsx/. The nearby link to github.com/react/jsx/issues/25 is left unchanged because GitHub does redirect renamed repositories, so it still resolves. * Update lib/rules/no-useless-escape.js Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com> --------- Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
1 parent 4d00ca4 commit 1a761e1

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎docs/src/use/configure/language-options.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ If you are using the built-in ESLint parser, you can additionally change how ESL
4747
- `ecmaFeatures` - an object indicating which additional language features you'd like to use:
4848
- `globalReturn` - allow `return` statements in the global scope. This option only applies when `languageOptions.sourceType` is set to `"script"`. When `languageOptions.sourceType` is set to `"commonjs"`, top-level `return` statements are allowed regardless of this option. When `languageOptions.sourceType` is set to `"module"`, top-level `return` statements are not allowed even if this option is set to `true`.
4949
- `impliedStrict` - enable global [strict mode](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode) (if `ecmaVersion` is `5` or greater).
50-
- `jsx` - enable [JSX](https://facebook.github.io/jsx/).
50+
- `jsx` - enable [JSX](https://react.github.io/jsx/).
5151

5252
Here's an example [configuration file](./configuration-files#configuration-file) that enables JSX parsing in the default parser:
5353

‎lib/rules/no-useless-escape.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,8 @@ module.exports = {
373373

374374
if (typeof node.value === "string" || isTemplateElement) {
375375
/*
376-
* JSXAttribute doesn't have any escape sequence: https://facebook.github.io/jsx/.
377-
* In addition, backticks are not supported by JSX yet: https://github.com/facebook/jsx/issues/25.
376+
* JSXAttribute doesn't have any escape sequence: https://react.github.io/jsx/.
377+
* In addition, backticks are not supported by JSX yet: https://github.com/react/jsx/issues/25.
378378
*/
379379
if (
380380
node.parent.type === "JSXAttribute" ||

‎lib/types/index.d.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ export namespace Linter {
968968
*/
969969
impliedStrict?: boolean | undefined;
970970
/**
971-
* Enable [JSX](https://facebook.github.io/jsx/).
971+
* Enable [JSX](https://react.github.io/jsx/).
972972
*
973973
* @default false
974974
*/

0 commit comments

Comments
 (0)