-
Notifications
You must be signed in to change notification settings - Fork 17
/
.eslintrc
66 lines (66 loc) · 2.12 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
{
"extends": ["./node_modules/@waveshq/standard-web-linter"],
"rules": {
// Temporary warning as moving from Standard to Airbnb
"react/destructuring-assignment": "off",
"react/no-unused-prop-types": "warn",
"@typescript-eslint/no-use-before-define": "off",
"react-hooks/exhaustive-deps": "off",
"react/jsx-no-constructed-context-values": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"no-nested-ternary": "off",
"arrow-body-style": "off",
"no-restricted-syntax": "off",
"import/prefer-default-export": "off",
"no-param-reassign": "off",
"prefer-destructuring": "off",
"react/jsx-no-useless-fragment": "off",
"object-shorthand": "off",
"@typescript-eslint/no-shadow": "off",
"no-else-return": "off",
"react/no-unescaped-entities": "off",
"default-case": "off",
"no-unsafe-optional-chaining": "off",
"react/no-array-index-key": "off",
"no-restricted-globals": "off",
"no-await-in-loop": "off",
"consistent-return": "off",
"react/no-unstable-nested-components": "off",
"react/jsx-no-bind": "off",
"no-restricted-properties": "off",
"prefer-exponentiation-operator": "off",
"@typescript-eslint/return-await": "off",
"import/no-cycle": "off",
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-unused-expressions": "off",
"no-underscore-dangle": "off",
"global-require": "off",
"curly": ["error", "all"],
"brace-style": ["error", "1tbs"],
"func-style": [2, "declaration"],
"no-void": "off",
"import/no-default-export": "error",
"multiline-ternary": "off",
"jsx-a11y/mouse-events-have-key-events": "off",
"no-restricted-imports": [
"error",
{
"name": "next/link",
"message": "Please use @components/commons/Link instead."
},
{
"name": "next/head",
"message": "Please use @components/commons/Head instead."
}
]
},
"overrides": [
{
"files": ["src/pages/**/*.page.tsx"],
"rules": {
"import/no-default-export": "off"
}
}
]
}