-
Notifications
You must be signed in to change notification settings - Fork 935
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply eslint formatting to playwright tests
- Loading branch information
Showing
40 changed files
with
3,011 additions
and
2,033 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
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
import { | ||
PHX_COMPONENT, | ||
PHX_DISABLE_WITH, | ||
PHX_PRUNE, | ||
PHX_ROOT_ID, | ||
PHX_SESSION, | ||
|
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
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,15 @@ | ||
import playwright from "eslint-plugin-playwright" | ||
import js from "@eslint/js" | ||
|
||
import sharedRules from "./eslint.rules.mjs" | ||
|
||
export default [{ | ||
...js.configs.recommended, | ||
...playwright.configs["flat/recommended"], | ||
files: ["*.js", "*.mjs", "test/e2e/**"], | ||
|
||
rules: { | ||
...playwright.configs["flat/recommended"].rules, | ||
...sharedRules | ||
}, | ||
}] |
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,60 @@ | ||
export default { | ||
indent: ["error", 2, { | ||
SwitchCase: 1, | ||
}], | ||
|
||
"linebreak-style": ["error", "unix"], | ||
quotes: ["error", "double"], | ||
semi: ["error", "never"], | ||
|
||
"object-curly-spacing": ["error", "never", { | ||
objectsInObjects: false, | ||
arraysInObjects: false, | ||
}], | ||
|
||
"array-bracket-spacing": ["error", "never"], | ||
|
||
"comma-spacing": ["error", { | ||
before: false, | ||
after: true, | ||
}], | ||
|
||
"computed-property-spacing": ["error", "never"], | ||
|
||
"space-before-blocks": ["error", { | ||
functions: "never", | ||
keywords: "never", | ||
classes: "always", | ||
}], | ||
|
||
"keyword-spacing": ["error", { | ||
overrides: { | ||
if: { | ||
after: false, | ||
}, | ||
|
||
for: { | ||
after: false, | ||
}, | ||
|
||
while: { | ||
after: false, | ||
}, | ||
|
||
switch: { | ||
after: false, | ||
}, | ||
}, | ||
}], | ||
|
||
"eol-last": ["error", "always"], | ||
|
||
"no-unused-vars": ["error", { | ||
argsIgnorePattern: "^_", | ||
varsIgnorePattern: "^_", | ||
}], | ||
|
||
"no-useless-escape": "off", | ||
"no-cond-assign": "off", | ||
"no-case-declarations": "off", | ||
} |
Oops, something went wrong.