about summary refs log tree commit diff
path: root/.eslintrc.cjs
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2024-06-02 23:54:15 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2024-06-02 23:54:15 +0200
commit39eac64b58fb2b1a25ed016bb9637e0bf3c01a11 (patch)
tree4fca914e01ed6dec7bc322f5f2e97814ed8dda4a /.eslintrc.cjs
downloadfs-tracer-frontend-39eac64b58fb2b1a25ed016bb9637e0bf3c01a11.tar.gz
fs-tracer-frontend-39eac64b58fb2b1a25ed016bb9637e0bf3c01a11.tar.bz2
fs-tracer-frontend-39eac64b58fb2b1a25ed016bb9637e0bf3c01a11.zip
Initial commit
Diffstat (limited to '.eslintrc.cjs')
-rw-r--r--.eslintrc.cjs18
1 files changed, 18 insertions, 0 deletions
diff --git a/.eslintrc.cjs b/.eslintrc.cjs
new file mode 100644
index 0000000..d6c9537
--- /dev/null
+++ b/.eslintrc.cjs
@@ -0,0 +1,18 @@
+module.exports = {
+  root: true,
+  env: { browser: true, es2020: true },
+  extends: [
+    'eslint:recommended',
+    'plugin:@typescript-eslint/recommended',
+    'plugin:react-hooks/recommended',
+  ],
+  ignorePatterns: ['dist', '.eslintrc.cjs'],
+  parser: '@typescript-eslint/parser',
+  plugins: ['react-refresh'],
+  rules: {
+    'react-refresh/only-export-components': [
+      'warn',
+      { allowConstantExport: true },
+    ],
+  },
+}