aboutsummaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2022-07-12 01:07:16 +0200
committerGitHub <noreply@github.com>2022-07-11 18:07:16 -0500
commitc8e0fd0bccb37898c1eb111256397c9c2e039598 (patch)
tree5b3063138a4727931a556f06a3ec6ebed94f089f /package.json
parent8a7d1a3516c4479dae6824d5b0b041ed7dd5eb41 (diff)
downloadgitea-c8e0fd0bccb37898c1eb111256397c9c2e039598.tar.gz
gitea-c8e0fd0bccb37898c1eb111256397c9c2e039598.zip
Add spectral linter for Swagger (#20321)
[spectral](https://github.com/stoplightio/spectral) lints openapi/swagger files for mistakes of which it has identified a few and which I've fixed. I had to put it into `lint-frontend` because it depends on node_modules so can not run on Drone during the backend target. I plan to refactor these targets later to `lint-js` and `lint-go` so that they are categorized based on the tool dependencies.
Diffstat (limited to 'package.json')
-rw-r--r--package.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/package.json b/package.json
index 2e1c05bb89..1ec816fc56 100644
--- a/package.json
+++ b/package.json
@@ -45,6 +45,7 @@
},
"devDependencies": {
"@happy-dom/jest-environment": "4.0.1",
+ "@stoplight/spectral-cli": "6.4.1",
"eslint": "8.15.0",
"eslint-plugin-html": "6.2.0",
"eslint-plugin-import": "2.26.0",