diff --git a/.eslintrc.js b/.eslintrc.js index 5dc4e8c38a42a9..7806144472207c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -163,6 +163,9 @@ module.exports = { 'react/state-in-constructor': 'off', // stylistic opinion. For conditional assignment we want it outside, otherwise as static 'react/static-property-placement': 'off', + // noopener is enough, no IE 11 support + // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-target-blank.md#rule-options + 'react/jsx-no-target-blank': ['error', { allowReferrer: true }], 'no-restricted-syntax': [ // See https://github.com/eslint/eslint/issues/9192 for why it's needed @@ -209,7 +212,6 @@ module.exports = { // matching the pattern of the test runner '*.test.mjs', '*.test.js', - '*.test.mjs', '*.test.ts', '*.test.tsx', ], diff --git a/apps/zero-runtime-next-app/src/app/page.tsx b/apps/zero-runtime-next-app/src/app/page.tsx index d02a3bac74e770..def91c8f2b4af6 100644 --- a/apps/zero-runtime-next-app/src/app/page.tsx +++ b/apps/zero-runtime-next-app/src/app/page.tsx @@ -170,7 +170,7 @@ export default function Home() { By{' '}

Docs -> @@ -211,7 +211,7 @@ export default function Home() {

Learn -> @@ -222,7 +222,7 @@ export default function Home() {

Templates -> @@ -230,7 +230,7 @@ export default function Home() {

Explore the Next.js 13 playground.

- +

Checkout Slider ->

diff --git a/docs/data/joy/customization/overriding-component-structure/OverridingRootSlot.js b/docs/data/joy/customization/overriding-component-structure/OverridingRootSlot.js index 57d739991430d1..be3d0f9fc90f3e 100644 --- a/docs/data/joy/customization/overriding-component-structure/OverridingRootSlot.js +++ b/docs/data/joy/customization/overriding-component-structure/OverridingRootSlot.js @@ -7,7 +7,7 @@ export default function OverridingRootSlot() { component="a" href="https://mui.com/about/" target="_blank" - rel="noopener noreferrer" + rel="noopener" > About us diff --git a/docs/data/joy/customization/overriding-component-structure/OverridingRootSlot.tsx b/docs/data/joy/customization/overriding-component-structure/OverridingRootSlot.tsx index 57d739991430d1..be3d0f9fc90f3e 100644 --- a/docs/data/joy/customization/overriding-component-structure/OverridingRootSlot.tsx +++ b/docs/data/joy/customization/overriding-component-structure/OverridingRootSlot.tsx @@ -7,7 +7,7 @@ export default function OverridingRootSlot() { component="a" href="https://mui.com/about/" target="_blank" - rel="noopener noreferrer" + rel="noopener" > About us diff --git a/docs/data/joy/customization/overriding-component-structure/OverridingRootSlot.tsx.preview b/docs/data/joy/customization/overriding-component-structure/OverridingRootSlot.tsx.preview index 70aa8d394571a1..e93e04b530fd7c 100644 --- a/docs/data/joy/customization/overriding-component-structure/OverridingRootSlot.tsx.preview +++ b/docs/data/joy/customization/overriding-component-structure/OverridingRootSlot.tsx.preview @@ -2,7 +2,7 @@ component="a" href="https://mui.com/about/" target="_blank" - rel="noopener noreferrer" + rel="noopener" > About us \ No newline at end of file diff --git a/docs/data/joy/getting-started/templates/TemplateCollection.js b/docs/data/joy/getting-started/templates/TemplateCollection.js index d059ac4e2230d7..bbbcb933fe40c3 100644 --- a/docs/data/joy/getting-started/templates/TemplateCollection.js +++ b/docs/data/joy/getting-started/templates/TemplateCollection.js @@ -216,7 +216,7 @@ export default function TemplateCollection() { {template.author.name} @@ -241,7 +241,7 @@ export default function TemplateCollection() { {template.design.name} diff --git a/docs/data/system/flexbox/flexbox.md b/docs/data/system/flexbox/flexbox.md index cbb3d4e2c9f3a0..b12d12731e3992 100644 --- a/docs/data/system/flexbox/flexbox.md +++ b/docs/data/system/flexbox/flexbox.md @@ -18,7 +18,7 @@ If you are **new to or unfamiliar with flexbox**, we encourage you to read this ### flex-direction For more information please see -
flex-direction +flex-direction on MDN. {{"demo": "FlexDirection.js", "defaultCodeOpen": false, "bg": true}} @@ -33,7 +33,7 @@ on MDN. ### flex-wrap For more information please see -flex-wrap +flex-wrap on MDN. {{"demo": "FlexWrap.js", "defaultCodeOpen": false, "bg": true}} @@ -47,7 +47,7 @@ on MDN. ### justify-content For more information please see -justify-content +justify-content on MDN. {{"demo": "JustifyContent.js", "defaultCodeOpen": false, "bg": true}} @@ -64,7 +64,7 @@ on MDN. ### align-items For more information please see -align-items +align-items on MDN. {{"demo": "AlignItems.js", "defaultCodeOpen": false, "bg": true}} @@ -80,7 +80,7 @@ on MDN. ### align-content For more information please see -align-content +align-content on MDN. {{"demo": "AlignContent.js", "defaultCodeOpen": false, "bg": true}} @@ -99,7 +99,7 @@ on MDN. ### order For more information please see -order +order on MDN. {{"demo": "Order.js", "defaultCodeOpen": false, "bg": true}} @@ -113,7 +113,7 @@ on MDN. ### flex-grow For more information please see -flex-grow +flex-grow on MDN. {{"demo": "FlexGrow.js", "defaultCodeOpen": false, "bg": true}} @@ -127,7 +127,7 @@ on MDN. ### flex-shrink For more information please see -flex-shrink +flex-shrink on MDN. {{"demo": "FlexShrink.js", "defaultCodeOpen": false, "bg": true}} @@ -141,7 +141,7 @@ on MDN. ### align-self For more information please see -align-self +align-self on MDN. {{"demo": "AlignSelf.js", "defaultCodeOpen": false, "bg": true}} diff --git a/docs/src/components/about/Team.tsx b/docs/src/components/about/Team.tsx index 7b3ad2d1f2d940..577a1726d4e703 100644 --- a/docs/src/components/about/Team.tsx +++ b/docs/src/components/about/Team.tsx @@ -148,7 +148,7 @@ function Person(props: Profile & { sx?: PaperProps['sx'] }) { component="a" href={`https://github.com/${props.github}`} target="_blank" - rel="noreferrer noopener" + rel="noopener" > @@ -159,7 +159,7 @@ function Person(props: Profile & { sx?: PaperProps['sx'] }) { component="a" href={`https://twitter.com/${props.twitter}`} target="_blank" - rel="noreferrer noopener" + rel="noopener" > @@ -170,7 +170,7 @@ function Person(props: Profile & { sx?: PaperProps['sx'] }) { component="a" href={`https://www.linkedin.com/${props.linkedin}`} target="_blank" - rel="noreferrer noopener" + rel="noopener" > diff --git a/docs/src/components/home/DiamondSponsors.tsx b/docs/src/components/home/DiamondSponsors.tsx index 45ac72733654db..ce2f09299c2cab 100644 --- a/docs/src/components/home/DiamondSponsors.tsx +++ b/docs/src/components/home/DiamondSponsors.tsx @@ -72,7 +72,7 @@ export default function DiamondSponsors() { component="a" href="mailto:sales@mui.com" target="_blank" - rel="noopener noreferrer" + rel="noopener" color="primary" sx={(theme) => ({ mr: 2, @@ -91,7 +91,7 @@ export default function DiamondSponsors() { To join us, contact us at{' '} - + sales@mui.com {' '} for pre-approval. diff --git a/docs/src/components/home/GoldSponsors.tsx b/docs/src/components/home/GoldSponsors.tsx index b3d3e88cb8be5d..3bd5d52dbb84e2 100644 --- a/docs/src/components/home/GoldSponsors.tsx +++ b/docs/src/components/home/GoldSponsors.tsx @@ -118,7 +118,7 @@ export default function GoldSponsors() { component="a" href={ROUTES.goldSponsor} target="_blank" - rel="noopener noreferrer" + rel="noopener" color="primary" sx={(theme) => ({ mr: 2, @@ -137,7 +137,7 @@ export default function GoldSponsors() { Find out how{' '} - + you can support MUI. diff --git a/docs/src/layouts/AppFooter.tsx b/docs/src/layouts/AppFooter.tsx index 80f6da4720d6da..80bf6bd2c9a5a1 100644 --- a/docs/src/layouts/AppFooter.tsx +++ b/docs/src/layouts/AppFooter.tsx @@ -137,7 +137,7 @@ export default function AppFooter(props: AppFooterProps) { Support Privacy policy - + Contact us @@ -157,7 +157,7 @@ export default function AppFooter(props: AppFooterProps) { {'We would appreciate it if you '} - + report this error {` directly in our issue tracker with the steps you took to trigger it. diff --git a/docs/src/modules/components/DiamondSponsors.js b/docs/src/modules/components/DiamondSponsors.js index 3f3f2371c70228..57235cb5cef64e 100644 --- a/docs/src/modules/components/DiamondSponsors.js +++ b/docs/src/modules/components/DiamondSponsors.js @@ -79,7 +79,7 @@ export default function DiamondSponsors() { data-ga-event-action="docs-premium" data-ga-event-label="octopus.com" href="https://octopus.com/?utm_source=materialui&utm_medium=referral" - rel="noopener noreferrer sponsored" + rel="noopener sponsored" target="_blank" > - + Main features   ️ @@ -84,7 +84,7 @@ export default function App() { component="a" href="https://mui.com/joy-ui/react-autocomplete/" target="_blank" - rel="noopener noreferrer" + rel="noopener" > Browse components   ️ @@ -94,7 +94,7 @@ export default function App() { component="a" href="https://mui.com/joy-ui/customization/approaches/" target="_blank" - rel="noopener noreferrer" + rel="noopener" > Check out theming and customization  {" "} ️ @@ -108,7 +108,7 @@ export default function App() { underline="always" href="https://mui.com/about" target="_blank" - rel="noopener noreferrer" + rel="noopener" > MUI {" "}