Skip to content

Commit b5c244f

Browse files
Enable rule "package-json/sort-collections" and sort scripts
1 parent 74d2eee commit b5c244f

File tree

2 files changed

+17
-23
lines changed

2 files changed

+17
-23
lines changed

eslint.config.mjs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,6 @@ const config = [
121121
"@stylistic/quotes": "off"
122122
}
123123
},
124-
{
125-
files: ["package.json"],
126-
rules: {
127-
"package-json/sort-collections": "off"
128-
}
129-
},
130124
{
131125
ignores: ["config/**", "modules/**/*", "!modules/default/**", "js/positions.js"]
132126
}

package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,18 @@
2424
],
2525
"main": "js/electron.js",
2626
"scripts": {
27+
"config:check": "node js/check_config.js",
28+
"install-fonts": "echo \"Installing fonts ...\n\" && cd fonts && npm install --loglevel=error --no-audit --no-fund --no-update-notifier",
29+
"install-mm": "npm install --no-audit --no-fund --no-update-notifier --only=prod --omit=dev",
30+
"install-mm:dev": "npm install --no-audit --no-fund --no-update-notifier",
31+
"install-vendor": "echo \"Installing vendor files ...\n\" && cd vendor && npm install --loglevel=error --no-audit --no-fund --no-update-notifier",
32+
"lint:css": "stylelint 'css/main.css' 'fonts/*.css' 'modules/default/**/*.css' 'vendor/*.css' --config .stylelintrc.json --fix",
33+
"lint:js": "eslint . --fix",
34+
"lint:prettier": "prettier . --write",
35+
"lint:staged": "lint-staged",
36+
"postinstall": "npm run install-vendor && npm run install-fonts && echo \"MagicMirror² installation finished successfully! \n\"",
37+
"prepare": "[ -f node_modules/.bin/husky ] && husky || echo no husky installed.",
38+
"server": "node ./serveronly",
2739
"start": "npm run start:x11",
2840
"start:dev": "npm run start -- dev",
2941
"start:wayland": "WAYLAND_DISPLAY=\"${WAYLAND_DISPLAY:=wayland-1}\" ./node_modules/.bin/electron js/electron.js --enable-features=UseOzonePlatform --ozone-platform=wayland",
@@ -32,28 +44,16 @@
3244
"start:windows:dev": "npm run start:windows -- dev",
3345
"start:x11": "DISPLAY=\"${DISPLAY:=:0}\" ./node_modules/.bin/electron js/electron.js",
3446
"start:x11:dev": "npm run start -- dev",
35-
"server": "node ./serveronly",
36-
"install-mm": "npm install --no-audit --no-fund --no-update-notifier --only=prod --omit=dev",
37-
"install-mm:dev": "npm install --no-audit --no-fund --no-update-notifier",
38-
"install-vendor": "echo \"Installing vendor files ...\n\" && cd vendor && npm install --loglevel=error --no-audit --no-fund --no-update-notifier",
39-
"install-fonts": "echo \"Installing fonts ...\n\" && cd fonts && npm install --loglevel=error --no-audit --no-fund --no-update-notifier",
40-
"postinstall": "npm run install-vendor && npm run install-fonts && echo \"MagicMirror² installation finished successfully! \n\"",
4147
"test": "NODE_ENV=test jest -i --forceExit",
48+
"test:calendar": "node ./modules/default/calendar/debug.js",
4249
"test:coverage": "NODE_ENV=test jest --coverage -i --verbose false --forceExit",
43-
"test:electron": "NODE_ENV=test jest --selectProjects electron -i --forceExit",
50+
"test:css": "stylelint 'css/main.css' 'fonts/*.css' 'modules/default/**/*.css' 'vendor/*.css' --config .stylelintrc.json",
4451
"test:e2e": "NODE_ENV=test jest --selectProjects e2e -i --forceExit",
45-
"test:unit": "NODE_ENV=test jest --selectProjects unit",
46-
"test:prettier": "prettier . --check",
52+
"test:electron": "NODE_ENV=test jest --selectProjects electron -i --forceExit",
4753
"test:js": "eslint .",
48-
"test:css": "stylelint 'css/main.css' 'fonts/*.css' 'modules/default/**/*.css' 'vendor/*.css' --config .stylelintrc.json",
49-
"test:calendar": "node ./modules/default/calendar/debug.js",
54+
"test:prettier": "prettier . --check",
5055
"test:spelling": "cspell . --gitignore",
51-
"config:check": "node js/check_config.js",
52-
"lint:prettier": "prettier . --write",
53-
"lint:js": "eslint . --fix",
54-
"lint:css": "stylelint 'css/main.css' 'fonts/*.css' 'modules/default/**/*.css' 'vendor/*.css' --config .stylelintrc.json --fix",
55-
"lint:staged": "lint-staged",
56-
"prepare": "[ -f node_modules/.bin/husky ] && husky || echo no husky installed."
56+
"test:unit": "NODE_ENV=test jest --selectProjects unit"
5757
},
5858
"lint-staged": {
5959
"*": "prettier --write",

0 commit comments

Comments
 (0)