Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6113228
worker.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
650 B
Referenced Files
None
Subscribers
None
worker.js
View Options
/* global stylelint */
const
{
rules
}
=
require
(
'stylelint-config-recommended'
);
const
onmessage
=
require
(
'../common.js'
);
require
(
'@bhsd/stylelint-browserify/bundle/stylelint-es8.min.js'
);
let
customRules
=
rules
;
const
setConfig
=
(
config
)
=>
{
customRules
=
Object
.
assign
(
{},
rules
,
config
);
};
const
getConfig
=
()
=>
customRules
;
const
lint
=
(
code
)
=>
stylelint
.
lint
(
{
code
,
config
:
{
defaultSeverity
:
'warning'
,
rules
:
customRules
,
computeEditInfo
:
true
}
}
).
then
(
(
{
results
}
)
=>
results
[
0
].
warnings
.
filter
(
(
{
text
}
)
=>
!
text
.
startsWith
(
'Unknown rule '
)
)
);
onmessage
(
setConfig
,
getConfig
,
lint
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Oct 6 2026, 21:25 (7 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
40/25/251b00a68e617c7bcb1edef83a08
Default Alt Text
worker.js (650 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment