From 493c736f2eabbc79f080d554a26cf1285e4ea4d0 Mon Sep 17 00:00:00 2001 From: Walidoux Date: Thu, 17 Mar 2022 11:47:20 +0100 Subject: [PATCH] feat(eslint): add eslint rules among prettier --- .eslintignore | 3 +++ .eslintrc | 9 ++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .eslintignore diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..0665742 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,3 @@ +node_modules +.next +next-env.d.ts diff --git a/.eslintrc b/.eslintrc index bffb357..1989db1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,3 +1,10 @@ { - "extends": "next/core-web-vitals" + "extends": ["next/core-web-vitals", "prettier"], + "plugins": ["prettier"], + "rules": { + "prettier/prettier": "error", + "no-unused-vars": "warn", + "no-console": "off", + "@next/next/no-img-element": "off" + } }