Skip to content

Commit

Permalink
migrate eslint-plugin-playwright configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
csouchet committed Oct 29, 2024
1 parent c50a3f1 commit bb3cad3
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 9 deletions.
14 changes: 11 additions & 3 deletions test/bundles/.eslintrc.cjs → test/bundles/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,15 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import playwright from 'eslint-plugin-playwright';

module.exports = {
extends: ['plugin:playwright/jest-playwright'],
};
export default [
{
...playwright.configs['flat/recommended'],
rules: {
...playwright.configs['flat/recommended'].rules,
// Customize Playwright rules
// ...
},
},
];
14 changes: 11 additions & 3 deletions test/e2e/.eslintrc.cjs → test/e2e/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,15 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import playwright from 'eslint-plugin-playwright';

module.exports = {
extends: ['plugin:playwright/jest-playwright'],
};
export default [
{
...playwright.configs['flat/recommended'],
rules: {
...playwright.configs['flat/recommended'].rules,
// Customize Playwright rules
// ...
},
},
];
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,15 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import playwright from 'eslint-plugin-playwright';

module.exports = {
extends: ['plugin:playwright/jest-playwright'],
};
export default [
{
...playwright.configs['flat/recommended'],
rules: {
...playwright.configs['flat/recommended'].rules,
// Customize Playwright rules
// ...
},
},
];

0 comments on commit bb3cad3

Please sign in to comment.