-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy path.eslintrc.json
40 lines (39 loc) · 1.12 KB
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"plugins": ["prettier"],
"extends": [
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"env": {
"es6": true,
"browser": true,
"jest": true,
"node": true
},
"rules": {
"prettier/prettier": "warn",
"no-unused-vars": "off",
"@typescript-eslint/no-explicit-any": "error", // prevents use of 'any' keyword
"@typescript-eslint/explicit-module-boundary-types": "warn", // explicit return types for functions/methods
"@typescript-eslint/no-unused-vars": [
"warn",
{
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": false,
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"prefer-const": "error",
"no-var": "error",
"no-console": "warn",
"no-debugger": "warn",
"no-eval": "error"
// Formatting-related rules
// "comma-dangle": ["error", "always-multiline"], // Enforces trailing commas for multiline statements
// "semi": ["error", "always"], // Enforces semicolons
// "indent": ["error", 2] // Enforces 2-space indentation
}
}