angular-eslint 20.5.3-alpha.2 → 20.5.3-alpha.4
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 +16 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -23
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
|
+
import type { Plugin as ESLintPlugin } from '@eslint/core';
|
|
1
2
|
import type { TSESLint } from '@typescript-eslint/utils';
|
|
2
3
|
declare const templateParser: TSESLint.FlatConfig.Parser;
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Make the plugins compatible with both ESLint's Plugin type and typescript-eslint's
|
|
6
|
+
* FlatConfig.Plugin type through type assertion.
|
|
7
|
+
*
|
|
8
|
+
* This is covered by a type compatibility test in tests/type-compatibility.test.ts
|
|
9
|
+
*/
|
|
10
|
+
type CompatiblePlugin = Omit<ESLintPlugin, 'configs'> & {
|
|
11
|
+
configs?: never;
|
|
12
|
+
};
|
|
13
|
+
declare const tsPlugin: CompatiblePlugin;
|
|
14
|
+
declare const templatePlugin: CompatiblePlugin;
|
|
5
15
|
declare const configs: {
|
|
6
16
|
tsAll: TSESLint.FlatConfig.ConfigArray;
|
|
7
17
|
tsRecommended: TSESLint.FlatConfig.ConfigArray;
|
|
@@ -9,7 +19,7 @@ declare const configs: {
|
|
|
9
19
|
templateRecommended: TSESLint.FlatConfig.ConfigArray;
|
|
10
20
|
templateAccessibility: TSESLint.FlatConfig.ConfigArray;
|
|
11
21
|
};
|
|
12
|
-
declare const processInlineTemplates:
|
|
22
|
+
declare const processInlineTemplates: import("@eslint/core").Processor<string | import("@eslint/core").ProcessorFile> | undefined;
|
|
13
23
|
declare const _default: {
|
|
14
24
|
configs: {
|
|
15
25
|
tsAll: TSESLint.FlatConfig.ConfigArray;
|
|
@@ -18,13 +28,13 @@ declare const _default: {
|
|
|
18
28
|
templateRecommended: TSESLint.FlatConfig.ConfigArray;
|
|
19
29
|
templateAccessibility: TSESLint.FlatConfig.ConfigArray;
|
|
20
30
|
};
|
|
21
|
-
tsPlugin:
|
|
31
|
+
tsPlugin: CompatiblePlugin;
|
|
22
32
|
templateParser: {
|
|
23
33
|
meta?: { [K in keyof TSESLint.Parser.ParserMeta]?: TSESLint.Parser.ParserMeta[K] | undefined; };
|
|
24
34
|
parseForESLint(text: string, options?: unknown): { [k in keyof TSESLint.Parser.ParseResult]: unknown; };
|
|
25
35
|
};
|
|
26
|
-
templatePlugin:
|
|
27
|
-
processInlineTemplates:
|
|
36
|
+
templatePlugin: CompatiblePlugin;
|
|
37
|
+
processInlineTemplates: import("@eslint/core").Processor<string | import("@eslint/core").ProcessorFile> | undefined;
|
|
28
38
|
};
|
|
29
39
|
export default _default;
|
|
30
40
|
export { configs, templateParser, templatePlugin, tsPlugin, processInlineTemplates, };
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AASzD,QAAA,MAAM,cAAc,EAAE,QAAQ,CAAC,UAAU,CAAC,MAGzC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AASzD,QAAA,MAAM,cAAc,EAAE,QAAQ,CAAC,UAAU,CAAC,MAGzC,CAAC;AA4BF;;;;;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,QAAA,MAAM,OAAO;;;;;;CAYZ,CAAC;AAGF,QAAA,MAAM,sBAAsB,6FACwB,CAAC;;;;;;;;;;;wDAnDK,CAAA;;;;;;AA0D1D,wBAME;AACF,OAAO,EACL,OAAO,EACP,cAAc,EACd,cAAc,EACd,QAAQ,EACR,sBAAsB,GACvB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -51,29 +51,6 @@ const templateParser = {
|
|
|
51
51
|
parseForESLint: templateParserBase.parseForESLint,
|
|
52
52
|
};
|
|
53
53
|
exports.templateParser = templateParser;
|
|
54
|
-
/*
|
|
55
|
-
we could build a plugin object here without the `configs` key - but if we do
|
|
56
|
-
that then we create a situation in which
|
|
57
|
-
```
|
|
58
|
-
require('angular-eslint').tsPlugin !== require('@angular-eslint/eslint-plugin')
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
This is bad because it means that 3rd party configs would be required to use
|
|
62
|
-
`angular-eslint` or else they would break a user's config if the user either
|
|
63
|
-
used `angular.configs.recommended` et al. or
|
|
64
|
-
```
|
|
65
|
-
{
|
|
66
|
-
plugins: {
|
|
67
|
-
'@angular-eslint': angular.tsPlugin,
|
|
68
|
-
},
|
|
69
|
-
}
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
This might be something we could consider okay (e.g. 3rd party flat configs must
|
|
73
|
-
use our new package); however legacy configs consumed via `@eslint/eslintrc`
|
|
74
|
-
would never be able to satisfy this constraint and thus users would be blocked
|
|
75
|
-
from using them.
|
|
76
|
-
*/
|
|
77
54
|
const tsPlugin = eslint_plugin_1.default;
|
|
78
55
|
exports.tsPlugin = tsPlugin;
|
|
79
56
|
const templatePlugin = eslint_plugin_template_1.default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "angular-eslint",
|
|
3
|
-
"version": "20.5.3-alpha.
|
|
3
|
+
"version": "20.5.3-alpha.4",
|
|
4
4
|
"description": "The tooling which enables ESLint to work with Angular projects",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"@angular-devkit/schematics": ">= 20.0.0 < 21.0.0",
|
|
28
28
|
"@typescript-eslint/types": "^8.0.0",
|
|
29
29
|
"@typescript-eslint/utils": "^8.0.0",
|
|
30
|
-
"@angular-eslint/builder": "20.5.3-alpha.
|
|
31
|
-
"@angular-eslint/eslint-plugin
|
|
32
|
-
"@angular-eslint/
|
|
33
|
-
"@angular-eslint/
|
|
34
|
-
"@angular-eslint/template-parser": "20.5.3-alpha.
|
|
30
|
+
"@angular-eslint/builder": "20.5.3-alpha.4",
|
|
31
|
+
"@angular-eslint/eslint-plugin": "20.5.3-alpha.4",
|
|
32
|
+
"@angular-eslint/eslint-plugin-template": "20.5.3-alpha.4",
|
|
33
|
+
"@angular-eslint/schematics": "20.5.3-alpha.4",
|
|
34
|
+
"@angular-eslint/template-parser": "20.5.3-alpha.4"
|
|
35
35
|
},
|
|
36
36
|
"ng-update": {
|
|
37
37
|
"packageGroupName": "angular-eslint",
|