diff --git a/package.json b/package.json index 7ca6c75b..19ca0029 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ ], "scripts": { "build": "rimraf dist && tsc", - "lint": "eslint --cache --cache-location node_modules/.cache/.eslintcache --ignore-path .gitignore .", + "lint": "cross-env \"ESLINT_USE_FLAT_CONFIG=false\" eslint --cache --cache-location node_modules/.cache/.eslintcache --ignore-path .gitignore .", "lint:prettier": "prettier --cache --check .", "prepublish": "pnpm build", "prerelease": "pnpm build", @@ -70,6 +70,7 @@ "@types/node": "22.10.5", "@types/yargs": "17.0.33", "@typescript-eslint/parser": "8.19.0", + "cross-env": "7.0.3", "eslint": "9.17.0", "eslint-plugin-import": "2.27.5", "jest-resolve": "29.5.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cf32f042..a238de87 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -67,6 +67,9 @@ devDependencies: '@typescript-eslint/parser': specifier: 8.19.0 version: 8.19.0(eslint@9.17.0)(typescript@5.1.6) + cross-env: + specifier: 7.0.3 + version: 7.0.3 eslint: specifier: 9.17.0 version: 9.17.0 @@ -1494,6 +1497,14 @@ packages: resolution: {integrity: sha512-ed10+SGP/dL3u7fEDxDPb+68vS4JckVjivIMq2wg5to8od2Rki5AyetFivjuC3cE49+azquEVDSgHZ8qYrUxdQ==} dev: false + /cross-env@7.0.3: + resolution: {integrity: sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==} + engines: {node: '>=10.14', npm: '>=6', yarn: '>=1'} + hasBin: true + dependencies: + cross-spawn: 7.0.6 + dev: true + /cross-spawn@7.0.6: resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} engines: {node: '>= 8'}