@diplodoc/client 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.babelrc ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "presets": [
3
+ "@babel/env",
4
+ "@babel/react",
5
+ "@babel/typescript"
6
+ ],
7
+ "plugins": [
8
+ "@babel/plugin-proposal-class-properties",
9
+ "@babel/plugin-transform-runtime",
10
+ "@babel/plugin-syntax-top-level-await"
11
+ ]
12
+ }
package/.editorconfig ADDED
@@ -0,0 +1,17 @@
1
+ root = true
2
+
3
+ [*]
4
+ indent_style = space
5
+ indent_size = 4
6
+ end_of_line = lf
7
+ charset = utf-8
8
+ trim_trailing_whitespace = true
9
+ insert_final_newline = true
10
+
11
+ [{*.json,*.yml,*.yaml}]
12
+ indent_style = space
13
+ indent_size = 2
14
+
15
+ [GNUmakefile]
16
+ indent_style = tab
17
+ indent_size = 4
package/.eslintrc ADDED
@@ -0,0 +1,199 @@
1
+ {
2
+ "extends": ["eslint:recommended", "plugin:react/recommended"],
3
+ "parser": "babel-eslint",
4
+ "parserOptions": {
5
+ "ecmaVersion": 2019
6
+ },
7
+ "env": {
8
+ "es6": true,
9
+ "browser": true
10
+ },
11
+ "rules": {
12
+ "no-empty": 0,
13
+ "valid-jsdoc": [1, {
14
+ "requireParamDescription": false,
15
+ "requireReturnDescription": false
16
+ }],
17
+ "array-callback-return": 2,
18
+ "block-scoped-var": 1,
19
+ "complexity": 1,
20
+ "consistent-return": 1,
21
+ "curly": 2,
22
+ "dot-location": [2, "property"],
23
+ "eqeqeq": [1, "always"],
24
+ "guard-for-in": 2,
25
+ "no-caller": 2,
26
+ "no-div-regex": 1,
27
+ "no-eq-null": 2,
28
+ "no-eval": 1,
29
+ "no-extend-native": 2,
30
+ "no-extra-bind": 1,
31
+ "no-extra-label": 2,
32
+ "no-floating-decimal": 2,
33
+ "no-global-assign": 1,
34
+ "no-implicit-coercion": 1,
35
+ "no-implicit-globals": 1,
36
+ "no-implied-eval": 1,
37
+ "no-iterator": 2,
38
+ "no-labels": 2,
39
+ "no-loop-func": 2,
40
+ "no-multi-spaces": 2,
41
+ "no-new": 2,
42
+ "no-new-func": 1,
43
+ "no-new-wrappers": 2,
44
+ "no-octal-escape": 2,
45
+ "no-param-reassign": 1,
46
+ "no-proto": 2,
47
+ "no-return-assign": [2, "always"],
48
+ "no-script-url": 2,
49
+ "no-self-compare": 2,
50
+ "no-sequences": 2,
51
+ "no-throw-literal": 1,
52
+ "no-unmodified-loop-condition": 2,
53
+ "no-unused-expressions": 2,
54
+ "no-useless-call": 2,
55
+ "no-useless-concat": 2,
56
+ "no-void": 2,
57
+ "no-with": 2,
58
+ "radix": 1,
59
+ "wrap-iife": [2, "inside"],
60
+ "strict": 1,
61
+ "no-label-var": 2,
62
+ "no-shadow": 1,
63
+ "no-shadow-restricted-names": 2,
64
+ "no-undef-init": 2,
65
+ "no-use-before-define": [1, {"functions": false}],
66
+ "callback-return": 1,
67
+ "handle-callback-err": 1,
68
+ "no-new-require": 2,
69
+ "no-path-concat": 1,
70
+ "array-bracket-spacing": [2, "never"],
71
+ "block-spacing": [2, "always"],
72
+ "brace-style": [2, "1tbs", {"allowSingleLine": true}],
73
+ "camelcase": [2, {"properties": "never"}],
74
+ "comma-dangle": [2, "always-multiline"],
75
+ "comma-spacing": [2, {"before": false, "after": true}],
76
+ "comma-style": [2, "last"],
77
+ "computed-property-spacing": [2, "never"],
78
+ "eol-last": 1,
79
+ "func-call-spacing": [2, "never"],
80
+ "indent": [2, 4, {"SwitchCase": 1}],
81
+ "key-spacing": [2, {"beforeColon": false, "afterColon": true}],
82
+ "keyword-spacing": [2, {"before": true, "after": true}],
83
+ "linebreak-style": [2, "unix"],
84
+ "max-depth": [1, {"maximum": 5}],
85
+ "max-len": [1, {"code": 120, "ignoreUrls": true}],
86
+ "new-cap": 2,
87
+ "new-parens": 2,
88
+ "no-array-constructor": 1,
89
+ "no-bitwise": 2,
90
+ "no-lonely-if": 1,
91
+ "no-multiple-empty-lines": 2,
92
+ "no-negated-condition": 1,
93
+ "no-nested-ternary": 1,
94
+ "no-new-object": 1,
95
+ "no-restricted-syntax": [2, "WithStatement"],
96
+ "no-trailing-spaces": 2,
97
+ "no-unneeded-ternary": 2,
98
+ "no-whitespace-before-property": 2,
99
+ "object-curly-spacing": [2, "never"],
100
+ "quotes": [2, "single"],
101
+ "semi": [2, "always"],
102
+ "semi-spacing": 2,
103
+ "space-before-blocks": 2,
104
+ "space-before-function-paren": [2, {"anonymous": "always", "named": "never"}],
105
+ "space-in-parens": [2, "never"],
106
+ "space-infix-ops": 2,
107
+ "space-unary-ops": 2,
108
+ "arrow-parens": 2,
109
+ "arrow-spacing": [2, {"before": true, "after": true}],
110
+ "generator-star-spacing": [2, {"before": false, "after": true}],
111
+ "no-duplicate-imports": 2,
112
+ "no-useless-constructor": 2,
113
+ "no-var": 2,
114
+ "prefer-arrow-callback": 1,
115
+ "prefer-const": 2,
116
+ "prefer-rest-params": 2,
117
+ "prefer-spread": 2,
118
+ "require-atomic-updates": 0,
119
+ "require-yield": 1,
120
+ "template-curly-spacing": [2, "never"],
121
+ "yield-star-spacing": [2, {"before": false, "after": true}]
122
+ },
123
+ "overrides": [{
124
+ "files": ["*.ts", "*.tsx"],
125
+ "parser": "@typescript-eslint/parser",
126
+ "parserOptions": {
127
+ "sourceType": "module"
128
+ },
129
+ "plugins": [
130
+ "@typescript-eslint"
131
+ ],
132
+ "rules": {
133
+ "strict": 0,
134
+ "no-undef": 0,
135
+ "no-dupe-class-members": 0,
136
+ "valid-jsdoc": [1, {
137
+ "requireReturnType": false,
138
+ "requireParamType": false,
139
+ "requireParamDescription": false,
140
+ "requireReturnDescription": false
141
+ }],
142
+ "semi": 0,
143
+ "@typescript-eslint/semi": 2,
144
+ "no-unused-vars": 0,
145
+ "@typescript-eslint/no-unused-vars": 2,
146
+ "no-use-before-define": 0,
147
+ "@typescript-eslint/no-use-before-define": [1, {"functions": false}],
148
+ "no-useless-constructor": 0,
149
+ "@typescript-eslint/no-useless-constructor": 2,
150
+ "@typescript-eslint/class-name-casing": 2,
151
+ "@typescript-eslint/member-delimiter-style": 2,
152
+ "@typescript-eslint/member-ordering": [2, {
153
+ "default": [
154
+ "public-static-field",
155
+ "protected-static-field",
156
+ "private-static-field",
157
+
158
+ "public-static-method",
159
+ "protected-static-method",
160
+ "private-static-method",
161
+
162
+ "public-instance-field",
163
+ "protected-instance-field",
164
+ "private-instance-field",
165
+
166
+ "constructor",
167
+
168
+ "public-instance-method",
169
+ "protected-instance-method",
170
+ "private-instance-method"
171
+ ]
172
+ }],
173
+ "@typescript-eslint/explicit-member-accessibility": [2, {"accessibility": "no-public"}],
174
+ "@typescript-eslint/consistent-type-assertions": 2,
175
+ "@typescript-eslint/no-array-constructor": 2,
176
+ "@typescript-eslint/no-explicit-any": 1,
177
+ "@typescript-eslint/no-inferrable-types": 2,
178
+ "@typescript-eslint/no-namespace": 2,
179
+ "@typescript-eslint/no-non-null-assertion": 1,
180
+ "@typescript-eslint/no-parameter-properties": 2,
181
+ "@typescript-eslint/triple-slash-reference": 2,
182
+ "@typescript-eslint/prefer-namespace-keyword": 2,
183
+ "@typescript-eslint/type-annotation-spacing": [2, {
184
+ "before": true,
185
+ "after": true,
186
+ "overrides": {
187
+ "colon": {
188
+ "before": false
189
+ }
190
+ }
191
+ }]
192
+ }
193
+ }],
194
+ "settings": {
195
+ "react": {
196
+ "version": "detect"
197
+ }
198
+ }
199
+ }
package/.nvmrc ADDED
@@ -0,0 +1 @@
1
+ 14