linted 19.3.0 → 19.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. package/.github/workflows/RELEASE.yml +36 -36
  2. package/.github/workflows/rc.yml +36 -36
  3. package/.markdownlint.jsonc +124 -124
  4. package/LICENSE +21 -21
  5. package/README.md +387 -387
  6. package/SECURITY.md +9 -9
  7. package/dist/_strings/level.spec.d.ts +2 -0
  8. package/dist/_strings/level.spec.d.ts.map +1 -0
  9. package/dist/_strings/level.spec.js +31 -0
  10. package/dist/_strings/level.spec.js.map +1 -0
  11. package/dist/imports/index.d.ts.map +1 -1
  12. package/dist/imports/plugins.d.ts.map +1 -1
  13. package/dist/index.spec.d.ts +1 -0
  14. package/dist/index.spec.js +10 -1
  15. package/dist/index.spec.js.map +1 -1
  16. package/eslint.config.js +3 -3
  17. package/package.json +140 -140
  18. package/src/_strings/id.ts +18 -18
  19. package/src/_strings/index.ts +6 -6
  20. package/src/_strings/level.spec.ts +31 -0
  21. package/src/_strings/level.ts +6 -6
  22. package/src/_strings/state.ts +58 -58
  23. package/src/files/html.ts +1 -1
  24. package/src/files/index.ts +19 -19
  25. package/src/files/js.ts +4 -4
  26. package/src/files/json.ts +1 -1
  27. package/src/files/jsonc.ts +4 -4
  28. package/src/files/mocha.ts +4 -4
  29. package/src/files/mochaJs.ts +4 -4
  30. package/src/files/svelte.ts +1 -1
  31. package/src/files/ts.ts +1 -1
  32. package/src/files/yml.ts +1 -1
  33. package/src/imports/index.ts +7 -7
  34. package/src/imports/parsers.ts +13 -13
  35. package/src/imports/plugins.ts +17 -17
  36. package/src/index.spec.ts +11 -0
  37. package/src/index.ts +22 -22
  38. package/src/rules/html/enable.ts +120 -120
  39. package/src/rules/html/index.ts +3 -3
  40. package/src/rules/index.ts +19 -19
  41. package/src/rules/js/enable.ts +524 -524
  42. package/src/rules/js/index.ts +4 -4
  43. package/src/rules/js/stylistic.ts +608 -608
  44. package/src/rules/json/enable.ts +33 -33
  45. package/src/rules/json/enable_x.ts +95 -95
  46. package/src/rules/json/index.ts +4 -4
  47. package/src/rules/jsonc/index.ts +4 -4
  48. package/src/rules/jsonc/override.ts +16 -16
  49. package/src/rules/mocha/base.ts +7 -7
  50. package/src/rules/mocha/disable.ts +8 -8
  51. package/src/rules/mocha/enable.ts +53 -53
  52. package/src/rules/mocha/index.ts +7 -7
  53. package/src/rules/mochaJs/index.ts +7 -7
  54. package/src/rules/svelte/disable.ts +9 -9
  55. package/src/rules/svelte/disable_js.ts +11 -11
  56. package/src/rules/svelte/disable_ts.ts +9 -9
  57. package/src/rules/svelte/enable.ts +230 -230
  58. package/src/rules/svelte/enable_x.ts +20 -20
  59. package/src/rules/svelte/index.ts +15 -15
  60. package/src/rules/ts/disable.ts +22 -22
  61. package/src/rules/ts/disable_x.ts +32 -32
  62. package/src/rules/ts/enable.ts +550 -550
  63. package/src/rules/ts/enable_x.ts +115 -115
  64. package/src/rules/ts/index.ts +13 -13
  65. package/src/rules/yml/enable.ts +64 -64
  66. package/src/rules/yml/enable_x.ts +68 -68
  67. package/src/rules/yml/index.ts +4 -4
  68. package/tsconfig.json +163 -163
  69. package/typings/mocha.d.ts +3 -3
package/SECURITY.md CHANGED
@@ -1,9 +1,9 @@
1
- # Security Policy
2
-
3
- ## Reporting a Vulnerability
4
-
5
- This repository participates in GitHub private vulnerability reporting.
6
-
7
- [__⚑ Report Vulnerability__](./../../security/advisories/new)
8
-
9
- Thank you for your dedication to safety.
1
+ # Security Policy
2
+
3
+ ## Reporting a Vulnerability
4
+
5
+ This repository participates in GitHub private vulnerability reporting.
6
+
7
+ [__⚑ Report Vulnerability__](./../../security/advisories/new)
8
+
9
+ Thank you for your dedication to safety.
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=level.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"level.spec.d.ts","sourceRoot":"","sources":["../../src/_strings/level.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
1
+ import { expect } from "chai";
2
+ import * as level from "./level.js";
3
+ describe("Strings:Level", function () {
4
+ describe("shape", function () {
5
+ it("is module", function () {
6
+ expect(level)
7
+ .a("module");
8
+ });
9
+ });
10
+ describe("count", function () {
11
+ it("is 3", function () {
12
+ expect(Object.keys(level))
13
+ .lengthOf(3);
14
+ });
15
+ });
16
+ describe("unique count", function () {
17
+ it("is 3", function () {
18
+ expect(new Map(Object.entries(level)))
19
+ .lengthOf(3);
20
+ });
21
+ });
22
+ describe("values", function () {
23
+ it("are: error, warn, off", function () {
24
+ expect(new Map(Object.entries(level)))
25
+ .includes("error")
26
+ .and.includes("warn")
27
+ .and.includes("off");
28
+ });
29
+ });
30
+ });
31
+ //# sourceMappingURL=level.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"level.spec.js","sourceRoot":"","sources":["../../src/_strings/level.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAEjC,QAAQ,CAAC,eAAe,EAAE;IACxB,QAAQ,CAAC,OAAO,EAAE;QAChB,EAAE,CAAC,WAAW,EAAE;YACd,MAAM,CAAC,KAAK,CAAC;iBACV,CAAC,CAAC,QAAQ,CAAC,CAAC;QACjB,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IACH,QAAQ,CAAC,OAAO,EAAE;QAChB,EAAE,CAAC,MAAM,EAAE;YACT,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;iBACvB,QAAQ,CAAC,CAAC,CAAC,CAAC;QACjB,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IACH,QAAQ,CAAC,cAAc,EAAE;QACvB,EAAE,CAAC,MAAM,EAAE;YACT,MAAM,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;iBACnC,QAAQ,CAAC,CAAC,CAAC,CAAC;QACjB,CAAC,CAAC,CAAC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,2 @@
1
+ export {};
1
2
  //# sourceMappingURL=index.spec.d.ts.map
@@ -1,2 +1,11 @@
1
- "use strict";
1
+ import { expect } from "chai";
2
+ import core from "./index.js";
3
+ describe("Core", function () {
4
+ describe("shape", function () {
5
+ it("is function", function () {
6
+ expect(core)
7
+ .a("function");
8
+ });
9
+ });
10
+ });
2
11
  //# sourceMappingURL=index.spec.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../src/index.spec.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../src/index.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,IAAI,MAAM,IAAI,CAAC;AAEtB,QAAQ,CAAC,MAAM,EAAE;IACf,QAAQ,CAAC,OAAO,EAAE;QAChB,EAAE,CAAC,aAAa,EAAE;YAChB,MAAM,CAAC,IAAI,CAAC;iBACT,CAAC,CAAC,UAAU,CAAC,CAAC;QACnB,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
package/eslint.config.js CHANGED
@@ -1,3 +1,3 @@
1
- import linted from "linted";
2
-
3
- export default linted();
1
+ import linted from "linted";
2
+
3
+ export default linted();
package/package.json CHANGED
@@ -1,140 +1,140 @@
1
- {
2
- "_schemaVersion": "22.10.0",
3
- "name": "linted",
4
- "version": "19.3.0",
5
- "description": "ESLint mono-plugin bundler with strict, opinionated defaults for (Stylistic) JavaScript, TypeScript, Svelte, HTML, Tailwind/CSS, JSON, JSONC, YAML, and Mocha.",
6
- "keywords": [
7
- "eslint",
8
- "eslint-config",
9
- "eslint-plugin",
10
- "linter",
11
- "formatter",
12
- "typescript",
13
- "javascript",
14
- "stylistic",
15
- "svelte",
16
- "sveltekit",
17
- "html",
18
- "css",
19
- "mocha",
20
- "tailwindcss",
21
- "json",
22
- "jsonc",
23
- "yaml"
24
- ],
25
- "repository": "github:jimmy-zhening-luo/linted",
26
- "homepage": "https://github.com/jimmy-zhening-luo/linted#readme",
27
- "bugs": "https://github.com/jimmy-zhening-luo/linted/issues",
28
- "license": "MIT",
29
- "private": false,
30
- "publishConfig": {
31
- "access": "public"
32
- },
33
- "type": "module",
34
- "main": "dist/index.js",
35
- "types": "dist/index.d.ts",
36
- "config": {
37
- "language": "ts",
38
- "fix": "true",
39
- "lint": "false"
40
- },
41
- "engineStrict": true,
42
- "engines": {
43
- "node": ">=22.10.0",
44
- "npm": ">=10.9.0"
45
- },
46
- "peerDependencies": {
47
- "eslint": "~9.13.0",
48
- "mocha": "^10.8.1",
49
- "svelte": "^5.1.4",
50
- "typescript": ">=5.6.3"
51
- },
52
- "peerDependenciesMeta": {
53
- "mocha": {
54
- "optional": true
55
- },
56
- "svelte": {
57
- "optional": true
58
- },
59
- "typescript": {
60
- "optional": true
61
- }
62
- },
63
- "dependencies": {
64
- "@eslinted/core": "5.1.1",
65
- "@html-eslint/eslint-plugin": "0.27.0",
66
- "@html-eslint/parser": "0.27.0",
67
- "@stylistic/eslint-plugin": "2.9.0",
68
- "@typescript-eslint/eslint-plugin": "8.12.2",
69
- "@typescript-eslint/parser": "8.12.2",
70
- "eslint-plugin-jsonc": "2.16.0",
71
- "eslint-plugin-mocha": "10.5.0",
72
- "eslint-plugin-svelte": "2.46.0",
73
- "eslint-plugin-yml": "1.14.0",
74
- "jsonc-eslint-parser": "2.4.0",
75
- "svelte": "^5.1.4",
76
- "svelte-eslint-parser": "0.43.0",
77
- "yaml-eslint-parser": "1.2.3"
78
- },
79
- "devDependencies": {
80
- "@eslint/config-inspector": "^0.5.5",
81
- "@types/chai": "^5.0.1",
82
- "@types/mocha": "^10.0.9",
83
- "chai": "^5.1.2",
84
- "mocha": "^10.8.1",
85
- "npm-run-all": "^4.1.5",
86
- "run-script-os": "^1.1.6",
87
- "ts-add-js-extension": "^1.6.4",
88
- "typescript": "^5.6.3"
89
- },
90
- "scripts": {
91
- "build": "run-os",
92
- "build:default": "npm run rebuild -- $npm_package_config_language $npm_package_config_fix $npm_package_config_lint default",
93
- "build:windows": "npm run rebuild -- %npm_package_config_language% %npm_package_config_fix% %npm_package_config_lint% windows",
94
- "rebuild": "run-s \"clean:{1}:{4}\" \"compile:{1}:*\" \"fix:{2} -- {1}\" \"lint:{3}\" \"test:{1}\" --",
95
- "clean:ts:default": "rm -rf dist",
96
- "clean:ts:windows": "cmd /c if exist dist rmdir /s /q dist",
97
- "clean:svelte:default": "rm -rf build .svelte-kit",
98
- "clean:svelte:windows": "run-s clean:svelte:windows:*",
99
- "clean:svelte:windows:build": "cmd /c if exist build rmdir /s /q build",
100
- "clean:svelte:windows:kit": "cmd /c if exist .svelte-kit rmdir /s /q .svelte-kit",
101
- "compile:ts:compile": "tsc",
102
- "compile:svelte:sync": "svelte-kit sync",
103
- "compile:svelte:check": "svelte-check --tsconfig ./tsconfig.json",
104
- "compile:svelte:compile": "vite build",
105
- "fix:true": "run-s \"fix:dist:{1}\" --",
106
- "fix:false": "echo \"Fix skipped (fix=false)\"",
107
- "fix:dist:ts": "ts-add-js-extension --dir=dist",
108
- "fix:dist:svelte": "echo \"Fix skipped for Svelte (handled by SvelteKit)\"",
109
- "li": "eslint --cache --fix",
110
- "lint": "npm run build",
111
- "lint:true": "run-os",
112
- "lint:true:default": "run-s lint:scope:global:* \"lint:scope:$npm_package_config_language\"",
113
- "lint:true:windows": "run-s lint:scope:global:* \"lint:scope:%npm_package_config_language%\"",
114
- "lint:false": "(npm run lint:true) || (echo \"Skipped linting (lint=false)\")",
115
- "lint:scope:global:configs": "npm run li -- {*,.github/**/*}.{json,jsonc,yml,yaml,js,cjs,mjs,ts,cts,mts}",
116
- "lint:scope:global:code": "npm run li -- {src,tests,static,typings}/**/*.{html,js,cjs,mjs,ts,cts,mts}",
117
- "lint:scope:ts": "exit 0",
118
- "lint:scope:svelte": "npm run li -- {src,tests,static}/**/*.svelte",
119
- "postbuild": "echo \"Build (+lint) complete.\"",
120
- "pretest": "npm run build",
121
- "test": "",
122
- "test:ts": "mocha",
123
- "test:svelte": "",
124
- "start": "run-os",
125
- "start:default": "npm run starter:$npm_package_config_language",
126
- "start:windows": "npm run starter:%npm_package_config_language%",
127
- "starter:ts": "node .",
128
- "starter:svelte": "vite preview",
129
- "prestart": "npm test",
130
- "prepublishOnly": "npm test",
131
- "predeploy": "npm test",
132
- "deploy": ""
133
- },
134
- "mocha": {
135
- "spec": [
136
- "dist/**/*.spec.js"
137
- ]
138
- },
139
- "author": "Jimmy Zhening Luo <1450044+jimmy-zhening-luo@users.noreply.github.com> (https://jimm.my/)"
140
- }
1
+ {
2
+ "_schemaVersion": "22.10.0",
3
+ "name": "linted",
4
+ "version": "19.3.1",
5
+ "description": "ESLint mono-plugin bundler with strict, opinionated defaults for (Stylistic) JavaScript, TypeScript, Svelte, HTML, Tailwind/CSS, JSON, JSONC, YAML, and Mocha.",
6
+ "keywords": [
7
+ "eslint",
8
+ "eslint-config",
9
+ "eslint-plugin",
10
+ "linter",
11
+ "formatter",
12
+ "typescript",
13
+ "javascript",
14
+ "stylistic",
15
+ "svelte",
16
+ "sveltekit",
17
+ "html",
18
+ "css",
19
+ "mocha",
20
+ "tailwindcss",
21
+ "json",
22
+ "jsonc",
23
+ "yaml"
24
+ ],
25
+ "repository": "github:jimmy-zhening-luo/linted",
26
+ "homepage": "https://github.com/jimmy-zhening-luo/linted#readme",
27
+ "bugs": "https://github.com/jimmy-zhening-luo/linted/issues",
28
+ "license": "MIT",
29
+ "private": false,
30
+ "publishConfig": {
31
+ "access": "public"
32
+ },
33
+ "type": "module",
34
+ "main": "dist/index.js",
35
+ "types": "dist/index.d.ts",
36
+ "config": {
37
+ "language": "ts",
38
+ "fix": "true",
39
+ "lint": "false"
40
+ },
41
+ "engineStrict": true,
42
+ "engines": {
43
+ "node": ">=22.10.0",
44
+ "npm": ">=10.9.0"
45
+ },
46
+ "peerDependencies": {
47
+ "eslint": "~9.13.0",
48
+ "mocha": "^10.8.1",
49
+ "svelte": "^5.1.4",
50
+ "typescript": ">=5.6.3"
51
+ },
52
+ "peerDependenciesMeta": {
53
+ "mocha": {
54
+ "optional": true
55
+ },
56
+ "svelte": {
57
+ "optional": true
58
+ },
59
+ "typescript": {
60
+ "optional": true
61
+ }
62
+ },
63
+ "dependencies": {
64
+ "@eslinted/core": "5.1.3",
65
+ "@html-eslint/eslint-plugin": "0.27.0",
66
+ "@html-eslint/parser": "0.27.0",
67
+ "@stylistic/eslint-plugin": "2.9.0",
68
+ "@typescript-eslint/eslint-plugin": "8.12.2",
69
+ "@typescript-eslint/parser": "8.12.2",
70
+ "eslint-plugin-jsonc": "2.16.0",
71
+ "eslint-plugin-mocha": "10.5.0",
72
+ "eslint-plugin-svelte": "2.46.0",
73
+ "eslint-plugin-yml": "1.14.0",
74
+ "jsonc-eslint-parser": "2.4.0",
75
+ "svelte": "^5.1.4",
76
+ "svelte-eslint-parser": "0.43.0",
77
+ "yaml-eslint-parser": "1.2.3"
78
+ },
79
+ "devDependencies": {
80
+ "@eslint/config-inspector": "^0.5.5",
81
+ "@types/chai": "^5.0.1",
82
+ "@types/mocha": "^10.0.9",
83
+ "chai": "^5.1.2",
84
+ "mocha": "^10.8.1",
85
+ "npm-run-all": "^4.1.5",
86
+ "run-script-os": "^1.1.6",
87
+ "ts-add-js-extension": "^1.6.4",
88
+ "typescript": "^5.6.3"
89
+ },
90
+ "scripts": {
91
+ "build": "run-os",
92
+ "build:default": "npm run rebuild -- $npm_package_config_language $npm_package_config_fix $npm_package_config_lint default",
93
+ "build:windows": "npm run rebuild -- %npm_package_config_language% %npm_package_config_fix% %npm_package_config_lint% windows",
94
+ "rebuild": "run-s \"clean:{1}:{4}\" \"compile:{1}:*\" \"fix:{2} -- {1}\" \"lint:{3}\" \"test:{1}\" --",
95
+ "clean:ts:default": "rm -rf dist",
96
+ "clean:ts:windows": "cmd /c if exist dist rmdir /s /q dist",
97
+ "clean:svelte:default": "rm -rf build .svelte-kit",
98
+ "clean:svelte:windows": "run-s clean:svelte:windows:*",
99
+ "clean:svelte:windows:build": "cmd /c if exist build rmdir /s /q build",
100
+ "clean:svelte:windows:kit": "cmd /c if exist .svelte-kit rmdir /s /q .svelte-kit",
101
+ "compile:ts:compile": "tsc",
102
+ "compile:svelte:sync": "svelte-kit sync",
103
+ "compile:svelte:check": "svelte-check --tsconfig ./tsconfig.json",
104
+ "compile:svelte:compile": "vite build",
105
+ "fix:true": "run-s \"fix:dist:{1}\" --",
106
+ "fix:false": "echo \"Fix skipped (fix=false)\"",
107
+ "fix:dist:ts": "ts-add-js-extension --dir=dist",
108
+ "fix:dist:svelte": "echo \"Fix skipped for Svelte (handled by SvelteKit)\"",
109
+ "li": "eslint --cache --fix",
110
+ "lint": "npm run build",
111
+ "lint:true": "run-os",
112
+ "lint:true:default": "run-s lint:scope:global:* \"lint:scope:$npm_package_config_language\"",
113
+ "lint:true:windows": "run-s lint:scope:global:* \"lint:scope:%npm_package_config_language%\"",
114
+ "lint:false": "(npm run lint:true) || (echo \"Skipped linting (lint=false)\")",
115
+ "lint:scope:global:configs": "npm run li -- {*,.github/**/*}.{json,jsonc,yml,yaml,js,cjs,mjs,ts,cts,mts}",
116
+ "lint:scope:global:code": "npm run li -- {src,tests,static,typings}/**/*.{html,js,cjs,mjs,ts,cts,mts}",
117
+ "lint:scope:ts": "exit 0",
118
+ "lint:scope:svelte": "npm run li -- {src,tests,static}/**/*.svelte",
119
+ "postbuild": "echo \"Build (+lint) complete.\"",
120
+ "pretest": "npm run build",
121
+ "test": "",
122
+ "test:ts": "mocha",
123
+ "test:svelte": "",
124
+ "start": "run-os",
125
+ "start:default": "npm run starter:$npm_package_config_language",
126
+ "start:windows": "npm run starter:%npm_package_config_language%",
127
+ "starter:ts": "node .",
128
+ "starter:svelte": "vite preview",
129
+ "prestart": "npm test",
130
+ "prepublishOnly": "npm test",
131
+ "predeploy": "npm test",
132
+ "deploy": ""
133
+ },
134
+ "mocha": {
135
+ "spec": [
136
+ "dist/**/*.spec.js"
137
+ ]
138
+ },
139
+ "author": "Jimmy Zhening Luo <1450044+jimmy-zhening-luo@users.noreply.github.com> (https://jimm.my/)"
140
+ }
@@ -1,18 +1,18 @@
1
- const
2
- disable = "disable",
3
- disable_x = "disable-extend",
4
- enable_x = "enable-extend",
5
- enable = "enable",
6
- override = "override",
7
- stylistic = "stylistic",
8
- recommended = "recommended";
9
-
10
- export {
11
- disable,
12
- disable_x,
13
- enable_x,
14
- enable,
15
- override,
16
- stylistic,
17
- recommended,
18
- };
1
+ const
2
+ disable = "disable",
3
+ disable_x = "disable-extend",
4
+ enable_x = "enable-extend",
5
+ enable = "enable",
6
+ override = "override",
7
+ stylistic = "stylistic",
8
+ recommended = "recommended";
9
+
10
+ export {
11
+ disable,
12
+ disable_x,
13
+ enable_x,
14
+ enable,
15
+ override,
16
+ stylistic,
17
+ recommended,
18
+ };
@@ -1,6 +1,6 @@
1
- export * from "./id";
2
- export * from "./level";
3
- export * from "./state";
4
- export * as id from "./id";
5
- export * as state from "./state";
6
- export * as level from "./level";
1
+ export * from "./id";
2
+ export * from "./level";
3
+ export * from "./state";
4
+ export * as id from "./id";
5
+ export * as state from "./state";
6
+ export * as level from "./level";
@@ -0,0 +1,31 @@
1
+ import { expect } from "chai";
2
+ import * as level from "./level";
3
+
4
+ describe("Strings:Level", function () {
5
+ describe("shape", function () {
6
+ it("is module", function () {
7
+ expect(level)
8
+ .a("module");
9
+ });
10
+ });
11
+ describe("count", function () {
12
+ it("is 3", function () {
13
+ expect(Object.keys(level))
14
+ .lengthOf(3);
15
+ });
16
+ });
17
+ describe("unique count", function () {
18
+ it("is 3", function () {
19
+ expect(new Map(Object.entries(level)))
20
+ .lengthOf(3);
21
+ });
22
+ });
23
+ describe("values", function () {
24
+ it("are: error, warn, off", function () {
25
+ expect(new Map(Object.entries(level)))
26
+ .includes("error")
27
+ .and.includes("warn")
28
+ .and.includes("off");
29
+ });
30
+ });
31
+ });
@@ -1,6 +1,6 @@
1
- const
2
- ERROR = "error",
3
- WARN = "warn",
4
- OFF = "off";
5
-
6
- export { ERROR, WARN, OFF };
1
+ const
2
+ ERROR = "error",
3
+ WARN = "warn",
4
+ OFF = "off";
5
+
6
+ export { ERROR, WARN, OFF };
@@ -1,58 +1,58 @@
1
- const
2
- Ignore = "ignore",
3
- Never = "never",
4
- Always = "always",
5
- AlwaysMultiline = "always-multiline",
6
- Multiline = "multiline",
7
- Consistent = "consistent",
8
- Consecutive = "consecutive",
9
- AsNeeded = "as-needed",
10
- Explicit = "explicit",
11
- Allow = "allow",
12
- Strict = "strict",
13
- Any = "any",
14
- All = "all",
15
- Star = "*",
16
- First = "first",
17
- Last = "last",
18
- Before = "before",
19
- After = "after",
20
- Above = "above",
21
- Below = "below",
22
- Beside = "beside",
23
- Inside = "inside",
24
- Outside = "outside",
25
- Single = "single",
26
- Double = "double",
27
- Multi = "multi",
28
- Both = "both";
29
-
30
- export {
31
- Ignore,
32
- Never,
33
- Always,
34
- AlwaysMultiline,
35
- Multiline,
36
- Consistent,
37
- Consecutive,
38
- AsNeeded,
39
- Explicit,
40
- Allow,
41
- Strict,
42
- Any,
43
- All,
44
- Star,
45
- First,
46
- Last,
47
- Before,
48
- After,
49
- Above,
50
- Below,
51
- Beside,
52
- Inside,
53
- Outside,
54
- Single,
55
- Double,
56
- Multi,
57
- Both,
58
- };
1
+ const
2
+ Ignore = "ignore",
3
+ Never = "never",
4
+ Always = "always",
5
+ AlwaysMultiline = "always-multiline",
6
+ Multiline = "multiline",
7
+ Consistent = "consistent",
8
+ Consecutive = "consecutive",
9
+ AsNeeded = "as-needed",
10
+ Explicit = "explicit",
11
+ Allow = "allow",
12
+ Strict = "strict",
13
+ Any = "any",
14
+ All = "all",
15
+ Star = "*",
16
+ First = "first",
17
+ Last = "last",
18
+ Before = "before",
19
+ After = "after",
20
+ Above = "above",
21
+ Below = "below",
22
+ Beside = "beside",
23
+ Inside = "inside",
24
+ Outside = "outside",
25
+ Single = "single",
26
+ Double = "double",
27
+ Multi = "multi",
28
+ Both = "both";
29
+
30
+ export {
31
+ Ignore,
32
+ Never,
33
+ Always,
34
+ AlwaysMultiline,
35
+ Multiline,
36
+ Consistent,
37
+ Consecutive,
38
+ AsNeeded,
39
+ Explicit,
40
+ Allow,
41
+ Strict,
42
+ Any,
43
+ All,
44
+ Star,
45
+ First,
46
+ Last,
47
+ Before,
48
+ After,
49
+ Above,
50
+ Below,
51
+ Beside,
52
+ Inside,
53
+ Outside,
54
+ Single,
55
+ Double,
56
+ Multi,
57
+ Both,
58
+ };
package/src/files/html.ts CHANGED
@@ -1 +1 @@
1
- export default ["{src,tests,static}/**/*.html"];
1
+ export default ["{src,tests,static}/**/*.html"];
@@ -1,19 +1,19 @@
1
- import js from "./js";
2
- import ts from "./ts";
3
- import svelte from "./svelte";
4
- import mocha from "./mocha";
5
- import html from "./html";
6
- import json from "./json";
7
- import jsonc from "./jsonc";
8
- import yml from "./yml";
9
-
10
- export default {
11
- js,
12
- ts,
13
- svelte,
14
- mocha,
15
- html,
16
- json,
17
- jsonc,
18
- yml,
19
- };
1
+ import js from "./js";
2
+ import ts from "./ts";
3
+ import svelte from "./svelte";
4
+ import mocha from "./mocha";
5
+ import html from "./html";
6
+ import json from "./json";
7
+ import jsonc from "./jsonc";
8
+ import yml from "./yml";
9
+
10
+ export default {
11
+ js,
12
+ ts,
13
+ svelte,
14
+ mocha,
15
+ html,
16
+ json,
17
+ jsonc,
18
+ yml,
19
+ };