-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
92 lines (92 loc) · 2.09 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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"jsx": true,
"useJSXTextNode": true,
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"modules": true
}
},
"rules": {
"import/extensions": [
0,
"never",
{
"ignorePackages": true
}
],
"spaced-comment": ["error", "always"],
"eqeqeq": [
"error",
"always",
{
"null": "ignore"
}
],
"no-underscore-dangle": [
"error",
{
"allow": ["_id", "_api"]
}
],
"camelcase": [
"error",
{
"allow": ["oauth2_v2", "user_id", "signature_request"],
"properties": "never"
}
],
"func-names": ["error", "never"],
"arrow-parens": ["error", "always"],
"semi": "error",
"no-extra-semi": 0,
"no-use-before-define": "off",
"import/no-unresolved": "off",
"import/prefer-default-export": 0,
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": ["**/*.test.ts", "**/*.spec.ts"]
}
],
"import/order": "off",
"no-unused-vars": "off",
"dot-notation": "off",
"class-methods-use-this": "off",
"comma-dangle": ["error", "always-multiline"],
"handle-callback-err": "error",
"quotes": ["error", "single"],
"object-curly-newline": "off",
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"no-restricted-syntax": "off",
"no-await-in-loop": "off",
"operator-linebreak": "off",
"max-len": [
"error",
{
"code": 120,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true,
"ignoreComments": true
}
],
"no-shadow": "off",
"function-call-argument-newline": "off",
"function-paren-newline": "off",
"implicit-arrow-linebreak": "off"
},
"overrides": [
{
"files": ["**/*.ts"],
"parser": "@typescript-eslint/parser",
"rules": {
"no-undef": "off"
}
}
],
"extends": ["eslint:recommended", "airbnb-base"],
"plugins": ["@typescript-eslint"],
"settings": {}
}