linted 19.4.3-rc.7 → 19.4.3-rc.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. package/.github/workflows/RELEASE.yml +36 -36
  2. package/.github/workflows/rc.yml +36 -36
  3. package/.markdownlint.jsonc +122 -122
  4. package/LICENSE +21 -21
  5. package/README.md +387 -387
  6. package/SECURITY.md +9 -9
  7. package/dist/imports/index.d.ts.map +1 -1
  8. package/dist/imports/plugins.d.ts.map +1 -1
  9. package/eslint.config.js +3 -3
  10. package/package.json +144 -144
  11. package/src/_strings/id.ts +8 -8
  12. package/src/_strings/index.ts +6 -6
  13. package/src/_strings/level.spec.ts +31 -31
  14. package/src/_strings/level.ts +4 -4
  15. package/src/_strings/state.ts +28 -28
  16. package/src/files/html.ts +1 -1
  17. package/src/files/index.ts +19 -19
  18. package/src/files/js.ts +4 -4
  19. package/src/files/json.ts +1 -1
  20. package/src/files/jsonc.ts +4 -4
  21. package/src/files/mocha.ts +4 -4
  22. package/src/files/mochaJs.ts +4 -4
  23. package/src/files/svelte.ts +1 -1
  24. package/src/files/ts.ts +1 -1
  25. package/src/files/yml.ts +1 -1
  26. package/src/imports/index.ts +7 -7
  27. package/src/imports/parsers.ts +13 -13
  28. package/src/imports/plugins.ts +17 -17
  29. package/src/index.spec.ts +11 -11
  30. package/src/index.ts +22 -22
  31. package/src/rules/html/enable.ts +120 -120
  32. package/src/rules/html/index.ts +3 -3
  33. package/src/rules/index.ts +19 -19
  34. package/src/rules/js/enable.ts +524 -524
  35. package/src/rules/js/index.ts +4 -4
  36. package/src/rules/js/stylistic.ts +611 -611
  37. package/src/rules/json/enable.ts +33 -33
  38. package/src/rules/json/enable_x.ts +95 -95
  39. package/src/rules/json/index.ts +4 -4
  40. package/src/rules/jsonc/index.ts +4 -4
  41. package/src/rules/jsonc/override.ts +16 -16
  42. package/src/rules/mocha/base.ts +7 -7
  43. package/src/rules/mocha/disable.ts +8 -8
  44. package/src/rules/mocha/enable.ts +53 -53
  45. package/src/rules/mocha/index.ts +7 -7
  46. package/src/rules/mochaJs/index.ts +7 -7
  47. package/src/rules/svelte/disable.ts +9 -9
  48. package/src/rules/svelte/disable_js.ts +11 -11
  49. package/src/rules/svelte/disable_ts.ts +9 -9
  50. package/src/rules/svelte/enable.ts +230 -230
  51. package/src/rules/svelte/enable_x.ts +20 -20
  52. package/src/rules/svelte/index.ts +15 -15
  53. package/src/rules/ts/disable.ts +22 -22
  54. package/src/rules/ts/disable_x.ts +32 -32
  55. package/src/rules/ts/enable.ts +550 -550
  56. package/src/rules/ts/enable_x.ts +115 -115
  57. package/src/rules/ts/index.ts +13 -13
  58. package/src/rules/yml/enable.ts +64 -64
  59. package/src/rules/yml/enable_x.ts +68 -68
  60. package/src/rules/yml/index.ts +4 -4
  61. package/tsconfig.json +163 -163
  62. 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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/imports/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAO+2oB,CAAC;mCAA4C,CAAC;yBAAkC,CAAC;;;;;;;;;;;2BA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAv20B,CAAC;+BAAwC,CAAC;qBAA8B,CAAC;;;;;;;;;;;uBAA8V,CAAC;;;;;;qBAA+K,CAAC;+BAAwC,CAAC;qBAA8B,CAAC;;;;;;;;;;;uBAA8V,CAAC;;;;;;;;;;;;;;;;qBAAolB,CAAC;+BAAwC,CAAC;qBAA8B,CAAC;;;;;;;;;;;uBAA8V,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAA0wC,CAAC;+BAAwC,CAAC;qBAA8B,CAAC;;;;;;;;;;;uBAA8V,CAAC;;;;;;;;;;;;;;;;;;;;;;;AATrmM,wBAQW"}
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,144 +1,144 @@
1
- {
2
- "_schemaVersion": "22.10.2",
3
- "name": "linted",
4
- "version": "19.4.3-rc.7",
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
- "tag": "next"
33
- },
34
- "type": "module",
35
- "main": "dist/index.js",
36
- "types": "dist/index.d.ts",
37
- "config": {
38
- "language": "ts",
39
- "fix": "true",
40
- "lint": "false"
41
- },
42
- "engineStrict": true,
43
- "engines": {
44
- "node": ">=22.10.0",
45
- "npm": ">=10.9.0"
46
- },
47
- "peerDependencies": {
48
- "eslint": "~9.13.0",
49
- "mocha": "^10.8.2",
50
- "svelte": "^5.1.9",
51
- "typescript": ">=5.6.3"
52
- },
53
- "peerDependenciesMeta": {
54
- "mocha": {
55
- "optional": true
56
- },
57
- "svelte": {
58
- "optional": true
59
- },
60
- "typescript": {
61
- "optional": true
62
- }
63
- },
64
- "dependencies": {
65
- "@eslinted/core": "10.0.0-rc.0",
66
- "@html-eslint/eslint-plugin": "0.27.0",
67
- "@html-eslint/parser": "0.27.0",
68
- "@stylistic/eslint-plugin": "2.10.0",
69
- "@typescript-eslint/eslint-plugin": "8.12.2",
70
- "@typescript-eslint/parser": "8.12.2",
71
- "eslint-plugin-jsonc": "2.16.0",
72
- "eslint-plugin-mocha": "10.5.0",
73
- "eslint-plugin-svelte": "2.46.0",
74
- "eslint-plugin-yml": "1.15.0",
75
- "jsonc-eslint-parser": "2.4.0",
76
- "svelte": "^5.1.9",
77
- "svelte-eslint-parser": "0.43.0",
78
- "yaml-eslint-parser": "1.2.3"
79
- },
80
- "devDependencies": {
81
- "@eslint/config-inspector": "^0.5.6",
82
- "@types/chai": "^5.0.1",
83
- "@types/mocha": "^10.0.9",
84
- "chai": "^5.1.2",
85
- "mocha": "^10.8.2",
86
- "npm-run-all": "^4.1.5",
87
- "run-script-os": "^1.1.6",
88
- "ts-add-js-extension": "^1.6.4",
89
- "typescript": "^5.6.3"
90
- },
91
- "scripts": {
92
- "build": "run-os",
93
- "build:default": "npm run rebuild -- $npm_package_config_language $npm_package_config_fix $npm_package_config_lint default",
94
- "build:windows": "npm run rebuild -- %npm_package_config_language% %npm_package_config_fix% %npm_package_config_lint% windows",
95
- "rebuild": "run-s \"clean:{1}:{4}\" \"compile:{1}:*\" \"fix:{2} -- {1}\" \"lint:{3}\" \"test:{1}\" --",
96
- "clean:ts:default": "rm -rf dist",
97
- "clean:ts:windows": "cmd /c if exist dist rmdir /s /q dist",
98
- "clean:svelte:default": "rm -rf build .svelte-kit",
99
- "clean:svelte:windows": "run-s clean:svelte:windows:*",
100
- "clean:svelte:windows:build": "cmd /c if exist build rmdir /s /q build",
101
- "clean:svelte:windows:kit": "cmd /c if exist .svelte-kit rmdir /s /q .svelte-kit",
102
- "compile:ts:compile": "tsc",
103
- "compile:svelte:sync": "svelte-kit sync",
104
- "compile:svelte:check": "svelte-check --tsconfig ./tsconfig.json",
105
- "compile:svelte:compile": "vite build",
106
- "fix:true": "run-s \"fix:dist:{1}\" --",
107
- "fix:false": "echo \"Fix skipped (fix=false)\"",
108
- "fix:dist:ts": "ts-add-js-extension --dir=dist",
109
- "fix:dist:svelte": "echo \"Fix skipped for Svelte (handled by SvelteKit)\"",
110
- "li": "eslint --cache --fix",
111
- "lint": "npm run build",
112
- "lint:true": "run-os",
113
- "lint:true:default": "run-s lint:scope:global:* \"lint:scope:$npm_package_config_language\"",
114
- "lint:true:windows": "run-s lint:scope:global:* \"lint:scope:%npm_package_config_language%\"",
115
- "lint:false": "(npm run lint:true) || (echo \"Skipped linting (lint=false)\")",
116
- "lint:scope:global:configs": "npm run li -- {*,.github/**/*}.{json,jsonc,yml,yaml,js,cjs,mjs,ts,cts,mts}",
117
- "lint:scope:global:code": "npm run li -- {src,tests,static,typings}/**/*.{html,js,cjs,mjs,ts,cts,mts}",
118
- "lint:scope:ts": "exit 0",
119
- "lint:scope:svelte": "npm run li -- {src,tests,static}/**/*.svelte",
120
- "postbuild": "echo \"Build (+lint) complete.\"",
121
- "pretest": "npm run build",
122
- "test": "",
123
- "test:ts": "mocha",
124
- "test:svelte": "",
125
- "start": "run-os",
126
- "start:default": "npm run starter:$npm_package_config_language",
127
- "start:windows": "npm run starter:%npm_package_config_language%",
128
- "starter:ts": "node .",
129
- "starter:svelte": "vite preview",
130
- "prestart": "npm test",
131
- "prepublishOnly": "npm test",
132
- "postpublish": "run-os",
133
- "postpublish:default": "if [ \"${npm_package_version#*-}\" = \"${npm_package_version}\" ]; then npm dist-tag add \"$npm_package_name@$npm_package_version\" latest; fi",
134
- "postpublish:windows": "cmd /c for /f \"delims=-\" %a in (\"%npm_package_version%\") do if \"%a\" == \"%npm_package_version%\" npm dist-tag add \"%npm_package_name%@%npm_package_version%\" latest",
135
- "predeploy": "npm test",
136
- "deploy": ""
137
- },
138
- "mocha": {
139
- "spec": [
140
- "dist/**/*.spec.js"
141
- ]
142
- },
143
- "author": "Jimmy Zhening Luo <1450044+jimmy-zhening-luo@users.noreply.github.com> (https://jimm.my/)"
144
- }
1
+ {
2
+ "_schemaVersion": "22.10.2",
3
+ "name": "linted",
4
+ "version": "19.4.3-rc.8",
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
+ "tag": "next"
33
+ },
34
+ "type": "module",
35
+ "main": "dist/index.js",
36
+ "types": "dist/index.d.ts",
37
+ "config": {
38
+ "language": "ts",
39
+ "fix": "true",
40
+ "lint": "false"
41
+ },
42
+ "engineStrict": true,
43
+ "engines": {
44
+ "node": ">=22.10.0",
45
+ "npm": ">=10.9.0"
46
+ },
47
+ "peerDependencies": {
48
+ "eslint": "~9.13.0",
49
+ "mocha": "^10.8.2",
50
+ "svelte": "^5.1.9",
51
+ "typescript": ">=5.6.3"
52
+ },
53
+ "peerDependenciesMeta": {
54
+ "mocha": {
55
+ "optional": true
56
+ },
57
+ "svelte": {
58
+ "optional": true
59
+ },
60
+ "typescript": {
61
+ "optional": true
62
+ }
63
+ },
64
+ "dependencies": {
65
+ "@eslinted/core": "10.0.0-rc.0",
66
+ "@html-eslint/eslint-plugin": "0.27.0",
67
+ "@html-eslint/parser": "0.27.0",
68
+ "@stylistic/eslint-plugin": "2.10.0",
69
+ "@typescript-eslint/eslint-plugin": "8.12.2",
70
+ "@typescript-eslint/parser": "8.12.2",
71
+ "eslint-plugin-jsonc": "2.16.0",
72
+ "eslint-plugin-mocha": "10.5.0",
73
+ "eslint-plugin-svelte": "2.46.0",
74
+ "eslint-plugin-yml": "1.15.0",
75
+ "jsonc-eslint-parser": "2.4.0",
76
+ "svelte": "^5.1.9",
77
+ "svelte-eslint-parser": "0.43.0",
78
+ "yaml-eslint-parser": "1.2.3"
79
+ },
80
+ "devDependencies": {
81
+ "@eslint/config-inspector": "^0.5.6",
82
+ "@types/chai": "^5.0.1",
83
+ "@types/mocha": "^10.0.9",
84
+ "chai": "^5.1.2",
85
+ "mocha": "^10.8.2",
86
+ "npm-run-all": "^4.1.5",
87
+ "run-script-os": "^1.1.6",
88
+ "ts-add-js-extension": "^1.6.4",
89
+ "typescript": "^5.6.3"
90
+ },
91
+ "scripts": {
92
+ "build": "run-os",
93
+ "build:default": "npm run rebuild -- $npm_package_config_language $npm_package_config_fix $npm_package_config_lint default",
94
+ "build:windows": "npm run rebuild -- %npm_package_config_language% %npm_package_config_fix% %npm_package_config_lint% windows",
95
+ "rebuild": "run-s \"clean:{1}:{4}\" \"compile:{1}:*\" \"fix:{2} -- {1}\" \"lint:{3}\" \"test:{1}\" --",
96
+ "clean:ts:default": "rm -rf dist",
97
+ "clean:ts:windows": "cmd /c if exist dist rmdir /s /q dist",
98
+ "clean:svelte:default": "rm -rf build .svelte-kit",
99
+ "clean:svelte:windows": "run-s clean:svelte:windows:*",
100
+ "clean:svelte:windows:build": "cmd /c if exist build rmdir /s /q build",
101
+ "clean:svelte:windows:kit": "cmd /c if exist .svelte-kit rmdir /s /q .svelte-kit",
102
+ "compile:ts:compile": "tsc",
103
+ "compile:svelte:sync": "svelte-kit sync",
104
+ "compile:svelte:check": "svelte-check --tsconfig ./tsconfig.json",
105
+ "compile:svelte:compile": "vite build",
106
+ "fix:true": "run-s \"fix:dist:{1}\" --",
107
+ "fix:false": "echo \"Fix skipped (fix=false)\"",
108
+ "fix:dist:ts": "ts-add-js-extension --dir=dist",
109
+ "fix:dist:svelte": "echo \"Fix skipped for Svelte (handled by SvelteKit)\"",
110
+ "li": "eslint --cache --fix",
111
+ "lint": "npm run build",
112
+ "lint:true": "run-os",
113
+ "lint:true:default": "run-s lint:scope:global:* \"lint:scope:$npm_package_config_language\"",
114
+ "lint:true:windows": "run-s lint:scope:global:* \"lint:scope:%npm_package_config_language%\"",
115
+ "lint:false": "(npm run lint:true) || (echo \"Skipped linting (lint=false)\")",
116
+ "lint:scope:global:configs": "npm run li -- {*,.github/**/*}.{json,jsonc,yml,yaml,js,cjs,mjs,ts,cts,mts}",
117
+ "lint:scope:global:code": "npm run li -- {src,tests,static,typings}/**/*.{html,js,cjs,mjs,ts,cts,mts}",
118
+ "lint:scope:ts": "exit 0",
119
+ "lint:scope:svelte": "npm run li -- {src,tests,static}/**/*.svelte",
120
+ "postbuild": "echo \"Build (+lint) complete.\"",
121
+ "pretest": "npm run build",
122
+ "test": "",
123
+ "test:ts": "mocha",
124
+ "test:svelte": "",
125
+ "start": "run-os",
126
+ "start:default": "npm run starter:$npm_package_config_language",
127
+ "start:windows": "npm run starter:%npm_package_config_language%",
128
+ "starter:ts": "node .",
129
+ "starter:svelte": "vite preview",
130
+ "prestart": "npm test",
131
+ "prepublishOnly": "npm test",
132
+ "postpublish": "run-os",
133
+ "postpublish:default": "if [ \"${npm_package_version#*-}\" = \"${npm_package_version}\" ]; then npm dist-tag add \"$npm_package_name@$npm_package_version\" latest; fi",
134
+ "postpublish:windows": "cmd /c for /f \"delims=-\" %a in (\"%npm_package_version%\") do if \"%a\" == \"%npm_package_version%\" npm dist-tag add \"%npm_package_name%@%npm_package_version%\" latest",
135
+ "predeploy": "npm test",
136
+ "deploy": ""
137
+ },
138
+ "mocha": {
139
+ "spec": [
140
+ "dist/**/*.spec.js"
141
+ ]
142
+ },
143
+ "author": "Jimmy Zhening Luo <1450044+jimmy-zhening-luo@users.noreply.github.com> (https://jimm.my/)"
144
+ }
@@ -1,8 +1,8 @@
1
- export 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";
1
+ export 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";
@@ -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";
@@ -1,31 +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
+ 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,4 +1,4 @@
1
- export const
2
- ERROR = "error",
3
- WARN = "warn",
4
- OFF = "off";
1
+ export const
2
+ ERROR = "error",
3
+ WARN = "warn",
4
+ OFF = "off";
@@ -1,28 +1,28 @@
1
- export 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";
1
+ export 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";
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
+ };
package/src/files/js.ts CHANGED
@@ -1,4 +1,4 @@
1
- export default [
2
- "*.{c,m,}js",
3
- "{src,tests,static,typings}/**/*.{c,m,}js",
4
- ];
1
+ export default [
2
+ "*.{c,m,}js",
3
+ "{src,tests,static,typings}/**/*.{c,m,}js",
4
+ ];
package/src/files/json.ts CHANGED
@@ -1 +1 @@
1
- export default ["**/*.json"];
1
+ export default ["**/*.json"];
@@ -1,4 +1,4 @@
1
- export default [
2
- "**/*.jsonc",
3
- "**/tsconfig.json",
4
- ];
1
+ export default [
2
+ "**/*.jsonc",
3
+ "**/tsconfig.json",
4
+ ];
@@ -1,4 +1,4 @@
1
- export default [
2
- "**/*.{spec,test}.{c,m,}ts",
3
- "**/test{s,}/**/*.{c,m,}ts",
4
- ];
1
+ export default [
2
+ "**/*.{spec,test}.{c,m,}ts",
3
+ "**/test{s,}/**/*.{c,m,}ts",
4
+ ];
@@ -1,4 +1,4 @@
1
- export default [
2
- "**/*.{spec,test}.{c,m,}js",
3
- "**/test{s,}/**/*.{c,m,}js",
4
- ];
1
+ export default [
2
+ "**/*.{spec,test}.{c,m,}js",
3
+ "**/test{s,}/**/*.{c,m,}js",
4
+ ];
@@ -1 +1 @@
1
- export default ["{src,tests,static}/**/*.svelte"];
1
+ export default ["{src,tests,static}/**/*.svelte"];
package/src/files/ts.ts CHANGED
@@ -1 +1 @@
1
- export default ["**/*.{c,m,}ts"];
1
+ export default ["**/*.{c,m,}ts"];
package/src/files/yml.ts CHANGED
@@ -1 +1 @@
1
- export default ["**/*.y{a,}ml"];
1
+ export default ["**/*.y{a,}ml"];
@@ -1,7 +1,7 @@
1
- import plugins from "./plugins";
2
- import parsers from "./parsers";
3
-
4
- export default {
5
- plugins,
6
- parsers,
7
- } as const;
1
+ import plugins from "./plugins";
2
+ import parsers from "./parsers";
3
+
4
+ export default {
5
+ plugins,
6
+ parsers,
7
+ } as const;
@@ -1,13 +1,13 @@
1
- import ts from "@typescript-eslint/parser";
2
- import svelte from "svelte-eslint-parser";
3
- import html from "@html-eslint/parser";
4
- import jsonc from "jsonc-eslint-parser";
5
- import yml from "yaml-eslint-parser";
6
-
7
- export default {
8
- ts,
9
- svelte,
10
- html,
11
- jsonc,
12
- yml,
13
- } as const;
1
+ import ts from "@typescript-eslint/parser";
2
+ import svelte from "svelte-eslint-parser";
3
+ import html from "@html-eslint/parser";
4
+ import jsonc from "jsonc-eslint-parser";
5
+ import yml from "yaml-eslint-parser";
6
+
7
+ export default {
8
+ ts,
9
+ svelte,
10
+ html,
11
+ jsonc,
12
+ yml,
13
+ } as const;