From 907ed34d51d009a3c7ac9adc3044ac1a526ddcd0 Mon Sep 17 00:00:00 2001 From: hanakin Date: Tue, 24 Mar 2020 09:56:53 -1000 Subject: [PATCH] [ticket/16414] update pkg.json & gulpjs deps PHPBB3-16414 --- gulpfile.js | 7 +------ package.json | 50 ++++++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 43 insertions(+), 14 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 0d0e8d7341..98add46285 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -19,15 +19,10 @@ const build = { css: './phpBB/styles/prosilver/theme/', }; -const AUTOPREFIXER_BROWSERS = [ - '> 1%', - 'last 2 versions' -]; - gulp.task('css', () => { const css = gulp .src(build.css + '*.css') - .pipe(autoprefixer(AUTOPREFIXER_BROWSERS)) + .pipe(autoprefixer()) .pipe( postcss([ sorting(sortOrder) diff --git a/package.json b/package.json index e5c6a4568e..021b1818b3 100644 --- a/package.json +++ b/package.json @@ -8,18 +8,52 @@ }, "xo": { "rules": { - "quote-props": [ + "quotes": [ + "error", + "single" + ], + "comma-dangle": [ + "error", + "always-multiline" + ], + "max-params": [ + "error", + 6 + ], + "block-spacing": "error", + "array-bracket-spacing": [ "error", "always" - ] + ], + "multiline-comment-style": "off", + "computed-property-spacing": "off", + "space-in-parens": "off", + "capitalized-comments": "off", + "object-curly-spacing": [ + "error", + "always" + ], + "no-lonely-if": "off" }, - "env": { - "es6": true, - "browser": true, - "node": true, - "jquery": true - } + "env": [ + "es6", + "browser", + "node", + "jquery" + ] }, + "browserslist": [ + "> 1%", + "not ie 11", + "not samsung 10.1", + "not and_uc 12.12", + "not op_mini all", + "edge >= 18", + "ff >= 72", + "chrome >= 79", + "safari >= 13", + "ios >= 12.4" + ], "scripts": { "test": "echo \"Error: no test specified\" && exit 1" },