diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e73ff58ae5bef..04fcfaae8f03d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -39,17 +39,5 @@ jobs: - name: Install dependencies run: pnpm i --ignore-scripts - - name: Get changed files - id: changed-files - uses: Ana06/get-changed-files@v2.1.0 - with: - format: space-delimited - filter: | - **/*.ts - **/*.tsx - **/*.js - **/*.jsx - token: ${{ secrets.GITHUB_TOKEN }} - - name: Run ESLint - run: pnpm lint:report ${{ steps.changed-files.outputs.added_modified }} + run: pnpm lint:report diff --git a/package.json b/package.json index e4dac9dd2f932..957ff649af006 100644 --- a/package.json +++ b/package.json @@ -27,8 +27,8 @@ "start": "turbo run start --filter=web", "test:config": "pnpm turbo run test:config --filter=web...[HEAD^1]", "test:ci": "pnpm turbo run test --filter=[HEAD^1]", - "lint": "turbo run lint --filter=web", - "lint:report": "eslint --no-error-on-unmatched-pattern --max-warnings=0", + "lint": "turbo run lint", + "lint:report": "turbo run lint --log-prefix=none", "format:check": "prettier --check \"**/*.{js,jsx,ts,tsx,json}\"", "format:write": "prettier --write \"**/*.{js,jsx,ts,tsx,json}\"", "format:check:staged": "lint-staged", diff --git a/packages/swap-sdk-core/src/errors.ts b/packages/swap-sdk-core/src/errors.ts index 7d351bc196c0a..fd5214a07d736 100644 --- a/packages/swap-sdk-core/src/errors.ts +++ b/packages/swap-sdk-core/src/errors.ts @@ -6,7 +6,7 @@ const CAN_SET_PROTOTYPE = 'setPrototypeOf' in Object * obtained by sending any amount of input. */ export class InsufficientReservesError extends Error { - public readonly isInsufficientReservesError: true = true + public readonly isInsufficientReservesError = true as const public constructor() { super() @@ -20,7 +20,7 @@ export class InsufficientReservesError extends Error { * than the price of a single unit of output after fees. */ export class InsufficientInputAmountError extends Error { - public readonly isInsufficientInputAmountError: true = true + public readonly isInsufficientInputAmountError = true as const public constructor() { super() diff --git a/turbo.json b/turbo.json index 6af99fb267a2d..4338c4a7879a5 100644 --- a/turbo.json +++ b/turbo.json @@ -23,6 +23,7 @@ "outputs": ["dist/**"] }, "lint": { + "dependsOn": ["@pancakeswap/next-config#build"], "outputs": [] }, "dev": {