summaryrefslogtreecommitdiff
path: root/.eslintrc.cjs
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-04-21 18:39:50 -0600
committerHombreLaser <sebastian-440@live.com>2023-04-21 18:39:50 -0600
commit3e94d2245182d3c399585e04e0f5b2de8492e0e9 (patch)
treef72f527573dd7020360957d077057366fe3bd2b4 /.eslintrc.cjs
Commit inicial
Diffstat (limited to '.eslintrc.cjs')
-rw-r--r--.eslintrc.cjs14
1 files changed, 14 insertions, 0 deletions
diff --git a/.eslintrc.cjs b/.eslintrc.cjs
new file mode 100644
index 0000000..4020bcb
--- /dev/null
+++ b/.eslintrc.cjs
@@ -0,0 +1,14 @@
+module.exports = {
+ env: { browser: true, es2020: true },
+ extends: [
+ 'eslint:recommended',
+ 'plugin:@typescript-eslint/recommended',
+ 'plugin:react-hooks/recommended',
+ ],
+ parser: '@typescript-eslint/parser',
+ parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
+ plugins: ['react-refresh'],
+ rules: {
+ 'react-refresh/only-export-components': 'warn',
+ },
+}