8000 Fixed npm run format & format index.js · ulyssear/css-in-js-in-html@c4f9b38 · GitHub
[go: up one dir, main page]

Skip to content

Commit c4f9b38

Browse files
committed
Fixed npm run format & format index.js
1 parent 08476e3 commit c4f9b38

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original 8000 file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "index.js",
66
"scripts": {
77
"test": "jest",
8-
"format": "rome format --write --indent-style tab --line-width 160 --quote-style single index.js",
8+
"format": "rome format --write --indent-style tab --line-width 160 --quote-style single src/index.js",
99
"lint": "rome check src/index.js",
1010
"lint:fix": "rome check --apply-suggested src/index.js",
1111
"build": "esbuild src/index.js --bundle --outfile=build/index.min.js --minify --sourcemap",

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ function do_apply(element, selectors, classes, events, media_query) {
271271
if (media_query) {
272272
if ('(' !== media_query[0]) {
273273
media_query = `(${media_query})`;
274-
}
274+
}
275275
if (!window.matchMedia(media_query).matches) {
276276
return;
277277
}
@@ -414,7 +414,7 @@ function init_observer(record) {
414414
const CSS_IN_JS_IN_HTML = {
415415
// apply: apply_custom_class,
416416
init,
417-
fromClassNameToGroups: split_classname_to_classes_groups
417+
fromClassNameToGroups: split_classname_to_classes_groups,
418418
};
419419

420420
window.CSS_IN_JS_IN_HTML = CSS_IN_JS_IN_HTML;

0 commit comments

Comments
 (0)
0