Skip to content

Commit

Permalink
[squashme] wip
Browse files Browse the repository at this point in the history
  • Loading branch information
augustebaum committed Sep 18, 2024
1 parent e15302a commit 4170398
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 21 deletions.
13 changes: 7 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,11 @@ repos:
args: [--fix]
- id: ruff-format

# use eslint mirror hook https://github.com/thibaudcolas/pre-commit-stylelint
# use & install prettier using additional_dependencies
# use & install stylelint using additional_dependencies
# clean package.json

- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.57.0
hooks:
- id: eslint
# TODO: Move --ext to files
files: ^frontend/
args:
- .
Expand Down Expand Up @@ -60,6 +56,11 @@ repos:
files: ^frontend/src/**/*.{css,vue}
language: node
entry: bash -c "stylelint --fix"
additional_dependencies: ["[email protected]"]
additional_dependencies:
- "[email protected]"
- "[email protected]"
- "[email protected]"
- "[email protected]"
- "[email protected]"

exclude: fixtures/
16 changes: 1 addition & 15 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
"test:unit:watch": "vitest",
"test:unit:coverage": "vitest run --coverage",
"build-only": "vite build",
"type-check": "vue-tsc --build --force",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"style-lint": "stylelint --fix src/**/*.{css,vue}",
"format": "prettier --write src/"
"type-check": "vue-tsc --build --force"
},
"dependencies": {
"@vscode/markdown-it-katex": "^1.1.0",
Expand All @@ -35,7 +32,6 @@
},
"devDependencies": {
"@pinia/testing": "^0.1.5",
"@rushstack/eslint-patch": "^1.10.4",
"@tsconfig/node20": "^20.1.4",
"@types/jsdom": "^21.1.7",
"@types/markdown-it": "^14.1.2",
Expand All @@ -44,24 +40,14 @@
"@types/node": "^22.5.2",
"@vitejs/plugin-vue": "^5.1.3",
"@vitest/coverage-v8": "^2.0.5",
"@vue/eslint-config-prettier": "^9.0.0",
"@vue/eslint-config-typescript": "^13.0.0",
"@vue/test-utils": "^2.4.6",
"@vue/tsconfig": "^0.5.1",
"autoprefixer": "^10.4.20",
"eslint": "^8.57.0",
"eslint-plugin-vue": "^9.27.0",
"jsdom": "^25.0.0",
"npm-run-all2": "^6.2.2",
"postcss-html": "^1.7.0",
"postcss-nesting": "^13.0.0",
"postcss-sorting": "^8.0.2",
"prettier": "^3.3.3",
"stylelint": "^16.9.0",
"stylelint-config-idiomatic-order": "^10.0.0",
"stylelint-config-recommended-vue": "^1.5.0",
"stylelint-config-standard": "^36.0.1",
"stylelint-order": "^6.0.4",
"typescript": "~5.5.4",
"vite": "^5.4.2",
"vite-plugin-vue-devtools": "^7.3.9",
Expand Down

0 comments on commit 4170398

Please sign in to comment.