aboutsummaryrefslogtreecommitdiffstats
path: root/.eslintrc.cjs
diff options
context:
space:
mode:
authorLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2024-07-25 18:52:28 +0530
committerLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2024-07-25 18:52:28 +0530
commit458a8c849da82adf045a40919a4a9e3aa06e1c06 (patch)
tree12a38c835c45a66f0fd194dfa832aab618c1ff32 /.eslintrc.cjs
parentf80a3c811059a22f91842658aaace9e283a704d1 (diff)
downloadadmin-panel-458a8c849da82adf045a40919a4a9e3aa06e1c06.tar.gz
admin-panel-458a8c849da82adf045a40919a4a9e3aa06e1c06.tar.bz2
admin-panel-458a8c849da82adf045a40919a4a9e3aa06e1c06.zip
initialized vite+react project
Diffstat (limited to '.eslintrc.cjs')
-rw-r--r--.eslintrc.cjs21
1 files changed, 21 insertions, 0 deletions
diff --git a/.eslintrc.cjs b/.eslintrc.cjs
new file mode 100644
index 0000000..3e212e1
--- /dev/null
+++ b/.eslintrc.cjs
@@ -0,0 +1,21 @@
+module.exports = {
+ root: true,
+ env: { browser: true, es2020: true },
+ extends: [
+ 'eslint:recommended',
+ 'plugin:react/recommended',
+ 'plugin:react/jsx-runtime',
+ 'plugin:react-hooks/recommended',
+ ],
+ ignorePatterns: ['dist', '.eslintrc.cjs'],
+ parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
+ settings: { react: { version: '18.2' } },
+ plugins: ['react-refresh'],
+ rules: {
+ 'react/jsx-no-target-blank': 'off',
+ 'react-refresh/only-export-components': [
+ 'warn',
+ { allowConstantExport: true },
+ ],
+ },
+}