From b25f17509e704eb41523bf455a33804cabf8aaca Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Fri, 9 Feb 2024 02:17:45 +0000 Subject: [chore] Linting and formating tweaking --- .eslintrc.js | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to '.eslintrc.js') diff --git a/.eslintrc.js b/.eslintrc.js index bf32149f..75b50972 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,4 +1,5 @@ module.exports = { + root: true, env: { browser: true, es2021: true, @@ -9,20 +10,23 @@ module.exports = { "plugin:react/recommended", "plugin:react-hooks/recommended", "plugin:@next/next/recommended", + "plugin:tailwindcss/recommended", + "plugin:@typescript-eslint/recommended", "next", "prettier", ], + plugins: ["tailwindcss", "@typescript-eslint"], parserOptions: { ecmaVersion: "latest", sourceType: "module", }, ignorePatterns: ["postcss.config.js"], rules: { - "no-redeclare": "off", "@next/next/no-html-link-for-pages": "off", - "no-undef": "off", - "react/jsx-no-undef": "off", - "no-unused-vars": [ + "tailwindcss/no-custom-classname": "off", + "tailwindcss/migration-from-tailwind-2": "off", + + "@typescript-eslint/no-unused-vars": [ "error", { varsIgnorePattern: "^_", @@ -30,4 +34,10 @@ module.exports = { }, ], }, + overrides: [ + { + files: ["*.ts", "*.tsx"], + parser: "@typescript-eslint/parser", + }, + ], }; -- cgit v1.3-1-g0d28