diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-09-12 16:28:47 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-09-12 16:28:56 +0800 |
commit | a6c7ca4626d495580c7a60dee7d0f5ccb090a629 (patch) | |
tree | 84991a018e106515e8c87783ac1c30f105d900c0 /eslint.config.js | |
parent | a67e5adede9fca1326e50bd530861fae75b2bf3d (diff) |
chore: Fix warning from eslint
Diffstat (limited to 'eslint.config.js')
-rw-r--r-- | eslint.config.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/eslint.config.js b/eslint.config.js index ac88ddf..228a920 100644 --- a/eslint.config.js +++ b/eslint.config.js | |||
@@ -21,7 +21,11 @@ export default [ | |||
21 | node: nodePlugin, | 21 | node: nodePlugin, |
22 | }, | 22 | }, |
23 | rules: { | 23 | rules: { |
24 | 'no-unused-vars': ['warn', { 'varsIgnorePattern': '^_' }], | 24 | 'no-unused-vars': ['warn', { |
25 | 'varsIgnorePattern': '^_', | ||
26 | "argsIgnorePattern": "^_", | ||
27 | "caughtErrorsIgnorePattern": "^ignore|_", | ||
28 | }], | ||
25 | 'import/no-unresolved': 'error', | 29 | 'import/no-unresolved': 'error', |
26 | 'no-console': ["error", { allow: ["info", "warn", "error"] }], | 30 | 'no-console': ["error", { allow: ["info", "warn", "error"] }], |
27 | 'eqeqeq': ['error', 'always'], | 31 | 'eqeqeq': ['error', 'always'], |