From 6299302ff9ee09037fcaa841d3977f897be8ceae Mon Sep 17 00:00:00 2001 From: Jixun Wu Date: Thu, 18 May 2023 00:03:55 +0100 Subject: [PATCH] chore: configure eslint rules --- .eslintignore | 3 +++ .eslintrc.cjs | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 .eslintignore diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..2d0c064 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,3 @@ +dist/ +node_modules/ +coverage/ diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 9c762c2..e8e69db 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -14,5 +14,14 @@ module.exports = { plugins: ['react-refresh'], rules: { 'react-refresh/only-export-components': 'warn', + '@typescript-eslint/no-unused-vars': [ + 'error', + { + varsIgnorePattern: '^_', + argsIgnorePattern: '^_', + destructuredArrayIgnorePattern: '^_', + ignoreRestSiblings: true, + }, + ], }, };