1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-05 15:16:16 +02:00

[ticket/16775] Only run valid eslint runs and fix linting errors

PHPBB3-16775
This commit is contained in:
Marc Alexander 2021-05-23 21:38:38 +02:00
parent 47ada71b3a
commit 2c46f0dc13
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995
2 changed files with 7 additions and 7 deletions

10
.github/check-js.sh vendored
View File

@ -14,8 +14,8 @@ set +x
sudo npm install -g > /dev/null
npm ci > /dev/null
set -x
node_modules/xo/cli.js "phpBB/adm/style/*.js"
node_modules/xo/cli.js "phpBB/assets/javascript/*.js"
node_modules/xo/cli.js "phpBB/style/all/js/*.js"
node_modules/xo/cli.js "phpBB/style/prosilver/template/*.js"
node_modules/xo/cli.js "gulpfile.js"
# node_modules/eslint/bin/eslint.js "phpBB/adm/style/*.js" # Currently disabled as no file is linted
node_modules/eslint/bin/eslint.js "phpBB/assets/javascript/*.js"
# node_modules/eslint/bin/eslint.js "phpBB/style/all/js/*.js" # Currently disabled as no file is linted
# node_modules/eslint/bin/eslint.js "phpBB/style/prosilver/template/*.js" # Currently disabled as no file is linted
node_modules/eslint/bin/eslint.js "gulpfile.js"

View File

@ -23,7 +23,7 @@ function styles() {
postcss([
autoprefixer(),
sorting(sortOrder),
]),
])
)
.pipe(gulp.dest(paths.styles.css));
}
@ -48,7 +48,7 @@ function minify() {
.pipe(
postcss([
cssnano(),
]),
])
)
.pipe(rename({
suffix: '.min',