mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +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"
|
||||
},
|
||||
"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": {
|
||||
"quotes": [
|
||||
"error",
|
||||
|
@ -25,14 +40,14 @@
|
|||
"error",
|
||||
"always"
|
||||
],
|
||||
"multiline-comment-style": "off",
|
||||
"computed-property-spacing": "off",
|
||||
"space-in-parens": "off",
|
||||
"capitalized-comments": "off",
|
||||
"object-curly-spacing": [
|
||||
"error",
|
||||
"always"
|
||||
],
|
||||
"multiline-comment-style": "off",
|
||||
"computed-property-spacing": "off",
|
||||
"space-in-parens": "off",
|
||||
"capitalized-comments": "off",
|
||||
"no-lonely-if": "off"
|
||||
},
|
||||
"env": [
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* global phpbb */
|
||||
|
||||
/**
|
||||
* phpBB3 ACP functions
|
||||
*/
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* global phpbb */
|
||||
|
||||
/**
|
||||
* Hide and show all checkboxes
|
||||
* 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() {
|
||||
phpbb.timezoneSwitchDate(false);
|
||||
});
|
||||
|
||||
$(document).ready(
|
||||
phpbb.timezoneEnableDateSelection
|
||||
);
|
||||
$('#tz_date').change(() => {
|
||||
phpbb.timezoneSwitchDate(false);
|
||||
});
|
||||
|
||||
$(document).ready(
|
||||
phpbb.timezoneEnableDateSelection,
|
||||
);
|
||||
})(jQuery); // Avoid conflicts with other libraries
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* global phpbb */
|
||||
|
||||
/*
|
||||
javascript for Bubble Tooltips by Alessandro Fulciniti
|
||||
- http://pro.html.it - http://web-graphics.com
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* global phpbb */
|
||||
|
||||
/**
|
||||
* bbCode control by subBlue design [ www.subBlue.com ]
|
||||
* Includes unixsafe colour palette selector by SHS`
|
||||
|
|
|
@ -1,20 +1,18 @@
|
|||
/* global phpbb */
|
||||
|
||||
(function($) { // Avoid conflicts with other libraries
|
||||
(function ($) { // Avoid conflicts with other libraries
|
||||
'use strict';
|
||||
|
||||
'use strict';
|
||||
$('#tz_date').change(() => {
|
||||
phpbb.timezoneSwitchDate(false);
|
||||
});
|
||||
|
||||
$('#tz_date').change(function() {
|
||||
phpbb.timezoneSwitchDate(false);
|
||||
});
|
||||
|
||||
$('#tz_select_date_suggest').click(function(){
|
||||
phpbb.timezonePreselectSelect(true);
|
||||
});
|
||||
|
||||
$(function () {
|
||||
phpbb.timezoneEnableDateSelection();
|
||||
phpbb.timezonePreselectSelect($('#tz_select_date_suggest').attr('timezone-preselect') === 'true');
|
||||
});
|
||||
$('#tz_select_date_suggest').click(() => {
|
||||
phpbb.timezonePreselectSelect(true);
|
||||
});
|
||||
|
||||
$(() => {
|
||||
phpbb.timezoneEnableDateSelection();
|
||||
phpbb.timezonePreselectSelect($('#tz_select_date_suggest').attr('timezone-preselect') === 'true');
|
||||
});
|
||||
})(jQuery); // Avoid conflicts with other libraries
|
||||
|
|
Loading…
Add table
Reference in a new issue