diff options
author | Chocobozzz <me@florianbigard.com> | 2021-12-16 17:06:52 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-12-16 17:06:52 +0100 |
commit | b8a4afa4c2ba8ed8ebfc4530f002f0e5037a0cf3 (patch) | |
tree | 7fba327edb7658c2501669996f8e3403074a4ce8 | |
parent | 754c52b9b998a825fd830d5ac527a67e0eefeb9a (diff) | |
download | PeerTube-b8a4afa4c2ba8ed8ebfc4530f002f0e5037a0cf3.tar.gz PeerTube-b8a4afa4c2ba8ed8ebfc4530f002f0e5037a0cf3.tar.zst PeerTube-b8a4afa4c2ba8ed8ebfc4530f002f0e5037a0cf3.zip |
Optimize server eslint
-rw-r--r-- | .eslintrc.json | 1 | ||||
-rwxr-xr-x | scripts/ci.sh | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/.eslintrc.json b/.eslintrc.json index c7597cef3..dd3821398 100644 --- a/.eslintrc.json +++ b/.eslintrc.json | |||
@@ -100,6 +100,7 @@ | |||
100 | "node_modules/" | 100 | "node_modules/" |
101 | ], | 101 | ], |
102 | "parserOptions": { | 102 | "parserOptions": { |
103 | "EXPERIMENTAL_useSourceOfProjectReferenceRedirect": true, | ||
103 | "project": [ | 104 | "project": [ |
104 | "./tsconfig.json", | 105 | "./tsconfig.json", |
105 | "./shared/tsconfig.json", | 106 | "./shared/tsconfig.json", |
diff --git a/scripts/ci.sh b/scripts/ci.sh index 7ad6f38e9..a628cbced 100755 --- a/scripts/ci.sh +++ b/scripts/ci.sh | |||
@@ -98,8 +98,6 @@ elif [ "$1" = "external-plugins" ]; then | |||
98 | 98 | ||
99 | runTest "$1" 1 $externalPluginsFiles | 99 | runTest "$1" 1 $externalPluginsFiles |
100 | elif [ "$1" = "lint" ]; then | 100 | elif [ "$1" = "lint" ]; then |
101 | npm run build:server | ||
102 | |||
103 | npm run eslint -- --ext .ts "./server/**/*.ts" "shared/**/*.ts" "scripts/**/*.ts" | 101 | npm run eslint -- --ext .ts "./server/**/*.ts" "shared/**/*.ts" "scripts/**/*.ts" |
104 | npm run swagger-cli -- validate support/doc/api/openapi.yaml | 102 | npm run swagger-cli -- validate support/doc/api/openapi.yaml |
105 | 103 | ||