chore: cleaner configs

This commit is contained in:
Théo LUDWIG 2024-01-29 21:24:22 +01:00
parent 1095647d41
commit cc9a1cf6a2
Signed by: theoludwig
GPG Key ID: ADFE5A563D718F3B
7 changed files with 346 additions and 456 deletions

View File

@ -1,4 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
#!/usr/bin/env sh
npm run lint:commit -- --edit

View File

@ -1,5 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
#!/usr/bin/env sh
npm run lint:staged
npm run lint:javascript

View File

@ -1,6 +1,7 @@
{
"*": ["editorconfig-checker"],
"*.{js,jsx,ts,tsx}": ["prettier --write", "eslint --fix"],
"*.{json,jsonc,yml,yaml}": ["prettier --write"],
"*.{md,mdx}": ["prettier --write", "markdownlint-cli2 --fix"]
"**/*": ["editorconfig-checker", "prettier --write --ignore-unknown"],
"**/*.md": ["markdownlint-cli2 --fix --no-globs"],
"**/*.{js,jsx,ts,tsx}": [
"eslint --fix --max-warnings 0 --report-unused-disable-directives"
]
}

View File

@ -3,9 +3,9 @@
"extends": "markdownlint/style/prettier",
"default": true,
"relative-links": true,
"no-inline-html": false
"no-inline-html": false,
},
"globs": ["**/*.{md,mdx}"],
"globs": ["**/*.md"],
"ignores": ["**/node_modules", "**/test/fixtures/**"],
"customRules": ["./src/index.js"]
"customRules": ["./src/index.js"],
}

View File

@ -20,6 +20,6 @@
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"forceConsistentCasingInFileNames": true
}
"forceConsistentCasingInFileNames": true,
},
}

759
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -37,9 +37,9 @@
"lint:prettier": "prettier . --check --ignore-path .gitignore",
"lint:javascript": "tsc --project jsconfig.json --noEmit",
"lint:staged": "lint-staged",
"test": "node --test --experimental-test-coverage",
"test": "node --test",
"release": "semantic-release",
"postinstall": "husky install",
"postinstall": "husky",
"prepublishOnly": "pinst --disable",
"postpublish": "pinst --enable"
},
@ -47,10 +47,10 @@
"markdown-it": "14.0.0"
},
"devDependencies": {
"@commitlint/cli": "18.4.4",
"@commitlint/config-conventional": "18.4.4",
"@commitlint/cli": "18.6.0",
"@commitlint/config-conventional": "18.6.0",
"@types/markdown-it": "13.0.7",
"@types/node": "20.11.0",
"@types/node": "20.11.10",
"editorconfig-checker": "5.1.2",
"eslint": "8.56.0",
"eslint-config-conventions": "13.1.0",
@ -59,13 +59,13 @@
"eslint-plugin-prettier": "5.1.3",
"eslint-plugin-promise": "6.1.1",
"eslint-plugin-unicorn": "50.0.1",
"husky": "8.0.3",
"husky": "9.0.7",
"lint-staged": "15.2.0",
"markdownlint": "0.33.0",
"markdownlint-cli2": "0.11.0",
"markdownlint-cli2": "0.12.1",
"pinst": "3.0.0",
"prettier": "3.1.1",
"semantic-release": "22.0.12",
"prettier": "3.2.4",
"semantic-release": "23.0.0",
"typescript": "5.3.3"
}
}