diff --git a/.vscode/settings.example.json b/.vscode/settings.example.json index 1bcf4e9e2..4466635c8 100644 --- a/.vscode/settings.example.json +++ b/.vscode/settings.example.json @@ -1,5 +1,5 @@ { - "[javascript][typescript][javascriptreact][typescriptreact][json][jsonc][markdown][yaml]": { + "[javascript][typescript][javascriptreact][typescriptreact][json][jsonc][markdown][yaml][css][html]": { "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.formatOnSave": true, }, diff --git a/eslint.config.js b/eslint.config.js index a75e6bae5..4d64f8b74 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -39,7 +39,8 @@ scripts/benchmark/*/ .split("\n") .filter((pattern) => pattern && !pattern.startsWith("#")); -export default [ +const configs = [ + { files: ["**/*.{js,mjs,cjs,jsx}"] }, eslintPluginJs.configs.recommended, eslintPluginRegexp.configs["flat/recommended"], eslintPluginUnicorn.configs["flat/recommended"], @@ -493,3 +494,5 @@ export default [ rules: { "require-unicode-regexp": "off" }, }, ]; + +export default configs; diff --git a/website/playground/Playground.jsx b/website/playground/Playground.jsx index 42c2b5e93..5edd3b201 100644 --- a/website/playground/Playground.jsx +++ b/website/playground/Playground.jsx @@ -96,7 +96,6 @@ class Playground extends React.Component { const codeSample = getCodeSample(options.parser); const content = original.content || codeSample; - const isDocExplorer = options.parser === "doc-explorer"; const selection = {}; this.state = { content, options, selection }; diff --git a/website/src/pages/help/index.jsx b/website/src/pages/help/index.jsx index 1ad6ae7f3..b7200f165 100644 --- a/website/src/pages/help/index.jsx +++ b/website/src/pages/help/index.jsx @@ -1,7 +1,6 @@ import Link from "@docusaurus/Link"; -import Layout from "@theme/Layout"; - import Heading from "@theme/Heading"; +import Layout from "@theme/Layout"; /** * diff --git a/website/src/pages/index.jsx b/website/src/pages/index.jsx index c526d6a49..3fdf48db5 100644 --- a/website/src/pages/index.jsx +++ b/website/src/pages/index.jsx @@ -1,12 +1,12 @@ -import clsx from "clsx"; import Link from "@docusaurus/Link"; import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; -import Layout from "@theme/Layout"; import AnimatedLogo from "@sandhose/prettier-animated-logo"; import Heading from "@theme/Heading"; -import styles from "./index.module.css"; +import Layout from "@theme/Layout"; +import clsx from "clsx"; import { useState } from "react"; import Markdown from "react-markdown"; +import styles from "./index.module.css"; const playgroundLink = process.env.NODE_ENV === "production" @@ -43,7 +43,7 @@ function DraggableLogo() { function Tidelift() { const { siteConfig } = useDocusaurusContext(); - const tideliftUrl = siteConfig.customFields.tideliftUrl; + const { tideliftUrl } = siteConfig.customFields; return ( @@ -176,8 +176,8 @@ function LanguagesSection() {