Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .oxlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,23 @@
"plugins": ["typescript", "react", "import"],
"rules": {
"no-unused-vars": "warn",
"no-shadow": "warn",
"no-empty-function": "warn",
"unicorn/no-thenable": "off",
"react/exhaustive-deps": "warn",
"react/prefer-es6-class": "error",
"react/self-closing-comp": "error",
"react/jsx-filename-extension": [
"warn",
{
"extensions": [".mdx", ".jsx", ".tsx"]
}
],
"import/first": "warn",
"import/no-duplicates": "warn",
"sort-imports": "off",
"typescript/no-floating-promises": "error"
"typescript/no-floating-promises": "error",
"typescript/switch-exhaustiveness-check": "warn"
},
"ignorePatterns": [
"build/",
Expand Down
2 changes: 1 addition & 1 deletion packages/browser-sdk/example/feedback/Feedback.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const FeedbackForm = () => {
<div>
<label>
<div>Comment</div>
<textarea name="comment" placeholder="Write a comment..."></textarea>
<textarea name="comment" placeholder="Write a comment..." />
</label>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const Context = () => {
className="min-h-[200px]"
value={context}
onChange={(e) => setContext(e.target.value)}
></textarea>
/>
<button
disabled={!validJson}
className="border-solid m-auto max-w-60 border-2 border-indigo-600 rounded-lg p-2 mt-4 disabled:opacity-50"
Expand Down
6 changes: 3 additions & 3 deletions packages/react-sdk/dev/plain/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function UpdateContext() {
<textarea
value={newCompany}
onChange={(e) => setNewCompany(e.target.value)}
></textarea>
/>
</td>
<td>
<button onClick={() => updateCompany(JSON.parse(newCompany))}>
Expand All @@ -95,7 +95,7 @@ function UpdateContext() {
<textarea
value={newUser}
onChange={(e) => setNewUser(e.target.value)}
></textarea>
/>
</td>
<td>
<button onClick={() => updateUser(JSON.parse(newUser))}>
Expand All @@ -108,7 +108,7 @@ function UpdateContext() {
<textarea
value={newOtherContext}
onChange={(e) => setNewOtherContext(e.target.value)}
></textarea>
/>
</td>
<td>
<button
Expand Down
Loading