diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 11009b4f3f1..4316369eec5 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -15,7 +15,7 @@ on: branches: - main # the target branch of the PR paths: - - "**/CHANGELOG.md" # only changesets releases touch changelogs + - '**/CHANGELOG.md' # only changesets releases touch changelogs jobs: typescript: @@ -34,7 +34,7 @@ jobs: steps: - uses: actions/checkout@v4 - uses: ./.github/actions/setup - - run: pnpm lint:js && pnpm lint:md + - run: pnpm lint:eslint prettier: if: github.head_ref != 'changeset-release/main' diff --git a/docs/package.json b/docs/package.json index f2ac39c6b8b..c783fda0fd5 100644 --- a/docs/package.json +++ b/docs/package.json @@ -4,7 +4,6 @@ "version": "0.0.3", "type": "module", "scripts": { - "lint": "eslint .", "lint:ts": "tsc --noEmit", "dev": "storybook dev -p 6006", "preview": "NODE_ENV=production pnpm dev --docs", diff --git a/package.json b/package.json index c77cff160f0..2c924606d1a 100644 --- a/package.json +++ b/package.json @@ -13,16 +13,15 @@ "build": "pnpm turbo build", "clean": "pnpm turbo clean && rimraf node_modules && pnpm store prune", "test": "pnpm turbo test -- --run", - "lint": "pnpm lint:js && pnpm lint:md && pnpm lint:format && pnpm lint:styles", + "lint": "pnpm lint:eslint && pnpm lint:format && pnpm lint:styles", "lint:ts": "pnpm turbo lint:ts", - "lint:js": "pnpm eslint '**/*.{ts,tsx,mjs,js}' --max-warnings=0", - "lint:md": "pnpm eslint '**/*.{md,mdx}' --max-warnings=0", + "lint:eslint": "pnpm eslint --max-warnings=0", "lint:format": "pnpm prettier --check '**/*'", "lint:scss": "pnpm stylelint '**/*.scss' --config .stylelintrc-scss.json", "lint:css": "pnpm stylelint '**/*.css' --config .stylelintrc-css.mjs", "lint:styles": "pnpm lint:scss && pnpm lint:css", "lint:styles:fix": "pnpm lint:scss --fix && pnpm lint:css --fix", - "lint:fix": "pnpm lint:styles:fix && pnpm lint:js --fix && pnpm lint:md --fix && pnpm lint:format --write", + "lint:fix": "pnpm lint:styles:fix && pnpm lint:eslint --fix && pnpm lint:format --write", "reset": "pnpm clean && pnpm install --force", "chromatic": "chromatic", "changeset": "changeset",