From 96affcb518d0d3700d5cc4635c7b3887c32bb474 Mon Sep 17 00:00:00 2001 From: Erik Williams Date: Sat, 21 Oct 2023 13:19:59 -0800 Subject: [PATCH 1/3] removed a vestigial file called .eslintrc.json and added its contents to .eslintrc.js --- .eslintrc.js | 5 ++++- .eslintrc.json | 3 --- 2 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 .eslintrc.json diff --git a/.eslintrc.js b/.eslintrc.js index 0dc2de3..3b14e59 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -6,7 +6,10 @@ module.exports = { }, extends: [ 'eslint:recommended', - 'plugin:react/recommended' + 'plugin:react/recommended', + 'next/core-web-vitals' + }; + ], overrides: [ { diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index bffb357..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "next/core-web-vitals" -} From b115fd900c993a98f86003c7080ead085fd4759b Mon Sep 17 00:00:00 2001 From: Erik Williams Date: Sat, 21 Oct 2023 13:35:15 -0800 Subject: [PATCH 2/3] removed a curly brace and semicolon --- .eslintrc.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 3b14e59..3c14362 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -8,8 +8,6 @@ module.exports = { 'eslint:recommended', 'plugin:react/recommended', 'next/core-web-vitals' - }; - ], overrides: [ { From c9555f21b681dfecccf79efcf4c513b3f38583d8 Mon Sep 17 00:00:00 2001 From: Erik Williams Date: Sat, 21 Oct 2023 16:06:11 -0800 Subject: [PATCH 3/3] added code complexity warning to linter --- .eslintrc.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 3c14362..e18f311 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -45,6 +45,7 @@ module.exports = { semi: [ 'error', 'never' - ] + ], + complexity: ['warn', 10] } }