aboutsummaryrefslogtreecommitdiffstats
path: root/web/.eslintrc.json
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-02-06 12:54:48 +0000
committerMohamedBassem <me@mbassem.com>2024-02-06 12:54:48 +0000
commit2518a99d1c296dc838edc2330dc6eb6fe5aead8e (patch)
treede79ccee980ead9bbc013666eebcf9e9a9469f83 /web/.eslintrc.json
parent083ea5bd19172381bb53e95aaf98eaabef839c54 (diff)
downloadkarakeep-2518a99d1c296dc838edc2330dc6eb6fe5aead8e.tar.zst
Add eslint and prettier
Diffstat (limited to 'web/.eslintrc.json')
-rw-r--r--web/.eslintrc.json21
1 files changed, 20 insertions, 1 deletions
diff --git a/web/.eslintrc.json b/web/.eslintrc.json
index bffb357a..d971ae2a 100644
--- a/web/.eslintrc.json
+++ b/web/.eslintrc.json
@@ -1,3 +1,22 @@
{
- "extends": "next/core-web-vitals"
+ "parser": "@typescript-eslint/parser",
+ "parserOptions": {
+ "project": "./tsconfig.json",
+ "ecmaFeatures": {
+ "jsx": true
+ },
+ "ecmaVersion": 12,
+ "sourceType": "module"
+ },
+ "extends": [
+ "next/core-web-vitals",
+ "eslint:recommended",
+ "plugin:react/recommended",
+ "plugin:react-hooks/recommended",
+ "plugin:@next/next/recommended",
+ "next",
+ "plugin:@typescript-eslint/recommended",
+ "plugin:@typescript-eslint/recommended-requiring-type-checking",
+ "prettier"
+ ]
}