From 8ec0f2595675eb74ce8296b497e87081f9bbf474 Mon Sep 17 00:00:00 2001 From: Fazleiw <156914529+Fazleiw@users.noreply.github.com> Date: Wed, 23 Oct 2024 11:07:57 +0700 Subject: [PATCH] Refactoring for ESLint and Prettier Integration By adding the plugin:prettier/recommended and prettier/prettier rules, improved the configuration to ensure that Prettier formatting issues are handled by ESLint --- .eslintrc.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index af1ba640b..d8f697871 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,10 +1,14 @@ module.exports = { root: true, // This tells ESLint to load the config from the package `eslint-config-custom` - extends: ['custom'], + extends: ['custom', 'plugin:prettier/recommended'], settings: { next: { rootDir: ['apps/*/'], }, + }, + plugins: ['prettier'], + rules: { + 'prettier/prettier': 'error', }, }