@eslinted/defaults 6.0.0 → 6.1.1

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.
@@ -1,5 +1,5 @@
1
1
  export default [
2
2
  "*.html",
3
- "{,code/*/}{src,tests,static,typings,public}{,/**/}*.html",
3
+ "{,code/*/}{src,tests,static,typings,public,tools}{,/**/}*.html",
4
4
  ];
5
5
  //# sourceMappingURL=html.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"html.js","sourceRoot":"","sources":["../../../src/files/scopes/html.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,QAAQ;IACR,0DAA0D;CAC3D,CAAC"}
1
+ {"version":3,"file":"html.js","sourceRoot":"","sources":["../../../src/files/scopes/html.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,QAAQ;IACR,gEAAgE;CACjE,CAAC"}
@@ -1,5 +1,5 @@
1
1
  export default [
2
2
  "*.{c,m,}js",
3
- "{,code/*/}{src,tests,static,typings,public}/**/*.{c,m,}js",
3
+ "{,code/*/}{src,tests,static,typings,public,tools}/**/*.{c,m,}js",
4
4
  ];
5
5
  //# sourceMappingURL=js.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"js.js","sourceRoot":"","sources":["../../../src/files/scopes/js.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,YAAY;IACZ,2DAA2D;CAC5D,CAAC"}
1
+ {"version":3,"file":"js.js","sourceRoot":"","sources":["../../../src/files/scopes/js.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,YAAY;IACZ,iEAAiE;CAClE,CAAC"}
@@ -1,5 +1,5 @@
1
1
  export default [
2
2
  "*.json",
3
- "{,code/*/}{src,tests,static,typings,public}/**/*.json",
3
+ "{,code/*/}{src,tests,static,typings,public,tools}/**/*.json",
4
4
  ];
5
5
  //# sourceMappingURL=json.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"json.js","sourceRoot":"","sources":["../../../src/files/scopes/json.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,QAAQ;IACR,uDAAuD;CACxD,CAAC"}
1
+ {"version":3,"file":"json.js","sourceRoot":"","sources":["../../../src/files/scopes/json.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,QAAQ;IACR,6DAA6D;CAC9D,CAAC"}
@@ -1,6 +1,6 @@
1
1
  export default [
2
2
  "{*.jsonc,tsconfig.json}",
3
- "{,code/*/}{src,tests,static,typings,public}/**/{*.jsonc,tsconfig.json}",
3
+ "{,code/*/}{src,tests,static,typings,public,tools}/**/{*.jsonc,tsconfig.json}",
4
4
  "{.vscode,code/*/.vscode}/**/*.{json,jsonc,code-snippets}",
5
5
  ];
6
6
  //# sourceMappingURL=jsonc.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"jsonc.js","sourceRoot":"","sources":["../../../src/files/scopes/jsonc.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,yBAAyB;IACzB,wEAAwE;IACxE,0DAA0D;CAC3D,CAAC"}
1
+ {"version":3,"file":"jsonc.js","sourceRoot":"","sources":["../../../src/files/scopes/jsonc.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,yBAAyB;IACzB,8EAA8E;IAC9E,0DAA0D;CAC3D,CAAC"}
@@ -1,5 +1,5 @@
1
1
  export default [
2
2
  "*.{spec,test}.{c,m,}ts",
3
- "{,code/*/}{src,tests,static,typings,public}/**/*.{spec,test}.{c,m,}ts",
3
+ "{,code/*/}{src,tests,static,typings,public,tools}/**/*.{spec,test}.{c,m,}ts",
4
4
  ];
5
5
  //# sourceMappingURL=mocha.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mocha.js","sourceRoot":"","sources":["../../../src/files/scopes/mocha.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,wBAAwB;IACxB,uEAAuE;CACxE,CAAC"}
1
+ {"version":3,"file":"mocha.js","sourceRoot":"","sources":["../../../src/files/scopes/mocha.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,wBAAwB;IACxB,6EAA6E;CAC9E,CAAC"}
@@ -1,5 +1,5 @@
1
1
  export default [
2
2
  "*.svelte",
3
- "{,code/*/}{src,tests,static,typings,public}/**/*.svelte",
3
+ "{,code/*/}{src,tests,static,typings,public,tools}/**/*.svelte",
4
4
  ];
5
5
  //# sourceMappingURL=svelte.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"svelte.js","sourceRoot":"","sources":["../../../src/files/scopes/svelte.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,UAAU;IACV,yDAAyD;CAC1D,CAAC"}
1
+ {"version":3,"file":"svelte.js","sourceRoot":"","sources":["../../../src/files/scopes/svelte.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,UAAU;IACV,+DAA+D;CAChE,CAAC"}
@@ -1,5 +1,5 @@
1
1
  export default [
2
2
  "*.{c,m,}ts",
3
- "{,code/*/}{src,tests,static,typings,public}/**/*.{c,m,}ts",
3
+ "{,code/*/}{src,tests,static,typings,public,tools}/**/*.{c,m,}ts",
4
4
  ];
5
5
  //# sourceMappingURL=ts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ts.js","sourceRoot":"","sources":["../../../src/files/scopes/ts.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,YAAY;IACZ,2DAA2D;CAC5D,CAAC"}
1
+ {"version":3,"file":"ts.js","sourceRoot":"","sources":["../../../src/files/scopes/ts.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,YAAY;IACZ,iEAAiE;CAClE,CAAC"}
@@ -1,5 +1,5 @@
1
1
  export default [
2
2
  "*.y{a,}ml",
3
- "{,code/*/}{src,tests,static,typings,public,.github}/**/*.y{a,}ml",
3
+ "{,code/*/}{src,tests,static,typings,public,tools,.github}/**/*.y{a,}ml",
4
4
  ];
5
5
  //# sourceMappingURL=yml.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"yml.js","sourceRoot":"","sources":["../../../src/files/scopes/yml.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,WAAW;IACX,kEAAkE;CACnE,CAAC"}
1
+ {"version":3,"file":"yml.js","sourceRoot":"","sources":["../../../src/files/scopes/yml.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,WAAW;IACX,wEAAwE;CACzE,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
- "$template": "22.13.8",
2
+ "$template": "22.13.9",
3
3
  "name": "@eslinted/defaults",
4
- "version": "6.0.0",
4
+ "version": "6.1.1",
5
5
  "description": "Default scopes for `linted`.",
6
6
  "repository": "github:jimmy-zhening-luo/linted-defaults",
7
7
  "license": "MIT",
@@ -33,45 +33,48 @@
33
33
  },
34
34
  "scripts": {
35
35
  "build": "run-os",
36
- "build:default": "npm run rebuild+lint+test -- $npm_package_config_language $npm_package_config_lint default",
37
- "build:windows": "npm run rebuild+lint+test -- %npm_package_config_language% %npm_package_config_lint% windows",
38
- "rebuild+lint+test": "run-s \"clean:{1}:{3}\" \"compile:{1}:*\" \"lint:{2}\" \"test:{1}\" --",
39
- "clean:ts:default": "rm -rf dist",
40
- "clean:ts:windows": "cmd /c if exist dist rmdir /s /q dist",
41
- "clean:svelte:default": "rm -rf build .svelte-kit",
42
- "clean:svelte:windows": "run-s clean:svelte:windows:*",
43
- "clean:svelte:windows:build": "cmd /c if exist build rmdir /s /q build",
44
- "clean:svelte:windows:kit": "cmd /c if exist .svelte-kit rmdir /s /q .svelte-kit",
45
- "compile:ts:compile": "tsc",
46
- "compile:ts:rewrite": "run-os",
47
- "compile:ts:rewrite:default": "npm run compile:ts:rewrite+condition:$npm_package_config_rewrite",
48
- "compile:ts:rewrite:windows": "npm run compile:ts:rewrite+condition:%npm_package_config_rewrite%",
49
- "compile:ts:rewrite+condition:true": "ts-add-js-extension --dir=dist",
50
- "compile:ts:rewrite+condition:false": "echo \"Skip rewrite TypeScript imports (fix=false)\"",
51
- "compile:svelte:sync": "svelte-kit sync",
52
- "compile:svelte:check": "svelte-check --tsconfig ./tsconfig.json",
53
- "compile:svelte:compile": "vite build",
54
- "lint": "npm run build",
55
- "lint:true": "run-os",
56
- "lint:true:default": "run-s lint:scope:global:* \"lint:scope:$npm_package_config_language\"",
57
- "lint:true:windows": "run-s lint:scope:global:* \"lint:scope:%npm_package_config_language%\"",
58
- "lint:false": "(npm run lint:true) || (echo \"Skipped linting (lint=false)\")",
59
- "lint:scope:global:configs": "npm run linter -- {*,.github/**/*,.vscode/**/*}.{js,cjs,mjs,ts,cts,mts,html,json,jsonc,code-snippets,yml,yaml}",
60
- "lint:scope:global:code": "npm run linter -- {src,tests,static,typings,public}/**/*.{js,cjs,mjs,ts,cts,mts,html,json,jsonc,yml,yaml}",
61
- "lint:scope:ts": "echo \"Linting `ts`\"",
62
- "lint:scope:svelte": "npm run linter -- {src,tests,static}/**/*.svelte",
36
+ "build:default": "npm run make -- $npm_package_config_language $npm_package_config_lint default",
37
+ "build:windows": "npm run make -- %npm_package_config_language% %npm_package_config_lint% windows",
38
+ "postbuild": "echo \"Clean built.\"",
39
+ "make": "run-s \"make:clean-{1}+{3}\" \"make:build-{1}:*\" \"make:lint+{2}\" --",
40
+ "make:clean-ts+default": "rm -rf dist",
41
+ "make:clean-ts+windows": "cmd /c if exist dist rmdir /s /q dist",
42
+ "make:clean-svelte+default": "rm -rf build .svelte-kit",
43
+ "make:clean-svelte+windows": "run-p make:clean-svelte+windows:*",
44
+ "make:clean-svelte+windows:build": "cmd /c if exist build rmdir /s /q build",
45
+ "make:clean-svelte+windows:kit": "cmd /c if exist .svelte-kit rmdir /s /q .svelte-kit",
46
+ "make:build-ts:compile": "tsc",
47
+ "make:build-ts:rewrite": "run-os",
48
+ "make:build-ts:rewrite:default": "run-s make:build-ts:rewrite:-$npm_package_config_rewrite",
49
+ "make:build-ts:rewrite:windows": "run-s make:build-ts:rewrite:-%npm_package_config_rewrite%",
50
+ "make:build-ts:rewrite:-true": "ts-add-js-extension --dir=dist",
51
+ "make:build-ts:rewrite:-false": "echo \"Skip rewrite TypeScript import.\"",
52
+ "make:build-svelte:sync": "svelte-kit sync",
53
+ "make:build-svelte:check": "svelte-check --tsconfig ./tsconfig.json",
54
+ "make:build-svelte:compile": "vite build",
55
+ "make:lint+false": "(run-s make:lint+true) || (echo \"Skip lint (optional).\")",
56
+ "make:lint+true": "run-os",
57
+ "make:lint+true:default": "(run-s lint-) && (npm run --if-present lint-$npm_package_config_language)",
58
+ "make:lint+true:windows": "(run-s lint-) && (npm run --if-present lint-%npm_package_config_language%)",
59
+ "lint": "run-s build",
60
+ "lint-": "npm run linter -- {,src/**/,tests/**/,static/**/,typings/**/,public/**/,tools/**/,.github/**/,.vscode/**/}*.{js,cjs,mjs,ts,cts,mts,html,json,jsonc,code-snippets,yml,yaml}",
61
+ "lint-svelte": "npm run linter -- {,src/**/,tests/**/,static/**/,typings/**/,public/**/,tools/**/,.github/**/,.vscode/**/}*",
63
62
  "linter": "eslint --cache --fix",
64
- "postbuild": "echo \"Build (+lint) complete.\"",
65
- "pretest": "npm run build",
66
- "test": "",
67
- "test:ts": "mocha",
68
- "test:svelte": "",
69
- "start": "run-os",
70
- "start:default": "npm run start+os:$npm_package_config_language",
71
- "start:windows": "npm run start+os:%npm_package_config_language%",
72
- "start+os:ts": "node .",
73
- "start+os:svelte": "vite preview",
63
+ "pretest": "run-s build",
64
+ "test": "run-os",
65
+ "test:default": "run-s test-$npm_package_config_language",
66
+ "test:windows": "run-s test-%npm_package_config_language%",
67
+ "test-ts": "mocha",
68
+ "test-svelte": "",
74
69
  "prestart": "npm test",
70
+ "start": "run-os",
71
+ "start:default": "run-s start-$npm_package_config_language",
72
+ "start:windows": "run-s start-%npm_package_config_language%",
73
+ "start-ts": "node .",
74
+ "start-svelte": "vite preview",
75
+ "postinstall": "run-os",
76
+ "postinstall:default": "rm -rf .eslintcache",
77
+ "postinstall:windows": "cmd /c if exist .eslintcache del /f /q .eslintcache",
75
78
  "prepublishOnly": "npm test",
76
79
  "postpublish": "run-os",
77
80
  "postpublish:default": "if [ \"${npm_package_version#*-}\" = \"${npm_package_version}\" ]; then npm dist-tag add \"$npm_package_name@$npm_package_version\" latest; fi",
@@ -1,4 +1,4 @@
1
1
  export default [
2
2
  "*.html",
3
- "{,code/*/}{src,tests,static,typings,public}{,/**/}*.html",
3
+ "{,code/*/}{src,tests,static,typings,public,tools}{,/**/}*.html",
4
4
  ];
@@ -1,4 +1,4 @@
1
1
  export default [
2
2
  "*.{c,m,}js",
3
- "{,code/*/}{src,tests,static,typings,public}/**/*.{c,m,}js",
3
+ "{,code/*/}{src,tests,static,typings,public,tools}/**/*.{c,m,}js",
4
4
  ];
@@ -1,4 +1,4 @@
1
1
  export default [
2
2
  "*.json",
3
- "{,code/*/}{src,tests,static,typings,public}/**/*.json",
3
+ "{,code/*/}{src,tests,static,typings,public,tools}/**/*.json",
4
4
  ];
@@ -1,5 +1,5 @@
1
1
  export default [
2
2
  "{*.jsonc,tsconfig.json}",
3
- "{,code/*/}{src,tests,static,typings,public}/**/{*.jsonc,tsconfig.json}",
3
+ "{,code/*/}{src,tests,static,typings,public,tools}/**/{*.jsonc,tsconfig.json}",
4
4
  "{.vscode,code/*/.vscode}/**/*.{json,jsonc,code-snippets}",
5
5
  ];
@@ -1,4 +1,4 @@
1
1
  export default [
2
2
  "*.{spec,test}.{c,m,}ts",
3
- "{,code/*/}{src,tests,static,typings,public}/**/*.{spec,test}.{c,m,}ts",
3
+ "{,code/*/}{src,tests,static,typings,public,tools}/**/*.{spec,test}.{c,m,}ts",
4
4
  ];
@@ -1,4 +1,4 @@
1
1
  export default [
2
2
  "*.svelte",
3
- "{,code/*/}{src,tests,static,typings,public}/**/*.svelte",
3
+ "{,code/*/}{src,tests,static,typings,public,tools}/**/*.svelte",
4
4
  ];
@@ -1,4 +1,4 @@
1
1
  export default [
2
2
  "*.{c,m,}ts",
3
- "{,code/*/}{src,tests,static,typings,public}/**/*.{c,m,}ts",
3
+ "{,code/*/}{src,tests,static,typings,public,tools}/**/*.{c,m,}ts",
4
4
  ];
@@ -1,4 +1,4 @@
1
1
  export default [
2
2
  "*.y{a,}ml",
3
- "{,code/*/}{src,tests,static,typings,public,.github}/**/*.y{a,}ml",
3
+ "{,code/*/}{src,tests,static,typings,public,tools,.github}/**/*.y{a,}ml",
4
4
  ];