forked from Blazity/next-saas-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
40 lines (40 loc) · 1.35 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
{
"parser": "@typescript-eslint/parser",
"extends": ["react-app", "prettier", "plugin:react/recommended", "next/core-web-vitals"],
"env": {
"es6": true
},
"parserOptions": {
"sourceType": "module"
},
"rules": {
"react/prop-types": 0,
"react/react-in-jsx-scope": 0,
"react/display-name": 0,
"no-unused-vars": 0,
"sort-imports": ["error", { "ignoreCase": true, "ignoreDeclarationSort": true }],
"import/order": [
1,
{
"groups": ["external", "builtin", "internal", "sibling", "parent", "index"],
"pathGroups": [
{ "pattern": "env", "group": "internal" },
{ "pattern": "types", "group": "internal" },
{ "pattern": "components/**", "group": "internal" },
{ "pattern": "contexts/**", "group": "internal" },
{ "pattern": "hooks/**", "group": "internal" },
{ "pattern": "pages/**", "group": "internal" },
{ "pattern": "views/**", "group": "internal" },
{ "pattern": "utils/**", "group": "internal" },
{ "pattern": "public/**", "group": "internal", "position": "after" },
{ "pattern": "posts/**", "group": "internal", "position": "after" }
],
"pathGroupsExcludedImportTypes": ["internal"],
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
]
}
}