@eslinted/defaults 4.3.3 → 4.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.github/workflows/rc.yml
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_schemaVersion": "22.11.
|
|
2
|
+
"_schemaVersion": "22.11.3",
|
|
3
3
|
"name": "@eslinted/defaults",
|
|
4
|
-
"version": "4.3.
|
|
4
|
+
"version": "4.3.5",
|
|
5
5
|
"description": "Default scopes for `linted`.",
|
|
6
6
|
"keywords": [],
|
|
7
7
|
"repository": "github:jimmy-zhening-luo/linted-defaults",
|
|
@@ -39,10 +39,16 @@
|
|
|
39
39
|
"typescript": "^5.7.2"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
|
+
"prebuild": "npm ci || run-s prebuild:reinstall:*",
|
|
43
|
+
"prebuild:reinstall:install": "npm i",
|
|
44
|
+
"prebuild:reinstall:add": "git add *",
|
|
45
|
+
"prebuild:reinstall:commit": "run-os",
|
|
46
|
+
"prebuild:reinstall:commit:default": "git commit -m \"reinstall ${npm_package_version}\"",
|
|
47
|
+
"prebuild:reinstall:commit:windows": "git commit -m \"reinstall %npm_package_version%\"",
|
|
42
48
|
"build": "run-os",
|
|
43
|
-
"build:default": "npm run rebuild -- $npm_package_config_language $npm_package_config_lint default",
|
|
44
|
-
"build:windows": "npm run rebuild -- %npm_package_config_language% %npm_package_config_lint% windows",
|
|
45
|
-
"rebuild": "run-s \"clean:{1}:{3}\" \"compile:{1}:*\" \"lint:{2}\" \"test:{1}\" --",
|
|
49
|
+
"build:default": "npm run rebuild+lint+test -- $npm_package_config_language $npm_package_config_lint default",
|
|
50
|
+
"build:windows": "npm run rebuild+lint+test -- %npm_package_config_language% %npm_package_config_lint% windows",
|
|
51
|
+
"rebuild+lint+test": "run-s \"clean:{1}:{3}\" \"compile:{1}:*\" \"lint:{2}\" \"test:{1}\" --",
|
|
46
52
|
"clean:ts:default": "rm -rf dist",
|
|
47
53
|
"clean:ts:windows": "cmd /c if exist dist rmdir /s /q dist",
|
|
48
54
|
"clean:svelte:default": "rm -rf build .svelte-kit",
|
|
@@ -58,26 +64,26 @@
|
|
|
58
64
|
"compile:svelte:sync": "svelte-kit sync",
|
|
59
65
|
"compile:svelte:check": "svelte-check --tsconfig ./tsconfig.json",
|
|
60
66
|
"compile:svelte:compile": "vite build",
|
|
61
|
-
"li": "eslint --cache --fix",
|
|
62
67
|
"lint": "npm run build",
|
|
63
68
|
"lint:true": "run-os",
|
|
64
|
-
"lint:true:default": "run-
|
|
65
|
-
"lint:true:windows": "run-
|
|
69
|
+
"lint:true:default": "run-s lint:scope:global:* \"lint:scope:$npm_package_config_language\"",
|
|
70
|
+
"lint:true:windows": "run-s lint:scope:global:* \"lint:scope:%npm_package_config_language%\"",
|
|
66
71
|
"lint:false": "(npm run lint:true) || (echo \"Skipped linting (lint=false)\")",
|
|
67
|
-
"lint:scope:global:configs": "npm run
|
|
68
|
-
"lint:scope:global:code": "npm run
|
|
69
|
-
"lint:scope:ts": "
|
|
70
|
-
"lint:scope:svelte": "npm run
|
|
72
|
+
"lint:scope:global:configs": "npm run linter -- {*,.github/**/*}.{json,jsonc,yml,yaml,js,cjs,mjs,ts,cts,mts}",
|
|
73
|
+
"lint:scope:global:code": "npm run linter -- {src,tests,static,typings}/**/*.{html,js,cjs,mjs,ts,cts,mts}",
|
|
74
|
+
"lint:scope:ts": "echo \"Linting `ts`\"",
|
|
75
|
+
"lint:scope:svelte": "npm run linter -- {src,tests,static}/**/*.svelte",
|
|
76
|
+
"linter": "eslint --cache --fix",
|
|
71
77
|
"postbuild": "echo \"Build (+lint) complete.\"",
|
|
72
78
|
"pretest": "npm run build",
|
|
73
79
|
"test": "",
|
|
74
80
|
"test:ts": "mocha",
|
|
75
81
|
"test:svelte": "",
|
|
76
82
|
"start": "run-os",
|
|
77
|
-
"start:default": "npm run
|
|
78
|
-
"start:windows": "npm run
|
|
79
|
-
"
|
|
80
|
-
"
|
|
83
|
+
"start:default": "npm run start+os:$npm_package_config_language",
|
|
84
|
+
"start:windows": "npm run start+os:%npm_package_config_language%",
|
|
85
|
+
"start+os:ts": "node .",
|
|
86
|
+
"start+os:svelte": "vite preview",
|
|
81
87
|
"prestart": "npm test",
|
|
82
88
|
"prepublishOnly": "npm test",
|
|
83
89
|
"postpublish": "run-os",
|