diff options
| author | MohamedBassem <me@mbassem.com> | 2024-02-09 02:17:45 +0000 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-02-09 02:51:39 +0000 |
| commit | b25f17509e704eb41523bf455a33804cabf8aaca (patch) | |
| tree | c1449bb3b8326504a32cc907b64a809a1290fe1d /.eslintrc.js | |
| parent | 08a5694e451218f1bcb2ad9eb42fd93250afbb96 (diff) | |
| download | karakeep-b25f17509e704eb41523bf455a33804cabf8aaca.tar.zst | |
[chore] Linting and formating tweaking
Diffstat (limited to '.eslintrc.js')
| -rw-r--r-- | .eslintrc.js | 18 |
1 files changed, 14 insertions, 4 deletions
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", + }, + ], }; |
