Skip to content

Commit

Permalink
Use improved TypeScript support of Docusaurus for demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Gijsdeman committed Dec 8, 2023
1 parent 39c52e9 commit 92b2110
Show file tree
Hide file tree
Showing 111 changed files with 1,780 additions and 1,312 deletions.
44 changes: 22 additions & 22 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
"plugin:jest/recommended",
"plugin:jest/style",
"plugin:testing-library/react",
"plugin:jest-dom/recommended",
"plugin:jest-dom/recommended"
],
plugins: ["import", "header"],
rules: {
Expand All @@ -29,9 +29,9 @@ module.exports = {
" *",
" * This source code is licensed under the MIT license found in the",
" * LICENSE file in the root directory of this source tree.",
" * ========================================================================== ",
" * ========================================================================== "
],
2,
2
],
"import/newline-after-import": ["warn", { count: 1 }],
"import/no-extraneous-dependencies": [
Expand All @@ -40,34 +40,34 @@ module.exports = {
devDependencies: false,
optionalDependencies: false,
peerDependencies: true,
bundledDependencies: true,
},
bundledDependencies: true
}
],
"import/order": [
"warn",
{
alphabetize: {
order: "asc",
caseInsensitive: true,
caseInsensitive: true
},
"newlines-between": "always",
groups: [
"builtin",
"external",
"internal",
["parent", "sibling", "index"],
"object",
"object"
],
pathGroups: [
{
pattern: "react?(-dom)",
group: "external",
position: "before",
},
position: "before"
}
],
pathGroupsExcludedImportTypes: ["builtin"],
},
],
pathGroupsExcludedImportTypes: ["builtin"]
}
]
},
overrides: [
{
Expand All @@ -80,22 +80,22 @@ module.exports = {
devDependencies: true,
optionalDependencies: false,
peerDependencies: true,
bundledDependencies: true,
},
],
},
},
bundledDependencies: true
}
]
}
}
],
settings: {
"import/extensions": allExtensions,
"import/external-module-folders": ["node_modules", "node_modules/@types"],
"import/parsers": {
"@typescript-eslint/parser": tsExtensions,
"@typescript-eslint/parser": tsExtensions
},
"import/resolver": {
node: {
extensions: allExtensions,
},
},
},
extensions: allExtensions
}
}
}
};
6 changes: 0 additions & 6 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

89 changes: 0 additions & 89 deletions .idea/workspace.xml

This file was deleted.

4 changes: 3 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
{}
{
"trailingComma": "none"
}
12 changes: 6 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,7 @@ High level enhancements
// docusaurus.config.js

const config = {
plugins: [["docusaurus-plugin-proxy", { "/api": "http://localhost:3001" }]],
plugins: [["docusaurus-plugin-proxy", { "/api": "http://localhost:3001" }]]
// ...
};
```
Expand All @@ -969,11 +969,11 @@ High level enhancements
{
"/api": {
target: "http://localhost:3001",
pathRewrite: { "^/api": "" },
},
},
],
],
pathRewrite: { "^/api": "" }
}
}
]
]
// ...
};
```
Expand Down
6 changes: 3 additions & 3 deletions cypress/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
module.exports = {
plugins: ["cypress"],
env: {
"cypress/globals": true,
"cypress/globals": true
},
rules: {
"testing-library/await-async-query": "off", // Cypress chains don't use promises
Expand All @@ -18,6 +18,6 @@ module.exports = {
"jest/expect-expect": "off",
"jest/valid-expect": "off",
"jest/valid-expect-in-promise": "off",
"jest/no-conditional-expect": "off",
},
"jest/no-conditional-expect": "off"
}
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 92b2110

Please sign in to comment.