aboutsummaryrefslogtreecommitdiff
path: root/packages/config/eslint/web.js
diff options
context:
space:
mode:
authorPauline <git@ethanlibs.co>2023-10-14 22:27:27 -0400
committerPauline <git@ethanlibs.co>2023-10-14 22:27:27 -0400
commit2582162cea2b3a59cd21c78f8b73cb03d0acad40 (patch)
tree432057475f3b51850a85e2cba9969bcb79f3a8e6 /packages/config/eslint/web.js
parent06f51ccdc496a6581d098edc424f3973e550221d (diff)
downloadNexus-2582162cea2b3a59cd21c78f8b73cb03d0acad40.tar.gz
Nexus-2582162cea2b3a59cd21c78f8b73cb03d0acad40.tar.bz2
Nexus-2582162cea2b3a59cd21c78f8b73cb03d0acad40.zip
refactor(trunk): refactor the entire project idk
Diffstat (limited to 'packages/config/eslint/web.js')
-rw-r--r--packages/config/eslint/web.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/packages/config/eslint/web.js b/packages/config/eslint/web.js
new file mode 100644
index 0000000..dc010b3
--- /dev/null
+++ b/packages/config/eslint/web.js
@@ -0,0 +1,22 @@
+/** @type {import('eslint').ESLint.ConfigData} */
+module.exports = {
+ extends: [require.resolve('./base.js'), require.resolve('./tailwind.js')],
+ ignorePatterns: ['public', 'vite.config.ts'],
+ env: {
+ browser: true,
+ node: true
+ },
+ rules: {
+ 'no-restricted-syntax': [
+ 'error',
+ {
+ selector: "CallExpression[callee.name='useParams']",
+ message: 'useParams is illegal, use useZodRouteParams!'
+ },
+ {
+ selector: "CallExpression[callee.name='useSearchParams']",
+ message: 'useSearchParams is illegal, use useZodSearchParams!'
+ }
+ ]
+ }
+};