Skip to content

Commit aafbec0

Browse files
Implement basic API steps and logic
1 parent e56c1b8 commit aafbec0

16 files changed

+18073
-0
lines changed

.eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/node_modules/
2+
/built/

.eslintrc

+119
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
{
2+
"extends": [
3+
"airbnb-base",
4+
"plugin:wdio/recommended",
5+
"plugin:chai-friendly/recommended",
6+
"plugin:@typescript-eslint/recommended",
7+
"prettier"
8+
],
9+
"parser": "@typescript-eslint/parser",
10+
"rules": {
11+
"@typescript-eslint/no-this-alias": "off",
12+
"no-restricted-syntax": 0,
13+
"no-await-in-loop": "off",
14+
"import/extensions": "off",
15+
"consistent-return": "off",
16+
"vars-on-top": "off",
17+
"wdio/no-pause": "off",
18+
"import/no-unresolved": "error",
19+
"lines-between-class-members": 0,
20+
"import/prefer-default-export": 0,
21+
"class-methods-use-this": 0,
22+
"import/no-cycle": 0,
23+
"max-len": [
24+
2,
25+
{
26+
"code": 300
27+
}
28+
],
29+
"no-multi-spaces": [
30+
"error",
31+
{
32+
"ignoreEOLComments": true
33+
}
34+
],
35+
"no-console": [
36+
"error",
37+
{
38+
"allow": [
39+
"warn",
40+
"error",
41+
"info"
42+
]
43+
}
44+
],
45+
"@typescript-eslint/no-shadow": ["error"],
46+
"no-shadow": "off",
47+
"no-empty-function": ["error", { "allow": ["constructors"] }],
48+
"prefer-destructuring": ["error", {"object": false, "array": false}],
49+
"no-undefined": 2,
50+
"no-unused-vars": 1,
51+
"newline-per-chained-call": [
52+
"error",
53+
{
54+
"ignoreChainWithDepth": 3
55+
}
56+
],
57+
"linebreak-style": [
58+
"off"
59+
],
60+
"arrow-parens": "off",
61+
"func-names": [
62+
"off"
63+
],
64+
"no-param-reassign": [
65+
"off"
66+
],
67+
"quotes": [
68+
"error",
69+
"single",
70+
{
71+
"allowTemplateLiterals": true,
72+
"avoidEscape": true
73+
}
74+
],
75+
"prefer-arrow-callback": [
76+
"off"
77+
],
78+
"dot-notation": [
79+
"error",
80+
{
81+
"allowPattern": "[a-zA-Z]"
82+
}
83+
],
84+
"no-underscore-dangle": [
85+
"error",
86+
{
87+
"allow": [
88+
"_request",
89+
"_method",
90+
"_options",
91+
"_allure"
92+
]
93+
}
94+
]
95+
},
96+
"settings": {
97+
"import/parsers": {
98+
"@typescript-eslint/parser": [
99+
".ts",
100+
".tsx"
101+
]
102+
},
103+
"import/resolver": {
104+
"typescript": {
105+
"alwaysTryTypes": true,
106+
"project": "./tsconfig.json"
107+
}
108+
}
109+
},
110+
"plugins": [
111+
"prettier",
112+
"wdio",
113+
"cucumber",
114+
"chai-friendly",
115+
"@typescript-eslint",
116+
"import"
117+
],
118+
"globals": {}
119+
}

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
lib/

.npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test/

.prettierignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/node_modules/
2+
/built/
3+
*.*rc
4+
*.json
5+
*.yml
6+
*.md
7+
*.html

.prettierrc

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"overrides": [
3+
{
4+
"options": {
5+
"printWidth": 150,
6+
"singleQuote": true,
7+
"trailingComma": "all",
8+
"bracketSpacing": true,
9+
"jsxBracketSameLine": false,
10+
"tabWidth": 2,
11+
"semi": true,
12+
"endOfLine": "crlf"
13+
},
14+
"files": "*.ts"
15+
}
16+
]
17+
}

index.js

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/* eslint-disable import/no-unresolved */
2+
require('./lib/index.js');

jest.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
2+
module.exports = {
3+
preset: 'ts-jest',
4+
testEnvironment: 'node',
5+
};

0 commit comments

Comments
 (0)