forked from TravelLaboratory/frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
107 lines (107 loc) · 2.84 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": [
"next/core-web-vitals",
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"airbnb",
"plugin:prettier/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"tsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint", "prettier", "import"],
"rules": {
"react/react-in-jsx-scope": 0,
"react/prefer-stateless-function": 0,
"react/jsx-filename-extension": 0,
"react/jsx-one-expression-per-line": 0,
"react/require-default-props": "off",
"no-nested-ternary": 0,
"linebreak-style": 0,
"max-len": ["error", 120, 2, { "ignoreComments": true, "ignoreUrls": true }],
"no-console": "off",
"react/jsx-props-no-spreading": "off",
"comma-dangle": ["error", "never"],
"prettier/prettier": "error",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"import/order": [
"error",
{
"groups": ["builtin", "external", "internal", ["parent", "sibling"], "index", "unknown"],
"pathGroups": [
{
"pattern": "react",
"group": "external",
"position": "before"
},
{
"pattern": "react*,react*/**",
"group": "external",
"position": "before"
},
{
"pattern": "@/**/*",
"group": "internal",
"position": "after"
}
],
"pathGroupsExcludedImportTypes": ["react"],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "error",
"consistent-return": "off"
},
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"alias": {
"map": [
["@/apis", "./src/apis"],
["@/app", "./src/app"],
["@/components", "./src/components"],
["@/constants", "./src/libs/constants"],
["@/contexts", "./src/libs/contexts"],
["@/hooks", "./src/libs/hooks"],
["@/utils", "./src/libs/utils"],
["@/styles", "./src/styles"],
["@/fonts", "./public/fonts"],
["@/icons", "./public/icons"],
["@/images", "./public/images"]
],
"extensions": [".js", ".jsx", ".json", ".tsx", ".ts"]
}
}
}
}