From e265eff4cbf3c2593cfdef32afc456facd18b56a Mon Sep 17 00:00:00 2001 From: Westin Wrzesinski Date: Tue, 22 Nov 2022 13:32:00 -0600 Subject: [PATCH] fix: lintable --- .eslintrc.js | 6 ++---- package.json | 30 +++++++++++++++++------------- src/util.ts | 1 - src/utils.ts | 10 ++++------ tsconfig.json | 2 +- 5 files changed, 24 insertions(+), 25 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 8a8b1ce..84bcf1c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -2,10 +2,8 @@ module.exports = { extends: "./node_modules/@krakenjs/eslint-config-grumbler/eslintrc-typescript", - globals: { - __TEST__: true, - }, - rules: { + "keyword-spacing": "off", + "@typescript-eslint/keyword-spacing": "off", }, }; diff --git a/package.json b/package.json index f10c0e8..b59ea13 100644 --- a/package.json +++ b/package.json @@ -80,22 +80,26 @@ ], "readmeFilename": "README.md", "devDependencies": { - "@commitlint/cli": "^16.2.1", - "@commitlint/config-conventional": "^16.2.1", - "@krakenjs/grumbler-scripts": "^8.0.5", - "@vitest/ui": "^0.16.0", - "c8": "^7.11.0", - "chai": "^4.2.0", + "@commitlint/cli": "^17.3.0", + "@commitlint/config-conventional": "^17.3.0", + "@krakenjs/babel-config-grumbler": "^8.0.7", + "@krakenjs/eslint-config-grumbler": "^8.0.7", + "@krakenjs/typescript-config-grumbler": "^8.0.7", + "@krakenjs/webpack-config-grumbler": "^8.1.0-alpha.1", + "@vitest/coverage-c8": "^0.25.3", + "@vitest/ui": "^0.25.3", + "chai": "^4.3.7", "cross-env": "^7.0.3", - "flowgen": "^1.16.0", - "happy-dom": "^2.55.0", - "husky": "^7.0.4", + "flowgen": "^1.20.1", + "happy-dom": "^7.7.0", + "husky": "^8.0.2", "lint-staged": "^13.0.3", "prettier": "2.7.1", - "standard-version": "^9.3.2", - "ts-node": "^10.5.0", - "typescript": "4.6.3", - "vitest": "0.16.0" + "standard-version": "^9.5.0", + "ts-node": "^10.9.1", + "typescript": "4.9.3", + "vite": "^3.2.4", + "vitest": "0.25.3" }, "lint-staged": { "**/*": "prettier --write --ignore-unknown" diff --git a/src/util.ts b/src/util.ts index f3acde5..99902d1 100644 --- a/src/util.ts +++ b/src/util.ts @@ -2,7 +2,6 @@ export function isRegex(item: unknown): boolean { return Object.prototype.toString.call(item) === "[object RegExp]"; } -// eslint-disable-next-line @typescript-eslint/no-unused-vars export function noop(...args: ReadonlyArray): void { // pass } diff --git a/src/utils.ts b/src/utils.ts index e18a7ef..1d30ec4 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,10 +1,8 @@ -/* eslint max-lines: 0, @typescript-eslint/prefer-optional-chain: 0 */ -/* global NodeJS */ import { isRegex, noop } from "./util"; -import type { - CrossDomainWindowType, - SameDomainWindowType, - DomainMatcher, +import { + type CrossDomainWindowType, + type SameDomainWindowType, + type DomainMatcher, } from "./types"; import { PROTOCOL, WILDCARD } from "./constants"; diff --git a/tsconfig.json b/tsconfig.json index a071093..5613994 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,3 +1,3 @@ { - "extends": "@krakenjs/grumbler-scripts/config/tsconfig.json" + "extends": "@krakenjs/typescript-config-grumbler/tsconfig.json" }