mirror of https://github.com/Chocobozzz/PeerTube
Optimize server eslint
parent
754c52b9b9
commit
b8a4afa4c2
|
@ -100,6 +100,7 @@
|
||||||
"node_modules/"
|
"node_modules/"
|
||||||
],
|
],
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
|
"EXPERIMENTAL_useSourceOfProjectReferenceRedirect": true,
|
||||||
"project": [
|
"project": [
|
||||||
"./tsconfig.json",
|
"./tsconfig.json",
|
||||||
"./shared/tsconfig.json",
|
"./shared/tsconfig.json",
|
||||||
|
|
|
@ -98,8 +98,6 @@ elif [ "$1" = "external-plugins" ]; then
|
||||||
|
|
||||||
runTest "$1" 1 $externalPluginsFiles
|
runTest "$1" 1 $externalPluginsFiles
|
||||||
elif [ "$1" = "lint" ]; then
|
elif [ "$1" = "lint" ]; then
|
||||||
npm run build:server
|
|
||||||
|
|
||||||
npm run eslint -- --ext .ts "./server/**/*.ts" "shared/**/*.ts" "scripts/**/*.ts"
|
npm run eslint -- --ext .ts "./server/**/*.ts" "shared/**/*.ts" "scripts/**/*.ts"
|
||||||
npm run swagger-cli -- validate support/doc/api/openapi.yaml
|
npm run swagger-cli -- validate support/doc/api/openapi.yaml
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue