mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/16414] setup xo for use in future
PHPBB3-16414
This commit is contained in:
parent
19e437a7b1
commit
d94e8f5721
7 changed files with 48 additions and 27 deletions
23
package.json
23
package.json
|
@ -7,6 +7,21 @@
|
||||||
"doc": "docs"
|
"doc": "docs"
|
||||||
},
|
},
|
||||||
"xo": {
|
"xo": {
|
||||||
|
"ignores": [
|
||||||
|
"./phpbb/adm/style/admin.js",
|
||||||
|
"./phpbb/adm/style/ajax.js",
|
||||||
|
"./phpbb/adm/style/permissions.js",
|
||||||
|
"./phpbb/adm/style/tooltip.js",
|
||||||
|
"./phpbb/assets/cookieconsent/*.js",
|
||||||
|
"./phpbb/assets/javascript/core.js",
|
||||||
|
"./phpbb/assets/javascript/editor.js",
|
||||||
|
"./phpbb/assets/javascript/installer.js",
|
||||||
|
"./phpbb/assets/javascript/plupload.js",
|
||||||
|
"./phpbb/assets/javascript/jquery*.js",
|
||||||
|
"./phpbb/assets/plupload/*.js",
|
||||||
|
"./phpbb/styles/prosilver/template/ajax.js",
|
||||||
|
"./phpbb/styles/prosilver/template/forum_fn.js"
|
||||||
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
"quotes": [
|
"quotes": [
|
||||||
"error",
|
"error",
|
||||||
|
@ -25,14 +40,14 @@
|
||||||
"error",
|
"error",
|
||||||
"always"
|
"always"
|
||||||
],
|
],
|
||||||
"multiline-comment-style": "off",
|
|
||||||
"computed-property-spacing": "off",
|
|
||||||
"space-in-parens": "off",
|
|
||||||
"capitalized-comments": "off",
|
|
||||||
"object-curly-spacing": [
|
"object-curly-spacing": [
|
||||||
"error",
|
"error",
|
||||||
"always"
|
"always"
|
||||||
],
|
],
|
||||||
|
"multiline-comment-style": "off",
|
||||||
|
"computed-property-spacing": "off",
|
||||||
|
"space-in-parens": "off",
|
||||||
|
"capitalized-comments": "off",
|
||||||
"no-lonely-if": "off"
|
"no-lonely-if": "off"
|
||||||
},
|
},
|
||||||
"env": [
|
"env": [
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* global phpbb */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* phpBB3 ACP functions
|
* phpBB3 ACP functions
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* global phpbb */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hide and show all checkboxes
|
* Hide and show all checkboxes
|
||||||
* status = true (show boxes), false (hide boxes)
|
* status = true (show boxes), false (hide boxes)
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
(function($) { // Avoid conflicts with other libraries
|
/* global phpbb */
|
||||||
|
|
||||||
"use strict";
|
(function ($) { // Avoid conflicts with other libraries
|
||||||
|
'use strict';
|
||||||
|
|
||||||
$('#tz_date').change(function() {
|
$('#tz_date').change(() => {
|
||||||
phpbb.timezoneSwitchDate(false);
|
phpbb.timezoneSwitchDate(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).ready(
|
|
||||||
phpbb.timezoneEnableDateSelection
|
|
||||||
);
|
|
||||||
|
|
||||||
|
$(document).ready(
|
||||||
|
phpbb.timezoneEnableDateSelection,
|
||||||
|
);
|
||||||
})(jQuery); // Avoid conflicts with other libraries
|
})(jQuery); // Avoid conflicts with other libraries
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* global phpbb */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
javascript for Bubble Tooltips by Alessandro Fulciniti
|
javascript for Bubble Tooltips by Alessandro Fulciniti
|
||||||
- http://pro.html.it - http://web-graphics.com
|
- http://pro.html.it - http://web-graphics.com
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* global phpbb */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* bbCode control by subBlue design [ www.subBlue.com ]
|
* bbCode control by subBlue design [ www.subBlue.com ]
|
||||||
* Includes unixsafe colour palette selector by SHS`
|
* Includes unixsafe colour palette selector by SHS`
|
||||||
|
|
|
@ -1,20 +1,18 @@
|
||||||
/* global phpbb */
|
/* global phpbb */
|
||||||
|
|
||||||
(function($) { // Avoid conflicts with other libraries
|
(function ($) { // Avoid conflicts with other libraries
|
||||||
|
'use strict';
|
||||||
|
|
||||||
'use strict';
|
$('#tz_date').change(() => {
|
||||||
|
|
||||||
$('#tz_date').change(function() {
|
|
||||||
phpbb.timezoneSwitchDate(false);
|
phpbb.timezoneSwitchDate(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#tz_select_date_suggest').click(function(){
|
$('#tz_select_date_suggest').click(() => {
|
||||||
phpbb.timezonePreselectSelect(true);
|
phpbb.timezonePreselectSelect(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
$(function () {
|
$(() => {
|
||||||
phpbb.timezoneEnableDateSelection();
|
phpbb.timezoneEnableDateSelection();
|
||||||
phpbb.timezonePreselectSelect($('#tz_select_date_suggest').attr('timezone-preselect') === 'true');
|
phpbb.timezonePreselectSelect($('#tz_select_date_suggest').attr('timezone-preselect') === 'true');
|
||||||
});
|
});
|
||||||
|
|
||||||
})(jQuery); // Avoid conflicts with other libraries
|
})(jQuery); // Avoid conflicts with other libraries
|
||||||
|
|
Loading…
Add table
Reference in a new issue