linted 16.12.2-rc.2 → 16.12.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (150) hide show
  1. package/.github/workflows/RELEASE.yml +35 -35
  2. package/.github/workflows/rc.yml +35 -35
  3. package/LICENSE +21 -21
  4. package/README.md +390 -390
  5. package/SECURITY.md +9 -9
  6. package/dist/imports/plugins.d.ts.map +1 -1
  7. package/dist/imports.d.ts.map +1 -1
  8. package/eslint.config.js +3 -3
  9. package/package.json +99 -99
  10. package/src/files/html.ts +1 -1
  11. package/src/files/js.ts +1 -1
  12. package/src/files/json.ts +1 -1
  13. package/src/files/jsonc.ts +4 -4
  14. package/src/files/md.ts +1 -1
  15. package/src/files/mocha.ts +1 -1
  16. package/src/files/svelte.ts +1 -1
  17. package/src/files/ts.ts +5 -5
  18. package/src/files/yml.ts +5 -5
  19. package/src/files.ts +22 -22
  20. package/src/imports/parsers.ts +15 -15
  21. package/src/imports/plugins.ts +19 -19
  22. package/src/imports.ts +8 -8
  23. package/src/index.ts +36 -36
  24. package/src/rules/_strings/id.ts +18 -18
  25. package/src/rules/_strings/level.ts +6 -6
  26. package/src/rules/_strings/state.ts +56 -56
  27. package/src/rules/_strings.ts +6 -6
  28. package/src/rules/html/enable.ts +16 -16
  29. package/src/rules/html/enable_recommended.ts +9 -9
  30. package/src/rules/html.ts +4 -4
  31. package/src/rules/js/enable.ts +524 -524
  32. package/src/rules/js/enable_stylistic.ts +608 -608
  33. package/src/rules/js.ts +4 -4
  34. package/src/rules/json/enable.ts +33 -33
  35. package/src/rules/json/enable_x.ts +89 -89
  36. package/src/rules/json.ts +4 -4
  37. package/src/rules/jsonc/override.ts +16 -16
  38. package/src/rules/jsonc.ts +4 -4
  39. package/src/rules/md/enable.ts +15 -15
  40. package/src/rules/md.ts +3 -3
  41. package/src/rules/mocha/enable.ts +3 -3
  42. package/src/rules/mocha/enable_recommended.ts +9 -9
  43. package/src/rules/mocha.ts +4 -4
  44. package/src/rules/svelte/disable.ts +9 -9
  45. package/src/rules/svelte/disable_js.ts +11 -11
  46. package/src/rules/svelte/disable_ts.ts +9 -9
  47. package/src/rules/svelte/enable.ts +228 -228
  48. package/src/rules/svelte/enable_x.ts +20 -20
  49. package/src/rules/svelte.ts +15 -15
  50. package/src/rules/ts/disable.ts +22 -22
  51. package/src/rules/ts/disable_x.ts +32 -32
  52. package/src/rules/ts/enable.ts +549 -549
  53. package/src/rules/ts/enable_x.ts +115 -115
  54. package/src/rules/ts.ts +13 -13
  55. package/src/rules/yml/enable.ts +64 -64
  56. package/src/rules/yml/enable_x.ts +68 -68
  57. package/src/rules/yml.ts +4 -4
  58. package/src/rules.ts +22 -22
  59. package/tsconfig.json +161 -161
  60. package/types/markdownlint/index.d.ts +3 -3
  61. package/types/markdownlint/parser.d.ts +9 -9
  62. package/types/mocha/index.d.ts +8 -8
  63. package/dist/rules/_html.d.ts +0 -8
  64. package/dist/rules/_html.d.ts.map +0 -1
  65. package/dist/rules/_html.js +0 -4
  66. package/dist/rules/_html.js.map +0 -1
  67. package/dist/rules/_js.d.ts +0 -765
  68. package/dist/rules/_js.d.ts.map +0 -1
  69. package/dist/rules/_js.js +0 -4
  70. package/dist/rules/_js.js.map +0 -1
  71. package/dist/rules/_json.d.ts +0 -74
  72. package/dist/rules/_json.d.ts.map +0 -1
  73. package/dist/rules/_json.js +0 -4
  74. package/dist/rules/_json.js.map +0 -1
  75. package/dist/rules/_jsonc.d.ts +0 -77
  76. package/dist/rules/_jsonc.d.ts.map +0 -1
  77. package/dist/rules/_jsonc.js +0 -4
  78. package/dist/rules/_jsonc.js.map +0 -1
  79. package/dist/rules/_md.d.ts +0 -7
  80. package/dist/rules/_md.d.ts.map +0 -1
  81. package/dist/rules/_md.js +0 -3
  82. package/dist/rules/_md.js.map +0 -1
  83. package/dist/rules/_mocha.d.ts +0 -8
  84. package/dist/rules/_mocha.d.ts.map +0 -1
  85. package/dist/rules/_mocha.js +0 -4
  86. package/dist/rules/_mocha.js.map +0 -1
  87. package/dist/rules/_svelte.d.ts +0 -1269
  88. package/dist/rules/_svelte.d.ts.map +0 -1
  89. package/dist/rules/_svelte.js +0 -15
  90. package/dist/rules/_svelte.js.map +0 -1
  91. package/dist/rules/_ts.d.ts +0 -1133
  92. package/dist/rules/_ts.d.ts.map +0 -1
  93. package/dist/rules/_ts.js +0 -13
  94. package/dist/rules/_ts.js.map +0 -1
  95. package/dist/rules/_yml.d.ts +0 -73
  96. package/dist/rules/_yml.d.ts.map +0 -1
  97. package/dist/rules/_yml.js +0 -4
  98. package/dist/rules/_yml.js.map +0 -1
  99. package/dist/rules/html/_enable.d.ts +0 -8
  100. package/dist/rules/html/_enable.d.ts.map +0 -1
  101. package/dist/rules/html/_enable.js +0 -10
  102. package/dist/rules/html/_enable.js.map +0 -1
  103. package/dist/rules/html/_recommended.d.ts +0 -3
  104. package/dist/rules/html/_recommended.d.ts.map +0 -1
  105. package/dist/rules/html/_recommended.js +0 -5
  106. package/dist/rules/html/_recommended.js.map +0 -1
  107. package/dist/rules/js/_enable.d.ts +0 -348
  108. package/dist/rules/js/_enable.d.ts.map +0 -1
  109. package/dist/rules/js/_enable.js +0 -260
  110. package/dist/rules/js/_enable.js.map +0 -1
  111. package/dist/rules/js/stylistic.d.ts +0 -420
  112. package/dist/rules/js/stylistic.d.ts.map +0 -1
  113. package/dist/rules/js/stylistic.js +0 -270
  114. package/dist/rules/js/stylistic.js.map +0 -1
  115. package/dist/rules/json/_enable.d.ts +0 -27
  116. package/dist/rules/json/_enable.d.ts.map +0 -1
  117. package/dist/rules/json/_enable.js +0 -31
  118. package/dist/rules/json/_enable.js.map +0 -1
  119. package/dist/rules/md/_enable.d.ts +0 -7
  120. package/dist/rules/md/_enable.d.ts.map +0 -1
  121. package/dist/rules/md/_enable.js +0 -9
  122. package/dist/rules/md/_enable.js.map +0 -1
  123. package/dist/rules/mocha/_enable.d.ts +0 -3
  124. package/dist/rules/mocha/_enable.d.ts.map +0 -1
  125. package/dist/rules/mocha/_enable.js +0 -4
  126. package/dist/rules/mocha/_enable.js.map +0 -1
  127. package/dist/rules/mocha/_recommended.d.ts +0 -3
  128. package/dist/rules/mocha/_recommended.d.ts.map +0 -1
  129. package/dist/rules/mocha/_recommended.js +0 -5
  130. package/dist/rules/mocha/_recommended.js.map +0 -1
  131. package/dist/rules/svelte/_enable.d.ts +0 -126
  132. package/dist/rules/svelte/_enable.d.ts.map +0 -1
  133. package/dist/rules/svelte/_enable.js +0 -90
  134. package/dist/rules/svelte/_enable.js.map +0 -1
  135. package/dist/rules/svelte/disable_x.d.ts +0 -5
  136. package/dist/rules/svelte/disable_x.d.ts.map +0 -1
  137. package/dist/rules/svelte/disable_x.js +0 -4
  138. package/dist/rules/svelte/disable_x.js.map +0 -1
  139. package/dist/rules/ts/_enable.d.ts +0 -262
  140. package/dist/rules/ts/_enable.d.ts.map +0 -1
  141. package/dist/rules/ts/_enable.js +0 -359
  142. package/dist/rules/ts/_enable.js.map +0 -1
  143. package/dist/rules/ts/disable_compiler.d.ts +0 -18
  144. package/dist/rules/ts/disable_compiler.d.ts.map +0 -1
  145. package/dist/rules/ts/disable_compiler.js +0 -22
  146. package/dist/rules/ts/disable_compiler.js.map +0 -1
  147. package/dist/rules/yml/_enable.d.ts +0 -39
  148. package/dist/rules/yml/_enable.d.ts.map +0 -1
  149. package/dist/rules/yml/_enable.js +0 -28
  150. package/dist/rules/yml/_enable.js.map +0 -1
package/tsconfig.json CHANGED
@@ -1,161 +1,161 @@
1
- {
2
- "display": "@jimbojet/tsc",
3
- "$schema": "https://json.schemastore.org/tsconfig",
4
- "_version": "5.5.10",
5
- "include": [
6
- "*.config.ts",
7
- "src/**/*.ts",
8
- "types/**/*.d.ts", /* @OVERRIDE */
9
- ],
10
- "exclude": [],
11
- "compilerOptions": {
12
- /* http://aka.ms/tsconfig#quick-nav-Top%20Level */
13
-
14
- // #region TYPE CHECKING
15
- "allowUnreachableCode": false,
16
- "allowUnusedLabels": false,
17
- "alwaysStrict": true,
18
- "exactOptionalPropertyTypes": true,
19
- "noFallthroughCasesInSwitch": true,
20
- "noImplicitAny": true,
21
- "noImplicitOverride": true,
22
- "noImplicitReturns": true,
23
- "noImplicitThis": true,
24
- "noPropertyAccessFromIndexSignature": true,
25
- "noUncheckedIndexedAccess": true,
26
- "noUnusedLocals": true,
27
- "noUnusedParameters": true,
28
- "strict": true,
29
- "strictBindCallApply": true,
30
- "strictFunctionTypes": true,
31
- "strictNullChecks": true,
32
- "strictPropertyInitialization": true,
33
- "useUnknownInCatchVariables": true,
34
- // #endregion
35
-
36
-
37
- // #region MODULES
38
- "allowArbitraryExtensions": true,
39
- // "allowImportingTsExtensions": true,
40
- // "allowUmdGlobalAccess": true,
41
- // "baseUrl": "./",
42
- // "customConditions": [],
43
- "module": "node16",
44
- "moduleResolution": "node16",
45
- // "moduleSuffixes": [],
46
- // "noResolve": true,
47
- // "paths": { "*": ["node_modules/*"] },
48
- // "resolveJsonModule": true,
49
- // "resolvePackageJsonExports": true,
50
- // "resolvePackageJsonImports": true,
51
- "rootDir": "src",
52
- // "rootDirs": [],
53
- // "typeRoots": [],
54
- "types": [
55
- /* {CONFIGURE} */
56
- ],
57
- // #endregion
58
-
59
-
60
- // #region EMIT
61
- "declaration": true,
62
- "declarationDir": "dist",
63
- "declarationMap": true,
64
- // "downlevelIteration": true,
65
- // "emitBOM": true,
66
- // "emitDeclarationOnly": true,
67
- // "importHelpers": true,
68
- // "inlineSourceMap": true,
69
- // "inlineSources": true,
70
- // "mapRoot": "",
71
- // "newLine": "crlf",
72
- // "noEmit": true,
73
- // "noEmitHelpers": true,
74
- "noEmitOnError": true,
75
- "outDir": "dist",
76
- // "outFile": "./",
77
- // "preserveConstEnums": true,
78
- "removeComments": true,
79
- "sourceMap": true,
80
- // "sourceRoot": "",
81
- // "stripInternal": true,
82
- // #endregion
83
-
84
-
85
- // #region JAVASCRIPT SUPPORT
86
- // "allowJs": true,
87
- // "checkJs": true,
88
- // "maxNodeModuleJsDepth": 1,
89
- // #endregion
90
-
91
-
92
- // #region EDITOR SUPPORT
93
- // "disableSizeLimit": false,
94
- // "plugins": [],
95
- // #endregion
96
-
97
-
98
- // #region INTEROP CONSTRAINTS
99
- "allowSyntheticDefaultImports": true,
100
- "esModuleInterop": true,
101
- "forceConsistentCasingInFileNames": true,
102
- // "isolatedDeclarations": false,
103
- // "isolatedModules": true,
104
- // "preserveSymlinks": true,
105
- "verbatimModuleSyntax": true,
106
- // #endregion
107
-
108
-
109
- // #region LANGUAGE AND ENVIRONMENT
110
- // "emitDecoratorMetadata": true,
111
- // "experimentalDecorators": true,
112
- // "jsx": "preserve",
113
- // "jsxFactory": "",
114
- // "jsxFragmentFactory": "",
115
- // "jsxImportSource": "",
116
- "lib": [
117
- "es2023",
118
- /* {CONFIGURE} */
119
- ],
120
- // "moduleDetection": "auto",
121
- // "noLib": true,
122
- // "reactNamespace": "",
123
- "target": "es2022",
124
- "useDefineForClassFields": true,
125
- // #endregion
126
-
127
-
128
- // #region COMPILER DIAGNOSTICS
129
- // "diagnostics": true,
130
- // "explainFiles": true,
131
- // "extendedDiagnostics": true,
132
- // "generateCpuProfile": "profile.cpuprofile",
133
- // "listEmittedFiles": true,
134
- // "listFiles": true,
135
- // "noCheck": true,
136
- // "traceResolution": true,
137
- // #endregion
138
-
139
-
140
- // #region PROJECTS
141
- // "composite": true,
142
- // "disableReferencedProjectLoad": true,
143
- // "disableSolutionSearching": true,
144
- // "disableSourceOfProjectReferenceRedirect": true,
145
- "incremental": true,
146
- "tsBuildInfoFile": "dist/.tsbuildinfo",
147
- // #endregion
148
-
149
-
150
- // #region OUTPUT FORMATTING
151
- // "noErrorTruncation": true,
152
- // "preserveWatchOutput": true,
153
- // "pretty": true,
154
- // #endregion
155
-
156
-
157
- // #region COMPLETENESS
158
- "skipLibCheck": true /* @OVERRIDE */,
159
- // #endregion
160
- },
161
- }
1
+ {
2
+ "display": "@jimbojet/tsc",
3
+ "$schema": "https://json.schemastore.org/tsconfig",
4
+ "_version": "5.5.10",
5
+ "include": [
6
+ "*.config.ts",
7
+ "src/**/*.ts",
8
+ "types/**/*.d.ts", /* @OVERRIDE */
9
+ ],
10
+ "exclude": [],
11
+ "compilerOptions": {
12
+ /* http://aka.ms/tsconfig#quick-nav-Top%20Level */
13
+
14
+ // #region TYPE CHECKING
15
+ "allowUnreachableCode": false,
16
+ "allowUnusedLabels": false,
17
+ "alwaysStrict": true,
18
+ "exactOptionalPropertyTypes": true,
19
+ "noFallthroughCasesInSwitch": true,
20
+ "noImplicitAny": true,
21
+ "noImplicitOverride": true,
22
+ "noImplicitReturns": true,
23
+ "noImplicitThis": true,
24
+ "noPropertyAccessFromIndexSignature": true,
25
+ "noUncheckedIndexedAccess": true,
26
+ "noUnusedLocals": true,
27
+ "noUnusedParameters": true,
28
+ "strict": true,
29
+ "strictBindCallApply": true,
30
+ "strictFunctionTypes": true,
31
+ "strictNullChecks": true,
32
+ "strictPropertyInitialization": true,
33
+ "useUnknownInCatchVariables": true,
34
+ // #endregion
35
+
36
+
37
+ // #region MODULES
38
+ "allowArbitraryExtensions": true,
39
+ // "allowImportingTsExtensions": true,
40
+ // "allowUmdGlobalAccess": true,
41
+ // "baseUrl": "./",
42
+ // "customConditions": [],
43
+ "module": "node16",
44
+ "moduleResolution": "node16",
45
+ // "moduleSuffixes": [],
46
+ // "noResolve": true,
47
+ // "paths": { "*": ["node_modules/*"] },
48
+ // "resolveJsonModule": true,
49
+ // "resolvePackageJsonExports": true,
50
+ // "resolvePackageJsonImports": true,
51
+ "rootDir": "src",
52
+ // "rootDirs": [],
53
+ // "typeRoots": [],
54
+ "types": [
55
+ /* {CONFIGURE} */
56
+ ],
57
+ // #endregion
58
+
59
+
60
+ // #region EMIT
61
+ "declaration": true,
62
+ "declarationDir": "dist",
63
+ "declarationMap": true,
64
+ // "downlevelIteration": true,
65
+ // "emitBOM": true,
66
+ // "emitDeclarationOnly": true,
67
+ // "importHelpers": true,
68
+ // "inlineSourceMap": true,
69
+ // "inlineSources": true,
70
+ // "mapRoot": "",
71
+ // "newLine": "crlf",
72
+ // "noEmit": true,
73
+ // "noEmitHelpers": true,
74
+ "noEmitOnError": true,
75
+ "outDir": "dist",
76
+ // "outFile": "./",
77
+ // "preserveConstEnums": true,
78
+ "removeComments": true,
79
+ "sourceMap": true,
80
+ // "sourceRoot": "",
81
+ // "stripInternal": true,
82
+ // #endregion
83
+
84
+
85
+ // #region JAVASCRIPT SUPPORT
86
+ // "allowJs": true,
87
+ // "checkJs": true,
88
+ // "maxNodeModuleJsDepth": 1,
89
+ // #endregion
90
+
91
+
92
+ // #region EDITOR SUPPORT
93
+ // "disableSizeLimit": false,
94
+ // "plugins": [],
95
+ // #endregion
96
+
97
+
98
+ // #region INTEROP CONSTRAINTS
99
+ "allowSyntheticDefaultImports": true,
100
+ "esModuleInterop": true,
101
+ "forceConsistentCasingInFileNames": true,
102
+ // "isolatedDeclarations": false,
103
+ // "isolatedModules": true,
104
+ // "preserveSymlinks": true,
105
+ "verbatimModuleSyntax": true,
106
+ // #endregion
107
+
108
+
109
+ // #region LANGUAGE AND ENVIRONMENT
110
+ // "emitDecoratorMetadata": true,
111
+ // "experimentalDecorators": true,
112
+ // "jsx": "preserve",
113
+ // "jsxFactory": "",
114
+ // "jsxFragmentFactory": "",
115
+ // "jsxImportSource": "",
116
+ "lib": [
117
+ "es2023",
118
+ /* {CONFIGURE} */
119
+ ],
120
+ // "moduleDetection": "auto",
121
+ // "noLib": true,
122
+ // "reactNamespace": "",
123
+ "target": "es2022",
124
+ "useDefineForClassFields": true,
125
+ // #endregion
126
+
127
+
128
+ // #region COMPILER DIAGNOSTICS
129
+ // "diagnostics": true,
130
+ // "explainFiles": true,
131
+ // "extendedDiagnostics": true,
132
+ // "generateCpuProfile": "profile.cpuprofile",
133
+ // "listEmittedFiles": true,
134
+ // "listFiles": true,
135
+ // "noCheck": true,
136
+ // "traceResolution": true,
137
+ // #endregion
138
+
139
+
140
+ // #region PROJECTS
141
+ // "composite": true,
142
+ // "disableReferencedProjectLoad": true,
143
+ // "disableSolutionSearching": true,
144
+ // "disableSourceOfProjectReferenceRedirect": true,
145
+ "incremental": true,
146
+ "tsBuildInfoFile": "dist/.tsbuildinfo",
147
+ // #endregion
148
+
149
+
150
+ // #region OUTPUT FORMATTING
151
+ // "noErrorTruncation": true,
152
+ // "preserveWatchOutput": true,
153
+ // "pretty": true,
154
+ // #endregion
155
+
156
+
157
+ // #region COMPLETENESS
158
+ "skipLibCheck": true /* @OVERRIDE */,
159
+ // #endregion
160
+ },
161
+ }
@@ -1,3 +1,3 @@
1
- declare module "eslint-plugin-markdownlint" {
2
- export const configs: Record<"flat/recommended", { rules: unknown }>;
3
- }
1
+ declare module "eslint-plugin-markdownlint" {
2
+ export const configs: Record<"flat/recommended", { rules: unknown }>;
3
+ }
@@ -1,9 +1,9 @@
1
- declare module "eslint-plugin-markdownlint/parser.js" {
2
- export const parseForESLint: (code: string) => Record<
3
- | "ast"
4
- | "parserServices"
5
- | "visitorKeys"
6
- ,
7
- unknown
8
- >;
9
- }
1
+ declare module "eslint-plugin-markdownlint/parser.js" {
2
+ export const parseForESLint: (code: string) => Record<
3
+ | "ast"
4
+ | "parserServices"
5
+ | "visitorKeys"
6
+ ,
7
+ unknown
8
+ >;
9
+ }
@@ -1,8 +1,8 @@
1
- declare module "eslint-plugin-mocha" {
2
- export const configs: {
3
- "flat/recommended": readonly { rules: unknown };
4
- flat: {
5
- recommended: readonly { rules: unknown };
6
- };
7
- };
8
- }
1
+ declare module "eslint-plugin-mocha" {
2
+ export const configs: {
3
+ "flat/recommended": readonly { rules: unknown };
4
+ flat: {
5
+ recommended: readonly { rules: unknown };
6
+ };
7
+ };
8
+ }
@@ -1,8 +0,0 @@
1
- declare const _default: readonly [readonly ["recommended", Record<string, "off">], readonly ["enable", {
2
- readonly "@html-eslint/require-title": "off";
3
- readonly "@html-eslint/element-newline": readonly ["error", {
4
- readonly skip: readonly ["head"];
5
- }];
6
- }]];
7
- export default _default;
8
- //# sourceMappingURL=_html.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_html.d.ts","sourceRoot":"","sources":["../../src/rules/_html.ts"],"names":[],"mappings":";;;;;;AAGA,wBAA8C"}
@@ -1,4 +0,0 @@
1
- import Recommended from "./html/_recommended.js";
2
- import Enable from "./html/_enable.js";
3
- export default [Recommended, Enable];
4
- //# sourceMappingURL=_html.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_html.js","sourceRoot":"","sources":["../../src/rules/_html.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,wBAAwB,CAAC;AACjD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,eAAe,CAAC,WAAW,EAAE,MAAM,CAAU,CAAC"}