-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
92 lines (92 loc) · 2.46 KB
/
.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
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
module.exports = {
root: true,
env: {
node: true,
browser: true,
es6: true,
},
settings: {
"svelte3/ignore-styles": (attrs) => attrs.lang === 'scss',
},
extends: "@sveltejs",
rules: {
quotes: 'off',
"import/no-unresolved": 'off',
"prefer-arrow-callback": 'off',
semi: ["error", "always"],
"spaced-comment": ["error", "always"],
"space-before-function-paren": ["error", {
anonymous: "never",
named: "never",
asyncArrow: "always",
}],
"brace-style": ["error", "1tbs", { allowSingleLine: true }],
"no-trailing-spaces": ["error", {
skipBlankLines: false,
ignoreComments: false,
}],
curly: ["warn", "all"],
indent: ["error", 2],
"comma-dangle": ["warn", "always-multiline"],
"no-unused-vars": [
"error",
{ vars: "all", args: "none", ignoreRestSiblings: true },
],
"no-constant-condition": "off",
"keyword-spacing": "error",
"no-console": ["warn", { allow: ["warn", "error"] }],
"no-template-curly-in-string": "warn",
"block-spacing": ["error", "always"],
"comma-spacing": ["error", { before: false, after: true }],
"computed-property-spacing": ["error", "never"],
"eol-last": ["error", "always"],
"max-len": ["error", { code: 100 }],
"no-tabs": "error",
"operator-assignment": ["error", "always"],
"object-curly-spacing": ["warn", "always", {
arraysInObjects: true,
objectsInObjects: true,
}],
"key-spacing": "error",
"space-in-parens": ["error", "never"],
"space-infix-ops": "error",
"no-var": "error",
"prefer-const": ["error", {
destructuring: "all",
ignoreReadBeforeAssign: false,
}],
"yield-star-spacing": "error",
"generator-star-spacing": ["error", {
before: false,
after: true,
anonymous: "neither",
method: { before: true, after: false },
}],
camelcase: ["warn", {
allow: [
'image_id',
'csrf_token',
'feedback_questions',
'telegram_username',
'actual_hours',
'entry_time',
'fixed_reward',
'reward_rate',
'admin_feedback',
'review_status',
'existing_application',
'telegram_required',
'application_deadline',
'people_required',
'vacant_spots',
'start_date',
'end_date',
'working_hours',
'is_read',
'full_name',
'chat_id',
'parse_mode',
],
}],
},
};