Skip to content

Commit

Permalink
add docusaurus eslint plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Sawyer Burnett committed Mar 22, 2024
1 parent 09e4fdd commit 2218a56
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.all.json"
"project": "./tsconfig.all.json",
"ecmaFeatures": {
"jsx": true
}
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"prettier",
"prettier/@typescript-eslint"
"prettier/@typescript-eslint",
"plugin:@docusaurus/recommended"
],
"plugins": ["@typescript-eslint", "react-hooks"],
"settings": {
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -108,7 +109,6 @@
"ts-jest": "^27.1.4",
"typescript": "^4.6.3"
},
"dependencies": {},
"peerDependencies": {
"react": "^16.8.3 || ^17 || ^18"
},
Expand Down

0 comments on commit 2218a56

Please sign in to comment.