From 2218a5685e8e8fb3efad72623b11be65a3bf35e6 Mon Sep 17 00:00:00 2001 From: Sawyer Burnett Date: Fri, 22 Mar 2024 15:19:40 -0700 Subject: [PATCH] add docusaurus eslint plugin --- .eslintrc | 13 ++++++++++--- package.json | 2 +- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.eslintrc b/.eslintrc index d86f478d..d7332d9f 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,7 +1,10 @@ { "parser": "@typescript-eslint/parser", "parserOptions": { - "project": "./tsconfig.all.json" + "project": "./tsconfig.all.json", + "ecmaFeatures": { + "jsx": true + } }, "extends": [ "eslint:recommended", @@ -9,7 +12,8 @@ "plugin:@typescript-eslint/recommended", "plugin:react/recommended", "prettier", - "prettier/@typescript-eslint" + "prettier/@typescript-eslint", + "plugin:@docusaurus/recommended" ], "plugins": ["@typescript-eslint", "react-hooks"], "settings": { @@ -18,7 +22,10 @@ } }, "rules": { - "@typescript-eslint/no-unused-vars": ["error", { "varsIgnorePattern": "_" }], + "@typescript-eslint/no-unused-vars": [ + "error", + { "varsIgnorePattern": "_" } + ], "@typescript-eslint/explicit-function-return-type": "off", "@typescript-eslint/no-empty-function": "off", "@typescript-eslint/no-explicit-any": "off", diff --git a/package.json b/package.json index 3169c924..370cdc23 100644 --- a/package.json +++ b/package.json @@ -83,6 +83,7 @@ "license": "MIT", "devDependencies": { "@changesets/cli": "^2.26.1", + "@docusaurus/eslint-plugin": "^3.1.1", "@rollup/plugin-typescript": "^8.3.0", "@size-limit/preset-small-lib": "^7.0.8", "@svitejs/changesets-changelog-github-compact": "^0.1.1", @@ -108,7 +109,6 @@ "ts-jest": "^27.1.4", "typescript": "^4.6.3" }, - "dependencies": {}, "peerDependencies": { "react": "^16.8.3 || ^17 || ^18" },