Skip to content

Commit

Permalink
Merge pull request #2914 from db-ui/refactor-group-config-files
Browse files Browse the repository at this point in the history
refactor: moved some config files
  • Loading branch information
mfranzke authored Jul 26, 2024
2 parents b9fd800 + 014855f commit 9e54be6
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion .lintstagedrc.js → .config/.lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default {
'*.md': 'markdownlint -c .markdown-lint.yml',
'*.md': 'markdownlint -c .config/.markdown-lint.yml',
'*.{css,scss}': 'stylelint --fix --allow-empty-input',
'*.{js,ts,tsx,jsx,mjs,cjs}': 'xo --fix'
};
File renamed without changes.
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1 +1 @@
commitlint --edit "$1"
commitlint --edit "$1" --config .config/.commitlintrc.json
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
validate-branch-name
node scripts/check-commit-mail.js
lint-staged --config ./.lintstagedrc.js
lint-staged --config .config/.lintstagedrc.js
prettier $(git diff --cached --name-only --diff-filter=ACMR | sed 's| |\\ |g') --write --ignore-unknown
git update-index --again
npm run lint:jscpd
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"dev": "npm run dev --workspace=scripts",
"generate:component": "npm run generate:component --workspace=@db-ui/components",
"lint": "npm-run-all -p lint:*",
"lint:jscpd": "jscpd --exitCode 1 .",
"lint:markdownlint": "markdownlint -c .markdown-lint.yml **/*.md",
"lint:jscpd": "jscpd . --exitCode 1 --config .config/.jscpd.json",
"lint:markdownlint": "markdownlint -c .config/.markdown-lint.yml **/*.md",
"lint:stylelint": "stylelint **/*.scss",
"lint:xo": "cross-env TIMING=1 NODE_OPTIONS=\"--max-old-space-size=4096\" xo",
"prepare": "husky",
Expand Down

0 comments on commit 9e54be6

Please sign in to comment.