-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
110 lines (110 loc) · 3.4 KB
/
.eslintrc
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
108
109
110
{
"extends": [
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended",
"plugin:security/recommended",
"eslint:recommended",
"plugin:import/recommended",
"plugin:import/typescript"
],
"plugins": [
"@typescript-eslint"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": ["./tsconfig.json"]
},
"globals": {
"FCC": "readonly",
"FC": "readonly",
"FunctionalComponentWithChildren": "readonly"
},
"rules": {
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": { "delimiter": "none" },
"singleline": { "delimiter": "comma", "requireLast": false }
}
],
"indent": ["error", "tab"],
"linebreak-style": ["error", "unix"],
"semi": ["error", "never", {
"beforeStatementContinuationChars": "never"
}],
"object-curly-newline": "error",
"object-curly-spacing": ["error", "always"],
"array-bracket-spacing": ["error", "never"],
"prefer-const": "error",
"no-new-object": "error",
"object-shorthand": ["error", "properties"],
"no-useless-rename": "error",
"no-useless-return": "error",
"no-useless-constructor": "error",
"comma-dangle": ["error", "always-multiline"],
"prefer-spread": "error",
"camelcase": ["error", {
"ignoreDestructuring": true,
"allow": [
"unstable_getServerSession"
]
}],
"new-cap": ["error", {
"capIsNew": false
}],
"array-callback-return": "error",
"no-await-in-loop": "error",
"yoda": "error",
"no-constructor-return": "error",
// "no-duplicate-imports": "error", // This conflicts with import/order :(
"no-promise-executor-return": "error",
"no-self-compare": "error",
"no-multi-assign": "error",
"no-template-curly-in-string": "error",
"no-unmodified-loop-condition": "error",
"no-unreachable": "error",
"no-else-return": "error",
"valid-jsdoc": "warn",
"no-extra-parens": "off",
"@typescript-eslint/no-extra-parens": ["error", "all", {
"ignoreJSX": "all"
}],
"no-return-assign": "error",
"no-return-await": "error",
"arrow-body-style": ["error", "always"],
"react-hooks/exhaustive-deps": "error",
"@typescript-eslint/array-type": ["error", "always"],
"@typescript-eslint/prefer-includes": "error",
"require-await": "off",
"quotes": "off",
"@typescript-eslint/quotes": ["error", "single"],
"@typescript-eslint/require-await": "error",
"@typescript-eslint/prefer-optional-chain": "error",
"@typescript-eslint/promise-function-async": "error",
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/no-loop-func": "error",
"sort-imports": ["error", {
"ignoreCase": true,
"ignoreMemberSort": true,
"ignoreDeclarationSort": true,
"memberSyntaxSortOrder": ["none", "all", "multiple", "single"],
"allowSeparatedGroups": false
}],
"@typescript-eslint/consistent-type-imports": "error",
"default-param-last": "off",
"@typescript-eslint/default-param-last": "error",
"import/order": ["error", {
"groups": [
"builtin",
"type",
"external",
"internal"
],
"pathGroups": [
{ "pattern": "~**", "group": "internal", "position": "before" },
{ "pattern": "@**", "group": "external", "position": "before" }
],
"newlines-between": "never"
}]
}
}