From 583f2d9e02c771b4c5d64fa8682201ebfcad159b Mon Sep 17 00:00:00 2001 From: Robert Date: Wed, 13 Mar 2024 01:12:48 +0700 Subject: [PATCH] whatever --- .eslintrc.cjs | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index d6c9537..7e3a52f 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -2,17 +2,18 @@ module.exports = { root: true, env: { browser: true, es2020: true }, extends: [ - 'eslint:recommended', - 'plugin:@typescript-eslint/recommended', - 'plugin:react-hooks/recommended', + "eslint:recommended", + "plugin:@typescript-eslint/recommended", + "plugin:react-hooks/recommended", ], - ignorePatterns: ['dist', '.eslintrc.cjs'], - parser: '@typescript-eslint/parser', - plugins: ['react-refresh'], + ignorePatterns: ["dist", ".eslintrc.cjs"], + parser: "@typescript-eslint/parser", + plugins: ["react-refresh"], rules: { - 'react-refresh/only-export-components': [ - 'warn', + "react-refresh/only-export-components": [ + "warn", { allowConstantExport: true }, ], + "prefer-const": "off", }, -} +};