-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslintrc.js
38 lines (38 loc) · 901 Bytes
/
eslintrc.js
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
module.exports = {
plugins: ["import"],
rules: {
"import/prefer-default-export": 0,
"class-methods-use-this": 0,
"eslint-disable no-restricted-syntax": 0,
"consistent-return": "error",
radix: ["error", "as-needed"],
"no-underscore-dangle": 0,
"no-restricted-imports": [
"error",
{
paths: [
{
name: "styled-components/macro",
message: "Please don't import from styled-components/macro.",
},
],
},
],
"no-alert": 0,
"no-confusing-arrow": ["off"],
"global-require": [0],
semi: [2, "never"],
"no-shadow": "off",
"object-curly-newline": 0,
"function-paren-newline": 0,
"no-restricted-globals": 0,
"no-catch-shadow": 0,
"lines-between-class-members": [
"error",
"always",
{
exceptAfterSingleLine: true,
},
],
},
};