mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/16775] Only run valid eslint runs and fix linting errors
PHPBB3-16775
This commit is contained in:
parent
47ada71b3a
commit
2c46f0dc13
2 changed files with 7 additions and 7 deletions
10
.github/check-js.sh
vendored
10
.github/check-js.sh
vendored
|
@ -14,8 +14,8 @@ set +x
|
||||||
sudo npm install -g > /dev/null
|
sudo npm install -g > /dev/null
|
||||||
npm ci > /dev/null
|
npm ci > /dev/null
|
||||||
set -x
|
set -x
|
||||||
node_modules/xo/cli.js "phpBB/adm/style/*.js"
|
# node_modules/eslint/bin/eslint.js "phpBB/adm/style/*.js" # Currently disabled as no file is linted
|
||||||
node_modules/xo/cli.js "phpBB/assets/javascript/*.js"
|
node_modules/eslint/bin/eslint.js "phpBB/assets/javascript/*.js"
|
||||||
node_modules/xo/cli.js "phpBB/style/all/js/*.js"
|
# node_modules/eslint/bin/eslint.js "phpBB/style/all/js/*.js" # Currently disabled as no file is linted
|
||||||
node_modules/xo/cli.js "phpBB/style/prosilver/template/*.js"
|
# node_modules/eslint/bin/eslint.js "phpBB/style/prosilver/template/*.js" # Currently disabled as no file is linted
|
||||||
node_modules/xo/cli.js "gulpfile.js"
|
node_modules/eslint/bin/eslint.js "gulpfile.js"
|
||||||
|
|
|
@ -23,7 +23,7 @@ function styles() {
|
||||||
postcss([
|
postcss([
|
||||||
autoprefixer(),
|
autoprefixer(),
|
||||||
sorting(sortOrder),
|
sorting(sortOrder),
|
||||||
]),
|
])
|
||||||
)
|
)
|
||||||
.pipe(gulp.dest(paths.styles.css));
|
.pipe(gulp.dest(paths.styles.css));
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@ function minify() {
|
||||||
.pipe(
|
.pipe(
|
||||||
postcss([
|
postcss([
|
||||||
cssnano(),
|
cssnano(),
|
||||||
]),
|
])
|
||||||
)
|
)
|
||||||
.pipe(rename({
|
.pipe(rename({
|
||||||
suffix: '.min',
|
suffix: '.min',
|
||||||
|
|
Loading…
Add table
Reference in a new issue