Skip to content

Commit 1b61f45

Browse files
committed
chore: remove eslint commands
1 parent f4f6186 commit 1b61f45

File tree

8 files changed

+7
-43
lines changed

8 files changed

+7
-43
lines changed

index.html

+1-32
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,6 @@
218218

219219
<!-- Demo Code -->
220220
<script type="text/javascript">
221-
/* eslint-env browser, jquery */
222-
/* globals PNotify */
223221
window.addEventListener('DOMContentLoaded', () => {
224222
// ---
225223
// Set defaults.
@@ -523,8 +521,6 @@ <h5 class="card-header bg-dark text-white">Choose the Styling</h5>
523521
>
524522
</div>
525523
<script type="text/javascript">
526-
/* eslint-env browser, jquery */
527-
/* globals PNotify */
528524
window.addEventListener('DOMContentLoaded', () => {
529525
document
530526
.getElementById('style-brighttheme')
@@ -1253,8 +1249,6 @@ <h5 class="mb-0">
12531249
Max Text Height
12541250
</button>
12551251
<script type="text/javascript">
1256-
/* eslint-env browser, jquery */
1257-
/* globals PNotify */
12581252
window.showRich = function showRich() {
12591253
PNotify.notice({
12601254
title:
@@ -1300,8 +1294,6 @@ <h5 class="mb-0">
13001294
</script>
13011295
</div>
13021296
<script type="text/javascript">
1303-
/* eslint-env browser, jquery */
1304-
/* globals PNotify */
13051297
window.dynNotice = function dynNotice() {
13061298
let percent = 0;
13071299
const notice = PNotify.info({
@@ -1667,8 +1659,6 @@ <h5 class="card-header">
16671659
Notice to Error to Success to Info
16681660
</button>
16691661
<script type="text/javascript">
1670-
/* eslint-env browser, jquery */
1671-
/* globals PNotify */
16721662
window.fakeLoad = function fakeLoad() {
16731663
let curValue = 1;
16741664
let progress;
@@ -2895,8 +2885,6 @@ <h5 class="card-header">Examples of Custom Stacks</h5>
28952885
<hr />
28962886
Modalish. Top Left. Moves down, then right. Pushes to stack top.<br />
28972887
<script type="text/javascript">
2898-
/* eslint-env browser, jquery */
2899-
/* globals PNotify */
29002888
window.showStackTopLeft = function showStackTopLeft(type) {
29012889
if (typeof window.stackTopLeft === 'undefined') {
29022890
window.stackTopLeft = new PNotify.Stack({
@@ -2969,8 +2957,6 @@ <h5 class="card-header">Examples of Custom Stacks</h5>
29692957
<hr />
29702958
Modalish. Bottom Left. Moves right, then up. Pushes to stack top.<br />
29712959
<script type="text/javascript">
2972-
/* eslint-env browser, jquery */
2973-
/* globals PNotify */
29742960
window.showStackBottomLeft = function showStackBottomLeft(type) {
29752961
if (typeof window.stackBottomLeft === 'undefined') {
29762962
window.stackBottomLeft = new PNotify.Stack({
@@ -3044,8 +3030,6 @@ <h5 class="card-header">Examples of Custom Stacks</h5>
30443030
Modalish. Bottom Right. Moves up, then left. Pushes to stack
30453031
bottom.<br />
30463032
<script type="text/javascript">
3047-
/* eslint-env browser, jquery */
3048-
/* globals PNotify */
30493033
window.showStackBottomRight = function showStackBottomRight(type) {
30503034
if (typeof window.stackBottomRight === 'undefined') {
30513035
window.stackBottomRight = new PNotify.Stack({
@@ -3116,8 +3100,6 @@ <h5 class="card-header">Examples of Custom Stacks</h5>
31163100
<hr />
31173101
Modeless. Top Center. Moves down. Pushes to stack bottom.<br />
31183102
<script type="text/javascript">
3119-
/* eslint-env browser, jquery */
3120-
/* globals PNotify */
31213103
window.showStackTopCenter = function showStackTopCenter(type) {
31223104
if (typeof window.stackTopCenter === 'undefined') {
31233105
window.stackTopCenter = new PNotify.Stack({
@@ -3188,8 +3170,6 @@ <h5 class="card-header">Examples of Custom Stacks</h5>
31883170
<hr />
31893171
Modal. Centered. Moves up. Pushes to stack top.<br />
31903172
<script type="text/javascript">
3191-
/* eslint-env browser, jquery */
3192-
/* globals PNotify */
31933173
window.showStackModal = function showStackModal(type) {
31943174
if (typeof window.stackModal === 'undefined') {
31953175
window.stackModal = new PNotify.Stack({
@@ -3277,8 +3257,6 @@ <h5 class="card-header">Examples of Custom Stacks</h5>
32773257
<hr />
32783258
Modal. Moves down, then right. Pushes to stack bottom.<br />
32793259
<script type="text/javascript">
3280-
/* eslint-env browser, jquery */
3281-
/* globals PNotify */
32823260
window.showStackModalLeft = function showStackModalLeft(type) {
32833261
if (typeof window.stackModalLeft === 'undefined') {
32843262
window.stackModalLeft = new PNotify.Stack({
@@ -3368,8 +3346,6 @@ <h5 class="card-header">Examples of Custom Stacks</h5>
33683346
Top bar style. Modeless. Moves down, then right. Pushes to stack
33693347
top.<br />
33703348
<script type="text/javascript">
3371-
/* eslint-env browser, jquery */
3372-
/* globals PNotify */
33733349
window.showStackBarTop = function showStackBarTop(type) {
33743350
if (typeof window.stackBarTop === 'undefined') {
33753351
window.stackBarTop = new PNotify.Stack({
@@ -3452,8 +3428,6 @@ <h5 class="card-header">Examples of Custom Stacks</h5>
34523428
Bottom bar style. Modalish. Moves up, then right. Pushes to stack
34533429
bottom.<br />
34543430
<script type="text/javascript">
3455-
/* eslint-env browser, jquery */
3456-
/* globals PNotify */
34573431
window.showStackBarBottom = function showStackBarBottom(type) {
34583432
if (typeof window.stackBarBottom === 'undefined') {
34593433
window.stackBarBottom = new PNotify.Stack({
@@ -3532,8 +3506,6 @@ <h5 class="card-header">Examples of Custom Stacks</h5>
35323506
<hr />
35333507
No stack.<br />
35343508
<script type="text/javascript">
3535-
/* eslint-env browser, jquery */
3536-
/* globals PNotify */
35373509
window.addEventListener('DOMContentLoaded', () => {
35383510
window.makeTooltip = function makeTooltip() {
35393511
window.tooltip = PNotify.notice({
@@ -3576,8 +3548,6 @@ <h5 class="card-header">Stack Contexts</h5>
35763548
You can specify a context element for your notices to be placed in.
35773549
<hr />
35783550
<script type="text/javascript">
3579-
/* eslint-env browser, jquery */
3580-
/* globals PNotify */
35813551
window.showStackContext = function showStackContext(type, modal) {
35823552
if (typeof window.stackContext === 'undefined') {
35833553
window.stackContext = new PNotify.Stack({
@@ -3858,7 +3828,6 @@ <h2>Comments</h2>
38583828
<p id="copyright">&copy; 2011-2020 Hunter Perrin. All Rights Reserved.</p>
38593829

38603830
<script type="text/javascript">
3861-
/* eslint-env browser, jquery */
38623831
window.addEventListener('DOMContentLoaded', () => {
38633832
// ---
38643833
// This creates all those source code view buttons.
@@ -3921,7 +3890,7 @@ <h2>Comments</h2>
39213890
// Check if the code is calling a function. Include that function.
39223891
const match = text.match(
39233892
/^\s*(?:window\.)?(\w+)\s*\([^\)]*\);\s*$/
3924-
); // eslint-disable-line no-useless-escape
3893+
);
39253894
if (match) {
39263895
const fName = match[1];
39273896
addPrettyCode(window[fName].toString(), sourceElement);

libtests/browserify/src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ document.getElementById('button1').addEventListener('click', function () {
99
});
1010

1111
document.getElementById('button2').addEventListener('click', function () {
12-
var PNotifyConfirm = require('pnotify/dist/umd/PNotifyConfirm'); // eslint-disable-line no-unused-vars
12+
var PNotifyConfirm = require('pnotify/dist/umd/PNotifyConfirm');
1313

1414
PNotify.notice({
1515
title: 'Yay!',

libtests/es6/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import PNotify from '../../dist/es/PNotify.js';
2-
import PNotifyConfirm from '../../dist/es/PNotifyConfirm.js'; // eslint-disable-line no-unused-vars
2+
import PNotifyConfirm from '../../dist/es/PNotifyConfirm.js';
33

44
document.getElementById('button1').addEventListener('click', function () {
55
PNotify.notice({

libtests/rollup/src/module-notice.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import PNotify from 'pnotify/dist/es/PNotify';
2-
import PNotifyConfirm from 'pnotify/dist/es/PNotifyConfirm'; // eslint-disable-line no-unused-vars
2+
import PNotifyConfirm from 'pnotify/dist/es/PNotifyConfirm';
33

44
export default function moduleNotice () {
55
return PNotify.notice({

libtests/webpack/src/module-notice.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import PNotify from 'pnotify/dist/es/PNotify';
2-
import PNotifyConfirm from 'pnotify/dist/es/PNotifyConfirm'; // eslint-disable-line no-unused-vars
2+
import PNotifyConfirm from 'pnotify/dist/es/PNotifyConfirm';
33
// const PNotify = require('pnotify/dist/umd/PNotify');
4-
// const PNotifyConfirm = require('pnotify/dist/umd/PNotifyConfirm'); // eslint-disable-line no-unused-vars
4+
// const PNotifyConfirm = require('pnotify/dist/umd/PNotifyConfirm');
55

66
export default function moduleNotice () {
77
return PNotify.notice({

packages/core/Stack.js

-4
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,6 @@ export default class Stack {
330330
if (_nextpos2 != null) {
331331
elem.style[csspos2] = `${_nextpos2}px`;
332332
if (!this._animation) {
333-
// eslint-disable-next-line no-unused-expressions
334333
elem.style[csspos2]; // Read from the DOM for update.
335334
}
336335
}
@@ -378,7 +377,6 @@ export default class Stack {
378377
elem.style[cssposCross[0]] = `${cssMiddle}px`;
379378
elem.style[cssposCross[1]] = 'auto';
380379
if (!this._animation) {
381-
// eslint-disable-next-line no-unused-expressions
382380
elem.style[cssposCross[0]]; // Read from the DOM for update.
383381
}
384382
}
@@ -388,7 +386,6 @@ export default class Stack {
388386
if (_nextpos1 != null) {
389387
elem.style[csspos1] = `${_nextpos1}px`;
390388
if (!this._animation) {
391-
// eslint-disable-next-line no-unused-expressions
392389
elem.style[csspos1]; // Read from the DOM for update.
393390
}
394391
}
@@ -411,7 +408,6 @@ export default class Stack {
411408
elem.style.left = `${cssMiddleLeft}px`;
412409
elem.style.top = `${cssMiddleTop}px`;
413410
if (!this._animation) {
414-
// eslint-disable-next-line no-unused-expressions
415411
elem.style.left; // Read from the DOM for update.
416412
}
417413
}

packages/core/index.svelte

-1
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,6 @@
857857
858858
_maskingIn = false;
859859
refs.elem && refs.elem.addEventListener('transitionend', finished);
860-
// eslint-disable-next-line no-unused-expressions
861860
refs.elem && refs.elem.style.opacity; // This line is necessary for some reason. Some notices don't fade without it.
862861
// Just in case the event doesn't fire, call it after 650 ms.
863862
_maskingTimer = setTimeout(finished, 650);

packages/desktop/index.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
if (typeof Notification !== 'undefined' && 'permission' in Notification) {
7474
return Notification.permission === 'granted';
7575
} else if ('webkitNotifications' in window) {
76-
return window.webkitNotifications.checkPermission() == 0; // eslint-disable-line eqeqeq
76+
return window.webkitNotifications.checkPermission() == 0;
7777
}
7878
return false;
7979
}

0 commit comments

Comments
 (0)