From 7fc58b69331a8264c21f51b5e5eee2ce454a140e Mon Sep 17 00:00:00 2001 From: Josh Johnson Date: Sat, 21 Dec 2019 14:19:13 +0000 Subject: [PATCH] Convert cypress files to .ts --- .eslintrc.json | 3 ++- .../{select-multiple.spec.js => select-multiple.spec.ts} | 0 .../integration/{select-one.spec.js => select-one.spec.ts} | 0 cypress/integration/{text.spec.js => text.spec.ts} | 0 package-lock.json | 6 +++--- package.json | 2 +- tsconfig.json | 5 +++-- 7 files changed, 9 insertions(+), 7 deletions(-) rename cypress/integration/{select-multiple.spec.js => select-multiple.spec.ts} (100%) rename cypress/integration/{select-one.spec.js => select-one.spec.ts} (100%) rename cypress/integration/{text.spec.js => text.spec.ts} (100%) diff --git a/.eslintrc.json b/.eslintrc.json index 79aa5f7..620f0af 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -10,7 +10,8 @@ "env": { "es6": true, "browser": true, - "mocha": true + "mocha": true, + "cypress": true }, "parserOptions": { "project": "./tsconfig.json", diff --git a/cypress/integration/select-multiple.spec.js b/cypress/integration/select-multiple.spec.ts similarity index 100% rename from cypress/integration/select-multiple.spec.js rename to cypress/integration/select-multiple.spec.ts diff --git a/cypress/integration/select-one.spec.js b/cypress/integration/select-one.spec.ts similarity index 100% rename from cypress/integration/select-one.spec.js rename to cypress/integration/select-one.spec.ts diff --git a/cypress/integration/text.spec.js b/cypress/integration/text.spec.ts similarity index 100% rename from cypress/integration/text.spec.js rename to cypress/integration/text.spec.ts diff --git a/package-lock.json b/package-lock.json index c877c91..575d99e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4082,9 +4082,9 @@ } }, "eslint-plugin-cypress": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-cypress/-/eslint-plugin-cypress-2.7.0.tgz", - "integrity": "sha512-52Lq5ePCD/8jc536e1RqtLfj33BAy1s7BlYgCjbG39J5kqUitcTlRY5i3NRoeAyPHueDwETsq0eASF44ugLosQ==", + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-cypress/-/eslint-plugin-cypress-2.8.1.tgz", + "integrity": "sha512-jDpcP+MmjmqQO/x3bwIXgp4cl7Q66RYS5/IsuOQP4Qo2sEqE3DI8tTxBQ1EhnV5qEDd2Z2TYHR+5vYI6oCN4uw==", "dev": true, "requires": { "globals": "^11.12.0" diff --git a/package.json b/package.json index 4d3797b..9d157c5 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,7 @@ "eslint-config-prettier": "^6.5.0", "eslint-loader": "^3.0.2", "eslint-plugin-compat": "3.3.0", - "eslint-plugin-cypress": "^2.7.0", + "eslint-plugin-cypress": "^2.8.1", "eslint-plugin-import": "^2.18.2", "eslint-plugin-prettier": "^3.1.1", "eslint-plugin-sort-class-members": "^1.6.0", diff --git a/tsconfig.json b/tsconfig.json index 66d9315..85ee3cc 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,7 +11,8 @@ "noUnusedLocals": true, "noUnusedParameters": true, "noImplicitAny": false, - "strictNullChecks": true + "strictNullChecks": true, + "types": ["cypress"] }, - "include": ["./src/**/*"] + "include": ["./src/**/*", "./cypress/**/*"] }