Skip to content

Commit d559ec3

Browse files
authored
Merge pull request #52 from thdk/chore/eslint
Add eslint
2 parents eed73e4 + ce56719 commit d559ec3

11 files changed

+1992
-16
lines changed

.eslintignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
dist
3+
example

.eslintrc.js

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
module.exports = {
2+
root: true,
3+
parser: '@typescript-eslint/parser',
4+
plugins: [
5+
'@typescript-eslint',
6+
],
7+
extends: [
8+
'eslint:recommended',
9+
'plugin:@typescript-eslint/recommended',
10+
'plugin:import/errors'
11+
],
12+
rules: {
13+
"@typescript-eslint/no-unused-vars": "off",
14+
"@typescript-eslint/explicit-module-boundary-types": "off",
15+
"@typescript-eslint/no-explicit-any": "off",
16+
"@typescript-eslint/ban-types": "off",
17+
"@typescript-eslint/no-empty-interface": "off",
18+
},
19+
settings: {
20+
"import/resolver": {
21+
node: {
22+
extensions: [".ts"],
23+
},
24+
},
25+
},
26+
};

example/Pages/CalculatorPage.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class CalculatorPage extends PageObject {
2929
get button9() { return By2.nativeAccessibilityId('num9Button'); }
3030

3131
private async pressKeys(keys: string) {
32-
for (var key of keys) {
32+
for (const key of keys) {
3333
await By2.nativeAccessibilityId('num' + key + 'Button').click();
3434
}
3535
}

0 commit comments

Comments
 (0)