Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,19 @@
"customSyntax": "postcss-html"
}
],
"languageOptions": {
"syntax": {
"types": {
"radial-gradient()": "| <any-value>"
}
}
},
"rules": {
"import-notation": "string",
"font-family-no-missing-generic-family-keyword": true,
"declaration-property-value-no-unknown": [
true,
{
"typesSyntax": {
"radial-gradient()": "| <any-value>"
},
"ignoreProperties": {
"speak": ["none"],
"app-region": ["drag", "no-drag"],
Expand Down
6 changes: 5 additions & 1 deletion lint-staged.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ export default {
'./**/*.js': (stagedFiles: string[]) => formatAndEslint(stagedFiles),

'./**/*.{ts,tsx,vue,mts,json,yaml,md}': (stagedFiles: string[]) => {
const commands = [...formatAndEslint(stagedFiles), 'pnpm typecheck']
// oxfmt ignores the lockfile and errors when left with zero targets
const formattable = stagedFiles.filter((f) => !f.endsWith('pnpm-lock.yaml'))
if (formattable.length === 0) return []

const commands = [...formatAndEslint(formattable), 'pnpm typecheck']

const relativePaths = stagedFiles.map((f) =>
path.relative(process.cwd(), f).replace(/\\/g, '/')
Expand Down
Loading
Loading