forked from fortedigital/nextjs-cache-handler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.json
More file actions
39 lines (39 loc) · 1.06 KB
/
eslint.config.json
File metadata and controls
39 lines (39 loc) · 1.06 KB
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
{
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"plugins": ["@typescript-eslint", "simple-import-sort"],
"rules": {
"@typescript-eslint/no-unused-vars": ["error"],
"array-callback-return": "warn",
"eqeqeq": "warn",
"func-style": [
"warn",
"declaration",
{
"allowArrowFunctions": true
}
],
"import/first": "warn",
"import/newline-after-import": "warn",
"import/no-duplicates": "warn",
"multiline-comment-style": ["warn", "starred-block"],
"no-lonely-if": "warn",
"no-self-compare": "error",
"no-template-curly-in-string": "error",
"no-unreachable-loop": "warn",
"no-unused-expressions": "warn",
"no-unused-vars": "off",
"no-var": "error",
"prefer-arrow-callback": "warn",
"prefer-const": "warn",
"prefer-promise-reject-errors": "warn",
"prefer-spread": "warn",
"simple-import-sort/exports": "warn",
"simple-import-sort/imports": "warn"
},
"root": true
}