Skip to content

Commit

Permalink
Merge pull request #9 from hemilabs/sort-package-json
Browse files Browse the repository at this point in the history
Sort package.json and fix lint-staged config
  • Loading branch information
gabmontes authored Oct 18, 2024
2 parents 6563152 + 9a17676 commit f81a061
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 15 deletions.
46 changes: 46 additions & 0 deletions package-lock.json

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

40 changes: 25 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"devDependencies": {
"@commitlint/cli": "^19.5.0",
"@types/node": "^22.7.3",
"better-sort-package-json": "^1.1.0",
"c8": "^10.1.2",
"chai": "^5.1.1",
"chai-as-promised": "^8.0.0",
Expand Down Expand Up @@ -68,11 +69,6 @@
1,
"always"
],
"header-max-length": [
2,
"always",
50
],
"header-case": [
2,
"always",
Expand All @@ -84,6 +80,11 @@
2,
"never",
"."
],
"header-max-length": [
2,
"always",
50
]
}
},
Expand All @@ -94,26 +95,26 @@
],
"overrides": [
{
"files": [
"*.md"
],
"extends": [
"plugin:markdownlint/recommended"
],
"files": [
"*.md"
],
"parser": "eslint-plugin-markdownlint/parser",
"rules": {
"markdownlint/md013": "off",
"markdownlint/md034": "warn"
}
},
{
"files": [
"*.test.js"
],
"extends": [
"bloq/mocha",
"prettier"
],
"files": [
"*.test.js"
],
"rules": {
"node/no-unpublished-require": "off"
}
Expand All @@ -122,6 +123,7 @@
"parserOptions": {
"sourceType": "module"
},
"root": true,
"rules": {
"camelcase": [
"warn",
Expand All @@ -131,8 +133,7 @@
]
}
]
},
"root": true
}
},
"knip": {
"ignoreDependencies": [
Expand All @@ -141,8 +142,17 @@
]
},
"lint-staged": {
"*.{js,md}": "eslint --cache --fix --quiet",
"*.{js,json,md}": "prettier --write"
"!(*.{js,md}|package.json)": [
"prettier --ignore-unknown --write"
],
"*.{js,md}": [
"eslint --cache --fix --quiet",
"prettier --write"
],
"package.json": [
"better-sort-package-json",
"prettier --write"
]
},
"prettier": {}
}

0 comments on commit f81a061

Please sign in to comment.