angular-eslint 22.6.1-alpha.1 → 22.6.1-alpha.3
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/dist/index.d.ts +8 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -2
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import templatePluginBase from '@angular-eslint/eslint-plugin-template';
|
|
1
2
|
import type { Plugin as ESLintPlugin } from '@eslint/core';
|
|
2
3
|
import type { TSESLint } from '@typescript-eslint/utils';
|
|
3
4
|
import type { Linter } from 'eslint';
|
|
@@ -25,7 +26,12 @@ declare const configs: {
|
|
|
25
26
|
templateRecommended: CompatibleConfigArray;
|
|
26
27
|
templateAccessibility: CompatibleConfigArray;
|
|
27
28
|
};
|
|
29
|
+
/** @deprecated Use `createProcessor()` instead. */
|
|
28
30
|
declare const processInlineTemplates: import("@eslint/core").Processor<string | import("@eslint/core").ProcessorFile> | undefined;
|
|
31
|
+
type Processor = NonNullable<CompatiblePlugin['processors']>[string];
|
|
32
|
+
type ProcessorOptions = NonNullable<Parameters<typeof templatePluginBase.createProcessor>[0]>;
|
|
33
|
+
declare const createProcessor: (options?: ProcessorOptions) => Processor;
|
|
34
|
+
export type { ProcessorOptions };
|
|
29
35
|
declare const _default: {
|
|
30
36
|
configs: {
|
|
31
37
|
tsAll: CompatibleConfigArray;
|
|
@@ -41,7 +47,8 @@ declare const _default: {
|
|
|
41
47
|
};
|
|
42
48
|
templatePlugin: CompatiblePlugin;
|
|
43
49
|
processInlineTemplates: import("@eslint/core").Processor<string | import("@eslint/core").ProcessorFile> | undefined;
|
|
50
|
+
createProcessor: (options?: ProcessorOptions) => Processor;
|
|
44
51
|
};
|
|
45
52
|
export default _default;
|
|
46
|
-
export { configs, templateParser, templatePlugin, tsPlugin, processInlineTemplates, };
|
|
53
|
+
export { configs, templateParser, templatePlugin, tsPlugin, processInlineTemplates, createProcessor, };
|
|
47
54
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,kBAAkB,MAAM,wCAAwC,CAAC;AAExE,OAAO,KAAK,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AASrC,QAAA,MAAM,cAAc,EAAE,QAAQ,CAAC,UAAU,CAAC,MAGzC,CAAC;AAuBF;;;;;GAKG;AACH,KAAK,gBAAgB,GAAG,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,GAAG;IACtD,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB,CAAC;AACF,QAAA,MAAM,QAAQ,EAA8B,gBAAgB,CAAC;AAC7D,QAAA,MAAM,cAAc,EAAoC,gBAAgB,CAAC;AAEzE;;;GAGG;AACH,KAAK,qBAAqB,GAAG,QAAQ,CAAC,UAAU,CAAC,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;AAE/E,QAAA,MAAM,OAAO;WAC6B,qBAAqB;mBACL,qBAAqB;iBAIxE,qBAAqB;yBAIrB,qBAAqB;2BAIrB,qBAAqB;CAC3B,CAAC;AAEF,mDAAmD;AACnD,QAAA,MAAM,sBAAsB,6FACwB,CAAC;AAErD,KAAK,SAAS,GAAG,WAAW,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AACrE,KAAK,gBAAgB,GAAG,WAAW,CACjC,UAAU,CAAC,OAAO,kBAAkB,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CACzD,CAAC;AACF,QAAA,MAAM,eAAe,EAAoD,CACvE,OAAO,CAAC,EAAE,gBAAgB,KACvB,SAAS,CAAC;AAEf,YAAY,EAAE,gBAAgB,EAAE,CAAC;;;eA5BS,qBAAqB;uBACL,qBAAqB;qBAIxE,qBAAqB;6BAIrB,qBAAqB;+BAIrB,qBAAqB;;;;wDAlDT,CAAC;;;;;gCA8DR,gBAAgB,KACvB,SAAS;;AASd,wBAOE;AACF,OAAO,EACL,OAAO,EACP,cAAc,EACd,cAAc,EACd,QAAQ,EACR,sBAAsB,EACtB,eAAe,GAChB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
36
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.processInlineTemplates = exports.tsPlugin = exports.templatePlugin = exports.templateParser = exports.configs = void 0;
|
|
39
|
+
exports.createProcessor = exports.processInlineTemplates = exports.tsPlugin = exports.templatePlugin = exports.templateParser = exports.configs = void 0;
|
|
40
40
|
const eslint_plugin_1 = __importDefault(require("@angular-eslint/eslint-plugin"));
|
|
41
41
|
const eslint_plugin_template_1 = __importDefault(require("@angular-eslint/eslint-plugin-template"));
|
|
42
42
|
const templateParserBase = __importStar(require("@angular-eslint/template-parser"));
|
|
@@ -63,9 +63,11 @@ const configs = {
|
|
|
63
63
|
templateAccessibility: (0, template_accessibility_1.default)(templatePlugin, templateParser),
|
|
64
64
|
};
|
|
65
65
|
exports.configs = configs;
|
|
66
|
-
|
|
66
|
+
/** @deprecated Use `createProcessor()` instead. */
|
|
67
67
|
const processInlineTemplates = templatePlugin.processors?.['extract-inline-html'];
|
|
68
68
|
exports.processInlineTemplates = processInlineTemplates;
|
|
69
|
+
const createProcessor = eslint_plugin_template_1.default.createProcessor;
|
|
70
|
+
exports.createProcessor = createProcessor;
|
|
69
71
|
/*
|
|
70
72
|
// eslint-disable-next-line import/no-default-export --
|
|
71
73
|
we do both a default and named exports to allow people to use this package from
|
|
@@ -77,4 +79,5 @@ exports.default = {
|
|
|
77
79
|
templateParser,
|
|
78
80
|
templatePlugin,
|
|
79
81
|
processInlineTemplates,
|
|
82
|
+
createProcessor,
|
|
80
83
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "angular-eslint",
|
|
3
|
-
"version": "22.6.1-alpha.
|
|
3
|
+
"version": "22.6.1-alpha.3",
|
|
4
4
|
"description": "The tooling which enables ESLint to work with Angular projects",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@angular-devkit/core": ">= 22.0.0 < 23.0.0",
|
|
28
28
|
"@angular-devkit/schematics": ">= 22.0.0 < 23.0.0",
|
|
29
|
-
"@angular-eslint/builder": "22.6.1-alpha.
|
|
30
|
-
"@angular-eslint/eslint-plugin": "22.6.1-alpha.
|
|
31
|
-
"@angular-eslint/eslint-plugin-template": "22.6.1-alpha.
|
|
32
|
-
"@angular-eslint/schematics": "22.6.1-alpha.
|
|
33
|
-
"@angular-eslint/template-parser": "22.6.1-alpha.
|
|
29
|
+
"@angular-eslint/builder": "22.6.1-alpha.3",
|
|
30
|
+
"@angular-eslint/eslint-plugin": "22.6.1-alpha.3",
|
|
31
|
+
"@angular-eslint/eslint-plugin-template": "22.6.1-alpha.3",
|
|
32
|
+
"@angular-eslint/schematics": "22.6.1-alpha.3",
|
|
33
|
+
"@angular-eslint/template-parser": "22.6.1-alpha.3",
|
|
34
34
|
"@typescript-eslint/types": "^8.0.0",
|
|
35
35
|
"@typescript-eslint/utils": "^8.0.0"
|
|
36
36
|
},
|