-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #97 from Exabyte-io/feat/SOF-6399-1
SOF-6399-1: reformat eslint issues
- Loading branch information
Showing
60 changed files
with
782 additions
and
458 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tests/cucumber/fixtures/*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"singleQuote": false, | ||
"printWidth": 100, | ||
"trailingComma": "all", | ||
"tabWidth": 4 | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"extends": ["@exabyte-io/eslint-config"], | ||
"parser": "babel-eslint", | ||
"globals": { | ||
"exabrowser": "readonly", | ||
"browser": "readonly", | ||
"$": "readonly" | ||
}, | ||
"rules": { | ||
"func-names": "off", | ||
"radix": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,26 @@ | ||
import {SETTINGS} from "./settings"; | ||
import {initializeExaBrowserHook} from "./utils/exabrowser"; | ||
import { SETTINGS } from "./settings"; | ||
import { initializeExaBrowserHook } from "./utils/exabrowser"; | ||
|
||
var isFeatureStarted = false; | ||
let isFeatureStarted = false; | ||
|
||
/** | ||
* @summary Sets browser size to minimal resolution. | ||
*/ | ||
function setViewportSizeHook() {exabrowser.setViewportSize(SETTINGS.VIEWPORT_SIZE)} | ||
function setViewportSizeHook() { | ||
exabrowser.setViewportSize(SETTINGS.VIEWPORT_SIZE); | ||
} | ||
|
||
/* | ||
* Hooks are run Before/After each scenario | ||
*/ | ||
export default function () { | ||
this.Before(function () { | ||
this.Before(() => { | ||
if (!isFeatureStarted) { | ||
initializeExaBrowserHook(); // KEEP THIS FIRST! | ||
setViewportSizeHook(); | ||
} | ||
isFeatureStarted = true; | ||
}); | ||
|
||
this.After(function () { | ||
}) | ||
}; | ||
this.After(() => {}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.