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 #!/usr/bin/env sh
. "$(dirname "$0")/_/husky.sh"
npm run lint:commit -- --edit npm run lint:commit -- --edit

View File

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

View File

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

View File

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

View File

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