diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 943f80f503..0000000000 --- a/.eslintignore +++ /dev/null @@ -1,21 +0,0 @@ -node_modules/* -*/dist/* -*.user.js -build/**/*.js -docs/.vuepress/*.js -docs/.vuepress/.cache -docs/.vuepress/.temp -docs/.vuepress/dist -docs/.vuepress/node_modules -docs/.vuepress/components/.temp -prebuild/*.js -scripts/**/*.js -src/userscript.js -src/config.js - -static/fontawesome_*.min.js -static/missions/* -static/releasenotes/* - -src/modules/support/* -src/modules/renameFz/* diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0a738402d9..a2ed5d0fa3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -146,7 +146,6 @@ jobs: ./src/ \ ./scripts/ \ ./typings/ \ - --ext .js,.ts,.vue,.md \ --no-error-on-unmatched-pattern \ --exit-on-fatal-error \ --report-unused-disable-directives \ diff --git a/build/build.ps1 b/build/build.ps1 index 9df4b70805..65649b6d25 100644 --- a/build/build.ps1 +++ b/build/build.ps1 @@ -377,7 +377,7 @@ if ($_RUN_STEP_ESLINT) { $start_time = now print_start_message "[🚨] run ESLint" enable_debugging - yarn eslint ./docs/.vuepress/ ./static/ ./prebuild/ ./build/ ./src/ ./scripts/ ./typings/ --ext .js, .ts, .vue, .md --no-error-on-unmatched-pattern --exit-on-fatal-error --report-unused-disable-directives --cache --cache-strategy content --fix + yarn eslint ./docs/.vuepress/ ./static/ ./prebuild/ ./build/ ./src/ ./scripts/ ./typings/ --no-error-on-unmatched-pattern --exit-on-fatal-error --report-unused-disable-directives --cache --cache-strategy content --fix if (!$?) { exit 1 } diff --git a/build/build.sh b/build/build.sh index 7f05590be7..7970e938a8 100755 --- a/build/build.sh +++ b/build/build.sh @@ -260,7 +260,7 @@ if [[ $_RUN_STEP_ENV = true ]]; then enable_debugging ref="$REF" BRANCH="dummy" - + if [[ $ref == "refs/heads/master" ]]; then BRANCH="stable" elif [[ $ref == "refs/heads/dev" ]]; then @@ -310,7 +310,6 @@ if [[ $_RUN_STEP_ESLINT = true ]]; then ./src/ \ ./scripts/ \ ./typings/ \ - --ext .js,.ts,.vue,.md \ --no-error-on-unmatched-pattern \ --exit-on-fatal-error \ --report-unused-disable-directives \ @@ -407,4 +406,4 @@ fi print_end_message "Total" "$total_start_time" -exit 0 \ No newline at end of file +exit 0 diff --git a/docs/.vuepress/.eslintrc.json b/docs/.vuepress/.eslintrc.json deleted file mode 100644 index 79c5f6baa0..0000000000 --- a/docs/.vuepress/.eslintrc.json +++ /dev/null @@ -1 +0,0 @@ -{ "globals": { "__VAR__": "readonly" } } \ No newline at end of file diff --git a/docs/.vuepress/theme/components/Page.vue b/docs/.vuepress/theme/components/Page.vue index c046141e14..b27a7a7c91 100644 --- a/docs/.vuepress/theme/components/Page.vue +++ b/docs/.vuepress/theme/components/Page.vue @@ -1,3 +1,4 @@ +