Skip to content

Commit

Permalink
test: use eslint-plugin-json-files in replacement of sort-package-json (
Browse files Browse the repository at this point in the history
#201)

* test(eslint): use eslint-plugin-json-files

* chore: remove `sort-package-json` from dependency
  • Loading branch information
threeal authored Nov 26, 2023
1 parent da75081 commit b6a0cf8
Show file tree
Hide file tree
Showing 3 changed files with 188 additions and 65 deletions.
7 changes: 7 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@
"rules": {
"tsdoc/syntax": "error"
}
},
{
"files": ["package.json"],
"plugins": ["json-files"],
"rules": {
"json-files/sort-package-json": "error"
}
}
]
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dist"
],
"scripts": {
"check": "sort-package-json && prettier --write . && eslint src",
"check": "prettier --write . && eslint src package.json",
"doc": "typedoc src/index.mts",
"prepack": "tsc",
"test": "jest"
Expand All @@ -39,10 +39,10 @@
"@typescript-eslint/parser": "^6.12.0",
"eslint": "^8.54.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-json-files": "^4.1.0",
"eslint-plugin-tsdoc": "^0.2.17",
"jest": "^29.7.0",
"prettier": "^3.1.0",
"sort-package-json": "^2.6.0",
"ts-jest": "^29.1.1",
"typedoc": "^0.25.3",
"typescript": "^5.3.2"
Expand Down
Loading

0 comments on commit b6a0cf8

Please sign in to comment.