summaryrefslogtreecommitdiff
path: root/react/05-useeffect/.oxlintrc.json
diff options
context:
space:
mode:
authorKamal Wickramanayake <kamal@inbox.lk>2026-07-01 15:30:09 +0530
committerKamal Wickramanayake <kamal@inbox.lk>2026-07-01 15:30:09 +0530
commit6032e3533fa01cb722d750db13419406da344ae0 (patch)
tree759c1c80cc50611ca927b18ac135d4faad3d40c2 /react/05-useeffect/.oxlintrc.json
parent5ed431db2c4a45b35fe1ab9e6d8a69ca62bbbeb5 (diff)
React sample apps: useEffect hook, Axios api calls
Diffstat (limited to 'react/05-useeffect/.oxlintrc.json')
-rw-r--r--react/05-useeffect/.oxlintrc.json8
1 files changed, 8 insertions, 0 deletions
diff --git a/react/05-useeffect/.oxlintrc.json b/react/05-useeffect/.oxlintrc.json
new file mode 100644
index 0000000..1255078
--- /dev/null
+++ b/react/05-useeffect/.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 }]
+ }
+}