Skip to content

Commit

Permalink
update eslint. delint.
Browse files Browse the repository at this point in the history
  • Loading branch information
mceachen committed Aug 15, 2024
1 parent baf1068 commit 8678922
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 9 deletions.
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ module.exports = {
rules: {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/member-delimiter-style": ["warn", { multiline: { delimiter: "none" } }],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/await-thenable": ["error"],
Expand Down
2 changes: 1 addition & 1 deletion docs/serve.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"cleanUrls": false
}
}
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@
"@types/globule": "^1.1.9",
"@types/he": "^1.2.3",
"@types/mocha": "^10.0.7",
"@types/node": "^20.14.12",
"@types/node": "^22.3.0",
"@types/progress": "^2.0.7",
"@types/tmp": "^0.2.6",
"@types/xmldom": "^0.1.34",
"@typescript-eslint/eslint-plugin": "^7.17.0",
"@typescript-eslint/parser": "^7.17.0",
"@typescript-eslint/eslint-plugin": "^8.1.0",
"@typescript-eslint/parser": "^8.1.0",
"@xmldom/xmldom": "^0.8.10",
"chai": "^4.3.10",
"chai-as-promised": "^7.1.2",
Expand All @@ -95,8 +95,8 @@
"extract-zip": "^2.0.1",
"geo-tz": "^8.0.2",
"globule": "^1.3.4",
"mocha": "^10.7.0",
"npm-check-updates": "^16.14.20",
"mocha": "^10.7.3",
"npm-check-updates": "^17.0.6",
"npm-run-all": "^4.1.5",
"prettier": "^3.3.3",
"prettier-plugin-organize-imports": "^4.0.0",
Expand All @@ -115,7 +115,7 @@
"@types/luxon": "^3.4.2",
"batch-cluster": "^13.0.0",
"he": "^1.2.0",
"luxon": "^3.4.4"
"luxon": "^3.5.0"
},
"optionalDependencies": {
"exiftool-vendored.exe": "12.91.0",
Expand Down
1 change: 1 addition & 0 deletions src/ExifTool.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ describe("ExifTool", function () {
const img3 = _path.join(__dirname, "..", "test", "with_thumb.jpg")
const nonEnglishImg = _path.join(__dirname, "..", "test", "中文.jpg")

// eslint-disable-next-line @typescript-eslint/no-require-imports
const packageJson = require("../package.json")

function expectedExiftoolVersion(flavor: "exe" | "pl" = "pl"): string {
Expand Down
1 change: 1 addition & 0 deletions src/ExiftoolPath.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ function tryRequire({
}: { prefix?: string; logger?: Maybe<Logger> } = {}): Maybe<string> {
const id = prefix + vendorPackage()
try {
// eslint-disable-next-line @typescript-eslint/no-require-imports
return require(id)
} catch (error) {
logger?.warn(id + "not found: ", error)
Expand Down
1 change: 0 additions & 1 deletion src/Object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export function isObject(obj: any): obj is Record<string, any> {
return typeof obj === "object" && obj !== null
}

// eslint-disable-next-line @typescript-eslint/ban-types
export function keys<T extends object, K extends string & keyof T>(o: T): K[] {
return o == null
? []
Expand Down
1 change: 1 addition & 0 deletions src/ReadTask.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { pick } from "./Pick"
import { ReadTask, ReadTaskOptions } from "./ReadTask"
import { Tags } from "./Tags"

// eslint-disable-next-line @typescript-eslint/no-require-imports
const gt = require("geo-tz")

function parse(
Expand Down
1 change: 1 addition & 0 deletions src/_chai.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-require-imports */
import { Deferred, Log, setLogger } from "batch-cluster"
import chai, { expect } from "chai"
import eql from "deep-eql"
Expand Down
1 change: 1 addition & 0 deletions src/update/mktags.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* eslint-disable regexp/optimal-quantifier-concatenation */
/* eslint-disable regexp/no-dupe-disjunctions */
/* eslint-disable @typescript-eslint/no-require-imports */
require("source-map-support").install()

import { BatchCluster, Log, logger, setLogger } from "batch-cluster"
Expand Down

0 comments on commit 8678922

Please sign in to comment.