Skip to content

Commit

Permalink
chore(website): remove legacy dependencies (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
wellwelwel authored Jul 1, 2024
1 parent 638573c commit 81a8e8d
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 275 deletions.
27 changes: 2 additions & 25 deletions website/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "import", "react", "react-hooks"],
"plugins": ["@typescript-eslint", "react", "react-hooks"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:react-hooks/recommended",
"plugin:react/jsx-runtime",
"plugin:@docusaurus/recommended"
Expand All @@ -19,8 +17,6 @@
}
},
"rules": {
"import/no-cycle": ["error", { "maxDepth": "∞" }],
"import/no-unresolved": ["error", { "ignore": ["^@docusaurus/"] }],
"no-restricted-syntax": [
"error",
{
Expand Down Expand Up @@ -77,19 +73,9 @@
"files": ["*.ts", "*.tsx"],
"rules": {
"@typescript-eslint/semi": ["error", "always"],
"@typescript-eslint/quotes": [
"error",
"single",
{ "avoidEscape": true, "allowTemplateLiterals": true }
],
"@typescript-eslint/no-empty-function": [
"error",
{ "allow": ["arrowFunctions"] }
],
"@typescript-eslint/indent": [
"error",
2,
{ "offsetTernaryExpressions": true }
]
}
},
Expand All @@ -111,20 +97,11 @@
{
"files": ["static/**/*"],
"rules": {
"import/no-unresolved": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-unused-vars": "off",
"no-unused-vars": "off",
"no-bitwise": "off"
}
}
],
"settings": {
"import/resolver": {
"typescript": {
"alwaysTryTypes": true,
"extensions": [".js", ".ts", "*.jsx", ".tsx"]
}
}
}
]
}
246 changes: 0 additions & 246 deletions website/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@
"@typescript-eslint/eslint-plugin": "^7.14.1",
"@typescript-eslint/parser": "^7.14.1",
"eslint": "^8.57.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-react": "^7.34.3",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.7",
Expand Down
1 change: 0 additions & 1 deletion website/src/components/FAQ.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { FC, ReactNode } from 'react';
// eslint-disable-next-line import/no-unresolved
import Details from '@theme/Details';

export type FAQProps = {
Expand Down
1 change: 0 additions & 1 deletion website/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { Toaster } from 'sonner';
import { Github, Heart, Package2 } from 'lucide-react';
import Link from '@docusaurus/Link';
import Head from '@docusaurus/Head';
// eslint-disable-next-line import/no-unresolved
import Heading from '@theme/Heading';
import { ConfettiButton } from '@site/src/components/Confetti';

Expand Down

0 comments on commit 81a8e8d

Please sign in to comment.