Skip to content

Commit dd48f05

Browse files
committed
refactor: resolve eslint warning and errors
1 parent 436354a commit dd48f05

File tree

5 files changed

+3
-7
lines changed

5 files changed

+3
-7
lines changed

build/change-version.js

-1
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,4 @@ async function main(args) {
8181
}
8282
}
8383

84-
// eslint-disable-next-line unicorn/prefer-top-level-await
8584
main(process.argv.slice(2))

build/pug.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const fs = require('node:fs').promises
55
const path = require('node:path')
66
const mkdirp = require('mkdirp')
77
const pug = require('pug')
8+
89
const { basename, dirname, resolve, sep } = path
910

1011
const globby = require('globby')
@@ -82,5 +83,4 @@ async function main(args) {
8283
}
8384
}
8485

85-
// eslint-disable-next-line unicorn/prefer-top-level-await
8686
main(args)

build/vendors.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
const fs = require('node:fs')
66
const path = require('node:path')
7-
const extension = path.extname
87
const injector = require('@coreui/vendors-injector')
8+
9+
const extension = path.extname
910
const dist = 'dist/'
1011

1112
const walkSync = (dir, filelist = []) => {

src/js/color-modes.js

-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
*/
66

77
(() => {
8-
'use strict'
9-
108
const THEME = 'coreui-free-bootstrap-admin-template-theme'
119

1210
const storedTheme = localStorage.getItem(THEME)

src/js/config.js

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
*/
77

88
(() => {
9-
'use strict'
10-
119
const THEME = 'coreui-free-bootstrap-admin-template-theme'
1210
const urlParams = new URLSearchParams(window.location.href.split('?')[1])
1311

0 commit comments

Comments
 (0)