-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
76 lines (76 loc) · 1.64 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
{
"root": true,
"env": {
"es6": true,
"node": true,
"shared-node-browser": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module"
},
"extends": ["plugin:prettier/recommended", "prettier"],
"plugins": ["@typescript-eslint/eslint-plugin", "import"],
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint/eslint-plugin"],
"rules": {
"no-unused-vars": "off",
"no-shadow": "off",
"@typescript-eslint/no-shadow": 1,
"no-undef": "off",
"func-call-spacing": "off",
"@typescript-eslint/func-call-spacing": 1
}
},
{
"files": [
"*.{spec,test}.{js,ts,tsx}",
"**/__{mocks,tests}__/**/*.{js,ts,tsx}"
],
"rules": {
"quotes": [
1,
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
]
}
}
],
"rules": {
"import/newline-after-import": "error",
"prettier/prettier": [
"error",
{
"quoteProps": "consistent",
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false
}
],
"no-unused-vars": "off",
"import/order": [
"error",
{
"newlines-between": "always-and-inside-groups",
"alphabetize": {
"order": "asc",
"orderImportKind": "asc"
}
}
],
"sort-imports": [
"error",
{
"ignoreDeclarationSort": true,
"ignoreMemberSort": false
}
]
}
}