This repository has been archived by the owner on Jan 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.json
129 lines (129 loc) · 3.04 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
{
"parser": "@typescript-eslint/parser",
"env": {
"browser": true,
"es6": true,
"jest": true
},
"extends": [
"airbnb",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 11,
"sourceType": "module"
},
"plugins": ["react", "@emotion"],
"rules": {
"class-methods-use-this": "off",
"comma-dangle": "off",
"object-curly-newline": "warn",
"no-plusplus": "off",
"no-param-reassign": "warn",
"prefer-destructuring": "off",
"no-underscore-dangle": [
"error",
{
"allow": ["__initialize", "__reset"]
}
],
"max-len": ["error", { "code": 200, "ignoreComments": true }],
"no-restricted-syntax": "off",
"camelcase": [
"error",
{
"allow": [
"api_key",
"time_entry",
"spent_on",
"issue_id",
"activity_id",
"user_id",
"spent_hours",
"total_spent_hours",
"time_entries",
"project_id",
"tracker_id",
"status_id",
"assigned_to_id",
"author_id",
"due_date",
"created_on",
"priority_id",
"private_notes",
"total_count",
"estimated_duration",
"estimated_hours",
"done_ratio",
"assigned_to",
"start_date",
"custom_fields",
"closed_on",
"progress_info"
]
}
],
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/anchor-is-valid": "off",
"react/no-array-index-key": "off",
"no-mixed-operators": "off",
"react/forbid-prop-types": "off",
"react/require-default-props": "off",
"react/jsx-props-no-spreading": "off",
"max-classes-per-file": "off",
"no-use-before-define": "off",
"arrow-parens": "off",
"consistent-return": "off",
"jsx-quotes": "off",
"react/jsx-filename-extension": [
2,
{ "extensions": [".js", ".jsx", ".ts", ".tsx"] }
],
"implicit-arrow-linebreak": ["error", "beside"],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true,
"optionalDependencies": false,
"peerDependencies": false
}
],
"jsx-a11y/label-has-for": [
2,
{
"required": {
"every": ["nesting", "id"]
},
"allowChildren": true
}
],
"react/prefer-stateless-function": "off",
"import/prefer-default-export": "off",
"react/jsx-boolean-value": "off",
"@typescript-eslint/no-var-requires": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
]
},
"settings": {
"import/resolver": {
"typescript": {}
},
"import/extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}