From 9f56a1030591325c89ba5ae9e409da1ed4b37b54 Mon Sep 17 00:00:00 2001 From: Divlo Date: Sun, 20 Feb 2022 15:39:18 +0100 Subject: [PATCH] build(deps-dev): bump eslint-config-conventions to 1.1.0 --- .eslintignore | 8 ++++++++ .eslintrc.json | 2 -- global.d.ts | 2 -- next.config.js | 1 - package-lock.json | 40 ++++++++-------------------------------- package.json | 5 ++--- tsconfig.json | 11 +++-------- 7 files changed, 21 insertions(+), 48 deletions(-) create mode 100644 .eslintignore delete mode 100644 global.d.ts diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..54c8e25 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,8 @@ +.next +.lighthouseci +storybook-static +coverage +node_modules +next-env.d.ts +**/workbox-*.js +**/sw.js diff --git a/.eslintrc.json b/.eslintrc.json index ea73573..e59d069 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -3,10 +3,8 @@ "conventions", "next/core-web-vitals", "plugin:storybook/recommended", - "plugin:cypress/recommended", "prettier" ], - "parser": "@typescript-eslint/parser", "plugins": ["prettier"], "parserOptions": { "project": "./tsconfig.json" diff --git a/global.d.ts b/global.d.ts deleted file mode 100644 index dcd352a..0000000 --- a/global.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare module 'next-pwa' -declare module 'next/jest' diff --git a/next.config.js b/next.config.js index dcfd018..76a0084 100644 --- a/next.config.js +++ b/next.config.js @@ -1,5 +1,4 @@ const nextPWA = require('next-pwa') -/** @type {any} */ const nextTranslate = require('next-translate') const { createSecureHeaders } = require('next-secure-headers') diff --git a/package-lock.json b/package-lock.json index 7920d78..006346b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -72,10 +72,9 @@ "cypress": "9.5.0", "editorconfig-checker": "4.0.2", "eslint": "8.9.0", - "eslint-config-conventions": "1.0.3", + "eslint-config-conventions": "1.1.0", "eslint-config-next": "12.1.0", "eslint-config-prettier": "8.4.0", - "eslint-plugin-cypress": "2.12.1", "eslint-plugin-import": "2.25.4", "eslint-plugin-prettier": "4.0.0", "eslint-plugin-promise": "6.0.0", @@ -19200,21 +19199,19 @@ } }, "node_modules/eslint-config-conventions": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/eslint-config-conventions/-/eslint-config-conventions-1.0.3.tgz", - "integrity": "sha512-0kYDuaTmStwmf1GcQTq4K47EBmGJ8gRNvU2IdIBa7sQX0f/y4ZiGWrONO1Bxl+fJ1MemE+3XWtDb5CD2Zw+Vaw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/eslint-config-conventions/-/eslint-config-conventions-1.1.0.tgz", + "integrity": "sha512-y++k1iIB1kxbdNyETq2AMRiAs2OVkjLbesIp8Jm9svUrbzsqzPiZfW2Mn+7vAoTtCwRjd7B9UrzPT2alpKPK7Q==", "dev": true, "engines": { "node": ">=16.0.0", "npm": ">=8.0.0" }, "peerDependencies": { - "@typescript-eslint/eslint-plugin": "^5.12.0", "eslint": "^8.9.0", "eslint-plugin-import": "^2.25.4", "eslint-plugin-promise": "^6.0.0", - "eslint-plugin-unicorn": "^41.0.0", - "typescript": "^4.4.0" + "eslint-plugin-unicorn": "^41.0.0" } }, "node_modules/eslint-config-next": { @@ -19384,18 +19381,6 @@ "node": ">=4" } }, - "node_modules/eslint-plugin-cypress": { - "version": "2.12.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-cypress/-/eslint-plugin-cypress-2.12.1.tgz", - "integrity": "sha512-c2W/uPADl5kospNDihgiLc7n87t5XhUbFDoTl6CfVkmG+kDAb5Ux10V9PoLPu9N+r7znpc+iQlcmAqT1A/89HA==", - "dev": true, - "dependencies": { - "globals": "^11.12.0" - }, - "peerDependencies": { - "eslint": ">= 3.2.1" - } - }, "node_modules/eslint-plugin-import": { "version": "2.25.4", "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.25.4.tgz", @@ -59842,9 +59827,9 @@ } }, "eslint-config-conventions": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/eslint-config-conventions/-/eslint-config-conventions-1.0.3.tgz", - "integrity": "sha512-0kYDuaTmStwmf1GcQTq4K47EBmGJ8gRNvU2IdIBa7sQX0f/y4ZiGWrONO1Bxl+fJ1MemE+3XWtDb5CD2Zw+Vaw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/eslint-config-conventions/-/eslint-config-conventions-1.1.0.tgz", + "integrity": "sha512-y++k1iIB1kxbdNyETq2AMRiAs2OVkjLbesIp8Jm9svUrbzsqzPiZfW2Mn+7vAoTtCwRjd7B9UrzPT2alpKPK7Q==", "dev": true, "requires": {} }, @@ -59976,15 +59961,6 @@ } } }, - "eslint-plugin-cypress": { - "version": "2.12.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-cypress/-/eslint-plugin-cypress-2.12.1.tgz", - "integrity": "sha512-c2W/uPADl5kospNDihgiLc7n87t5XhUbFDoTl6CfVkmG+kDAb5Ux10V9PoLPu9N+r7znpc+iQlcmAqT1A/89HA==", - "dev": true, - "requires": { - "globals": "^11.12.0" - } - }, "eslint-plugin-import": { "version": "2.25.4", "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.25.4.tgz", diff --git a/package.json b/package.json index ef619b6..7255920 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "lint:commit": "commitlint", "lint:editorconfig": "editorconfig-checker", "lint:markdown": "markdownlint \"**/*.md\" --dot --ignore-path \".gitignore\"", - "lint:typescript": "eslint \"**/*.{js,jsx,ts,tsx}\" --ignore-path \".gitignore\"", + "lint:typescript": "eslint \"**/*.{js,jsx,ts,tsx}\"", "lint:prettier": "prettier \".\" --check", "lint:staged": "lint-staged", "test:unit": "jest", @@ -98,10 +98,9 @@ "cypress": "9.5.0", "editorconfig-checker": "4.0.2", "eslint": "8.9.0", - "eslint-config-conventions": "1.0.3", + "eslint-config-conventions": "1.1.0", "eslint-config-next": "12.1.0", "eslint-config-prettier": "8.4.0", - "eslint-plugin-cypress": "2.12.1", "eslint-plugin-import": "2.25.4", "eslint-plugin-prettier": "4.0.0", "eslint-plugin-promise": "6.0.0", diff --git a/tsconfig.json b/tsconfig.json index 984c9bc..45cfc09 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,12 +10,7 @@ "removeComments": true, "noEmit": true, "strict": true, - "types": [ - "jest", - "@testing-library/jest-dom", - "@testing-library/react", - "cypress" - ], + "types": ["jest", "@testing-library/jest-dom", "@testing-library/react"], "baseUrl": ".", "esModuleInterop": true, "forceConsistentCasingInFileNames": true, @@ -25,6 +20,6 @@ "isolatedModules": true, "incremental": true }, - "exclude": ["dist", ".next", "out", "**/workbox-*.js", "**/sw.js"], - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"] + "exclude": ["dist", ".next", "out", "next.config.js"], + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"] }