mirror of
https://github.com/tabler/tabler.git
synced 2026-01-25 04:16:36 +00:00
Unify local and CI quality gates
This commit is contained in:
4
.github/workflows/lint.yml
vendored
4
.github/workflows/lint.yml
vendored
@@ -28,5 +28,5 @@ jobs:
|
||||
- name: Install pnpm dependencies
|
||||
run: pnpm install
|
||||
|
||||
- name: Lint Markdown
|
||||
run: pnpm run lint
|
||||
- name: Quality gates (lint + type-check)
|
||||
run: pnpm run check
|
||||
|
||||
@@ -39,8 +39,6 @@
|
||||
"watch-js": "nodemon --watch js/ --ext ts,js --exec \"pnpm run js-build\"",
|
||||
"bundlewatch": "bundlewatch",
|
||||
"generate-sri": "tsx .build/generate-sri.ts",
|
||||
"format:check": "prettier --check \"scss/**/*.scss\" \"js/**/*.{js,ts}\" --cache",
|
||||
"format:write": "prettier --write \"scss/**/*.scss\" \"js/**/*.{js,ts}\" --cache",
|
||||
"type-check": "tsc --noEmit"
|
||||
},
|
||||
"repository": {
|
||||
|
||||
@@ -8,11 +8,14 @@
|
||||
"clean": "turbo clean",
|
||||
"bundlewatch": "turbo bundlewatch",
|
||||
"type-check": "turbo type-check",
|
||||
"format:check": "prettier --check --config core/.prettierrc \"core/scss/**/*.scss\" \"core/js/**/*.{js,ts}\" \"docs/scss/**/*.scss\" \"docs/js/**/*.{js,ts}\" \"preview/scss/**/*.scss\" \"preview/js/**/*.{js,ts}\" \"shared/**/*.{js,mjs,ts}\" --cache",
|
||||
"format:write": "prettier --write --config core/.prettierrc \"core/scss/**/*.scss\" \"core/js/**/*.{js,ts}\" \"docs/scss/**/*.scss\" \"docs/js/**/*.{js,ts}\" \"preview/scss/**/*.scss\" \"preview/js/**/*.{js,ts}\" \"shared/**/*.{js,mjs,ts}\" --cache",
|
||||
"version": "changeset version",
|
||||
"publish": "changeset publish",
|
||||
"reformat-md": "tsx .build/reformat-mdx.ts",
|
||||
"lint": "pnpm run lint-md",
|
||||
"lint": "pnpm run format:check && pnpm run lint-md",
|
||||
"lint-md": "markdownlint docs/content/**/*.md",
|
||||
"check": "pnpm run lint && pnpm run type-check",
|
||||
"zip-package": "tsx .build/zip-package.ts",
|
||||
"start": "pnpm dev"
|
||||
},
|
||||
|
||||
@@ -40,10 +40,5 @@
|
||||
"dependencies": {
|
||||
"@tabler/core": "workspace:*",
|
||||
"@tabler/icons": "^3.36.1"
|
||||
},
|
||||
"prettier": {
|
||||
"tabWidth": 2,
|
||||
"useTabs": false,
|
||||
"printWidth": 160
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user