summaryrefslogtreecommitdiff
path: root/react/07-react-router/.oxlintrc.json
diff options
context:
space:
mode:
authorKamal Wickramanayake <kamal@inbox.lk>2026-07-01 20:41:10 +0530
committerKamal Wickramanayake <kamal@inbox.lk>2026-07-01 20:41:10 +0530
commit282a6af67b7ab8cce02f9c1e517008fbd775cf93 (patch)
treebbe9ca9a6b7808b55282860f5e3d25856afbb8e5 /react/07-react-router/.oxlintrc.json
parent6032e3533fa01cb722d750db13419406da344ae0 (diff)
Added React Router sample app
Diffstat (limited to 'react/07-react-router/.oxlintrc.json')
-rw-r--r--react/07-react-router/.oxlintrc.json8
1 files changed, 8 insertions, 0 deletions
diff --git a/react/07-react-router/.oxlintrc.json b/react/07-react-router/.oxlintrc.json
new file mode 100644
index 0000000..1255078
--- /dev/null
+++ b/react/07-react-router/.oxlintrc.json
@@ -0,0 +1,8 @@
+{
+ "$schema": "./node_modules/oxlint/configuration_schema.json",
+ "plugins": ["react", "oxc"],
+ "rules": {
+ "react/rules-of-hooks": "error",
+ "react/only-export-components": ["warn", { "allowConstantExport": true }]
+ }
+}