Skip to content

Commit

Permalink
chore: Run husky and lint-staged from git repo root
Browse files Browse the repository at this point in the history
  • Loading branch information
johanbissemattsson committed Nov 14, 2024
1 parent 8a2431e commit 2cdd4d0
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 36 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
1 change: 0 additions & 1 deletion lxl-web/.husky/pre-commit

This file was deleted.

7 changes: 7 additions & 0 deletions lxl-web/.lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"*.{js,ts,svelte,css,scss,postcss,md,json}": [
"prettier --write --plugin-search-dir=.",
"prettier --check --plugin-search-dir=."
],
"*.{js,ts,svelte}": "eslint"
}
9 changes: 0 additions & 9 deletions lxl-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@
"test:unit": "vitest",
"prepare": "cd .. && husky lxl-web/.husky"
},
"lint-staged": {
"*.{js,ts,svelte,css,scss,postcss,md,json}": [
"prettier --write --plugin-search-dir=.",
"prettier --check --plugin-search-dir=."
],
"*.{js,ts,svelte}": "eslint"
},
"devDependencies": {
"@axe-core/playwright": "^4.9.1",
"@floating-ui/dom": "^1.6.10",
Expand All @@ -43,10 +36,8 @@
"eslint-plugin-svelte": "^2.43.0",
"estree-walker": "^3.0.3",
"globals": "^15.9.0",
"husky": "^9.1.4",
"jmespath": "^0.16.0",
"js-cookie": "^3.0.5",
"lint-staged": "^15.2.9",
"lxljs": "^1.1.0",
"magic-string": "^0.30.11",
"mdsvex": "^0.12.3",
Expand Down
11 changes: 5 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@
"packages/*",
"lxl-web",
"lxljs"
]
],
"devDependencies": {
"husky": "^9.1.6",
"lint-staged": "^15.2.10"
}
}
1 change: 0 additions & 1 deletion packages/codemirror-lang-lxlquery/.husky/pre-commit

This file was deleted.

7 changes: 7 additions & 0 deletions packages/codemirror-lang-lxlquery/.lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"*.{js,ts,md,json}": [
"prettier --write --plugin-search-dir=.",
"prettier --check --plugin-search-dir=."
],
"*.{js,ts}": "eslint"
}
8 changes: 0 additions & 8 deletions packages/codemirror-lang-lxlquery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@
"lint": "eslint . && prettier --check .",
"format": "prettier --write ."
},
"lint-staged": {
"*.{js,ts,md,json}": [
"prettier --write --plugin-search-dir=.",
"prettier --check --plugin-search-dir=."
],
"*.{js,ts}": "eslint"
},
"type": "module",
"main": "dist/index.cjs",
"module": "dist/index.js",
Expand All @@ -35,7 +28,6 @@
"eslint-config-prettier": "^9.1.0",
"globals": "^15.12.0",
"husky": "^9.1.6",
"lint-staged": "^15.2.10",
"prettier": "^3.3.3",
"rollup": "^2.60.2",
"rollup-plugin-dts": "^4.0.1",
Expand Down
1 change: 0 additions & 1 deletion packages/supersearch/.husky/pre-commit

This file was deleted.

7 changes: 7 additions & 0 deletions packages/supersearch/.lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"*.{js,ts,svelte,css,scss,postcss,md,json}": [
"prettier --write --plugin-search-dir=.",
"prettier --check --plugin-search-dir=."
],
"*.{js,ts,svelte}": "eslint"
}
9 changes: 0 additions & 9 deletions packages/supersearch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@
"format": "prettier --write .",
"prepare": "cd ../../ && husky && cd ./packages/supersearch && npm run package"
},
"lint-staged": {
"*.{js,ts,svelte,css,scss,postcss,md,json}": [
"prettier --write --plugin-search-dir=.",
"prettier --check --plugin-search-dir=."
],
"*.{js,ts,svelte}": "eslint"
},
"files": [
"dist",
"!dist/**/*.test.*",
Expand Down Expand Up @@ -59,8 +52,6 @@
"eslint-plugin-svelte": "^2.36.0",
"esm-env": "^1.1.4",
"globals": "^15.0.0",
"husky": "^9.1.6",
"lint-staged": "^15.2.10",
"prettier": "^3.3.2",
"prettier-plugin-css-order": "^2.1.2",
"prettier-plugin-svelte": "^3.2.6",
Expand Down

0 comments on commit 2cdd4d0

Please sign in to comment.