Skip to content

Commit

Permalink
ci: updating eslint commands
Browse files Browse the repository at this point in the history
  • Loading branch information
HeartSquared committed Dec 2, 2024
1 parent 2a63d0d commit 2c4efb7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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'
Expand Down
1 change: 0 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 2c4efb7

Please sign in to comment.