@tsconfig/cypress

A base TSConfig for working with Cypress.

Usage no npm install needed!

<script type="module">
  import tsconfigCypress from 'https://cdn.skypack.dev/@tsconfig/cypress';
</script>

README

A base TSConfig for working with Cypress.

Add the package to your "devDependencies":

npm install --save-dev @tsconfig/cypress
yarn add --dev @tsconfig/cypress

Add to your tsconfig.json:

"extends": "@tsconfig/cypress/tsconfig.json"

The tsconfig.json:

{
  "$schema": "https://json.schemastore.org/tsconfig",
  "display": "Cypress",
  "compilerOptions": {
    "target": "es5",
    "lib": ["es5", "dom"],
    "types": ["cypress"]
  }
}

You can find the code here.