New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@meowsos/playwright-setup

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@meowsos/playwright-setup

Modern Eslint and Prettier setup for Playwright Typescript projects

0.0.12
unpublished
latest
Source
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@meowsos/playwright-setup

Description

Modern Eslint + Prettier setup for Playwright Typescript projects

Version

0.0.12

Usage

  • Install the package
npm i -D @meowsos/playwright-setup
  • Add the following to your package.json:
{
  "scripts": {
    "lint": "eslint . --ext .ts",
    "lint:fix": "eslint . --ext .ts --fix",
    "format": "prettier --write .",
    "format:check": "prettier --check ."
  }
}
  • Create a .eslintrc.js file in the root of your project with the following:
module.exports = {
  extends: ['@meowsos/playwright-setup'],
}
  • Create a .prettierrc.js file in the root of your project with the following:
module.exports = require('@meowsos/playwright-setup/prettier.config')
  • Create a .eslintignore file in the root of your project with the following:
node_modules
dist
  • Create a .prettierignore file in the root of your project with the following:
node_modules
dist
  • Create a .vscode/settings.json file in the root of your project with the following:
{
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "editor.formatOnSave": true,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  }
}
  • Create a .vscode/extensions.json file in the root of your project with the following:
{
  "recommendations": [
    "dbaeumer.vscode-eslint",
    "esbenp.prettier-vscode",
    "ms-playwright.playwright",
    "ryanrosello-og.playwright-vscode-trace-viewer",
    "yoavbls.pretty-ts-errors"
  ]
}

Keywords

playwright

FAQs

Package last updated on 12 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts