Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 49e7ba7597 | |||
| d9ac7f1fe1 | |||
| 8717509909 | |||
| b1465077a1 | |||
| 31fa528fe2 | |||
| 71a054b964 | |||
| 15c05b5667 | |||
| 9d0fb0901e | |||
| 87cc7b7e38 | |||
| 8f802c4574 | |||
| 942b4a3865 | |||
| c8d79ef509 | |||
| 8bd362922a | |||
| cb4d1366bf | |||
| e5cde7df45 |
1
.husky/.gitignore
vendored
Normal file
1
.husky/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
_
|
||||||
9
.husky/commit-msg
Executable file
9
.husky/commit-msg
Executable file
@@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
if [ -z "$(cat "$1" | grep -E '(^fix:)|(^feature:)|(^up$)|^Merge branch .+$')" ] ; then
|
||||||
|
echo ""
|
||||||
|
echo respecte le format de commit ❤
|
||||||
|
echo " fix: xxx"
|
||||||
|
echo " feature: xxx"
|
||||||
|
echo ""
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
7
.husky/post-merge
Executable file
7
.husky/post-merge
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
|
||||||
|
if git diff --name-only HEAD@{1} HEAD | grep package-lock.json ; then
|
||||||
|
echo "📦 package-lock.json changed. Running npm ci to update your dependencies..."
|
||||||
|
npm ci
|
||||||
|
else
|
||||||
|
echo "📦 no need to update dependencies"
|
||||||
|
fi
|
||||||
13
.husky/pre-commit
Executable file
13
.husky/pre-commit
Executable file
@@ -0,0 +1,13 @@
|
|||||||
|
|
||||||
|
# prevent commits on master
|
||||||
|
branch="$(git rev-parse --abbrev-ref HEAD)"
|
||||||
|
if [ "$branch" = "master" ]; then
|
||||||
|
echo ""
|
||||||
|
echo "You can't commit directly to master branch"
|
||||||
|
echo "please create a pull request"
|
||||||
|
echo ""
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# run linters
|
||||||
|
npx lint-staged
|
||||||
11
.lintstagedrc
Normal file
11
.lintstagedrc
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"*.js": ["eslint --fix", "prettier --write"],
|
||||||
|
"*.css": ["prettier --write"],
|
||||||
|
"*.jsx": ["prettier --write"],
|
||||||
|
"*.html.twig": ["twig-cs-fixer lint --fix", "myhtmlvalidate -q"],
|
||||||
|
"*.php": ["php-cs-fixer fix --config .php-cs-fixer.php"],
|
||||||
|
"Dockerfile": ["hadolint --ignore DL3002 --ignore DL3003 --ignore DL3008 --ignore DL3013 --ignore DL3016 --ignore DL3022"],
|
||||||
|
"*.md": ["markdownlint --fix"],
|
||||||
|
"*openapi.json": ["spectral lint"],
|
||||||
|
"*.tf": ["tflint"]
|
||||||
|
}
|
||||||
6
.prettierignore
Normal file
6
.prettierignore
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
web/*
|
||||||
|
views/*
|
||||||
|
log/*
|
||||||
|
node_modules/*
|
||||||
|
coverage/*
|
||||||
|
data/*
|
||||||
7
.prettierrc.js
Normal file
7
.prettierrc.js
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
export default {
|
||||||
|
tabWidth: 4,
|
||||||
|
singleQuote: true,
|
||||||
|
trailingComma: 'es5',
|
||||||
|
printWidth: 150,
|
||||||
|
arrowParens: 'always',
|
||||||
|
};
|
||||||
745
package-lock.json
generated
745
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
22
package.json
22
package.json
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "vscodestat",
|
"name": "vscodestat",
|
||||||
"displayName": "vscodestat",
|
"displayName": "vscodestat",
|
||||||
"version": "1.1.147",
|
"version": "1.1.153",
|
||||||
"description": "",
|
"description": "",
|
||||||
"categories": [
|
"categories": [
|
||||||
"Other"
|
"Other"
|
||||||
@@ -20,7 +20,8 @@
|
|||||||
"pretest": "npm run compile && npm run lint",
|
"pretest": "npm run compile && npm run lint",
|
||||||
"test": "vscode-test",
|
"test": "vscode-test",
|
||||||
"vscode:prepublish": "npm run compile",
|
"vscode:prepublish": "npm run compile",
|
||||||
"watch": "tsc -watch -p ./"
|
"watch": "tsc -watch -p ./",
|
||||||
|
"prepare": "husky"
|
||||||
},
|
},
|
||||||
"contributes": {
|
"contributes": {
|
||||||
"commands": [
|
"commands": [
|
||||||
@@ -54,17 +55,20 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/mocha": "^10.0.10",
|
"@types/mocha": "^10.0.10",
|
||||||
"@types/node": "25.x",
|
"@types/node": "25.x",
|
||||||
"@types/vscode": "^1.110.0",
|
"@types/vscode": "^1.115.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^8.57.0",
|
"@typescript-eslint/eslint-plugin": "^8.58.1",
|
||||||
"@typescript-eslint/parser": "^8.57.0",
|
"@typescript-eslint/parser": "^8.58.1",
|
||||||
"@vscode/test-cli": "^0.0.12",
|
"@vscode/test-cli": "^0.0.12",
|
||||||
"@vscode/test-electron": "^2.5.2",
|
"@vscode/test-electron": "^2.5.2",
|
||||||
"eslint": "^10.0.3",
|
"eslint": "^10.1.0",
|
||||||
"ts-api-utils": "^2.4.0",
|
"husky": "^9.1.7",
|
||||||
"typescript": "^5.9.3"
|
"lint-staged": "^16.4.0",
|
||||||
|
"prettier": "^3.8.1",
|
||||||
|
"ts-api-utils": "^2.5.0",
|
||||||
|
"typescript": "^6.0.2"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"vscode": "^1.110.0"
|
"vscode": "^1.115.0"
|
||||||
},
|
},
|
||||||
"icon": "icon.png",
|
"icon": "icon.png",
|
||||||
"extensionKind": [
|
"extensionKind": [
|
||||||
|
|||||||
Reference in New Issue
Block a user