@o3r/eslint-plugin 11.1.0-prerelease.43 → 11.1.0-prerelease.45
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/package.json +19 -18
- package/schematics/ng-add/index.js +1 -2
- package/src/rules/json/json-dependency-versions-harmonize/version-harmonize.d.ts +1 -1
- package/src/rules/json/utils.js +5 -6
- package/src/rules/template/utils.js +3 -4
- package/src/rules/utils.d.ts +1 -1
- package/src/rules/yaml/utils.js +3 -4
- package/tsconfig.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3r/eslint-plugin",
|
|
3
|
-
"version": "11.1.0-prerelease.
|
|
3
|
+
"version": "11.1.0-prerelease.45",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@angular-eslint/template-parser": "~18.
|
|
46
|
-
"@angular-eslint/test-utils": "~18.
|
|
47
|
-
"@angular/compiler": "~18.
|
|
48
|
-
"@stylistic/eslint-plugin-ts": "
|
|
45
|
+
"@angular-eslint/template-parser": "~18.1.0",
|
|
46
|
+
"@angular-eslint/test-utils": "~18.1.0",
|
|
47
|
+
"@angular/compiler": "~18.1.0",
|
|
48
|
+
"@stylistic/eslint-plugin-ts": "~2.4.0",
|
|
49
49
|
"@typescript-eslint/eslint-plugin": "^7.0.1",
|
|
50
50
|
"@typescript-eslint/parser": "^7.14.1",
|
|
51
51
|
"@typescript-eslint/rule-tester": "^7.11.0",
|
|
@@ -54,21 +54,21 @@
|
|
|
54
54
|
"yaml-eslint-parser": "^1.2.2"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@angular-devkit/core": "~18.
|
|
58
|
-
"@angular-devkit/schematics": "~18.
|
|
59
|
-
"@angular-eslint/eslint-plugin": "~18.
|
|
60
|
-
"@angular-eslint/template-parser": "~18.
|
|
61
|
-
"@angular-eslint/test-utils": "~18.
|
|
62
|
-
"@angular/compiler": "~18.
|
|
57
|
+
"@angular-devkit/core": "~18.1.0",
|
|
58
|
+
"@angular-devkit/schematics": "~18.1.0",
|
|
59
|
+
"@angular-eslint/eslint-plugin": "~18.1.0",
|
|
60
|
+
"@angular-eslint/template-parser": "~18.1.0",
|
|
61
|
+
"@angular-eslint/test-utils": "~18.1.0",
|
|
62
|
+
"@angular/compiler": "~18.1.0",
|
|
63
63
|
"@babel/core": "~7.24.0",
|
|
64
64
|
"@babel/preset-typescript": "~7.24.0",
|
|
65
65
|
"@compodoc/compodoc": "^1.1.19",
|
|
66
66
|
"@eslint/eslintrc": "^3.0.0",
|
|
67
|
-
"@nx/eslint-plugin": "~19.
|
|
68
|
-
"@nx/jest": "~19.
|
|
69
|
-
"@o3r/build-helpers": "^11.1.0-prerelease.
|
|
70
|
-
"@o3r/test-helpers": "^11.1.0-prerelease.
|
|
71
|
-
"@stylistic/eslint-plugin-ts": "
|
|
67
|
+
"@nx/eslint-plugin": "~19.5.0",
|
|
68
|
+
"@nx/jest": "~19.5.0",
|
|
69
|
+
"@o3r/build-helpers": "^11.1.0-prerelease.45",
|
|
70
|
+
"@o3r/test-helpers": "^11.1.0-prerelease.45",
|
|
71
|
+
"@stylistic/eslint-plugin-ts": "~2.4.0",
|
|
72
72
|
"@types/jest": "~29.5.2",
|
|
73
73
|
"@types/node": "^20.0.0",
|
|
74
74
|
"@types/semver": "^7.3.13",
|
|
@@ -84,17 +84,18 @@
|
|
|
84
84
|
"jest": "~29.7.0",
|
|
85
85
|
"jest-junit": "~16.0.0",
|
|
86
86
|
"jsonc-eslint-parser": "~2.4.0",
|
|
87
|
-
"nx": "~19.
|
|
87
|
+
"nx": "~19.5.0",
|
|
88
88
|
"pid-from-port": "^1.1.3",
|
|
89
89
|
"rimraf": "^5.0.1",
|
|
90
90
|
"semver": "^7.5.2",
|
|
91
91
|
"ts-jest": "~29.2.0",
|
|
92
92
|
"type-fest": "^4.10.2",
|
|
93
|
-
"typescript": "~5.4
|
|
93
|
+
"typescript": "~5.5.4",
|
|
94
94
|
"yaml-eslint-parser": "^1.2.2"
|
|
95
95
|
},
|
|
96
96
|
"schematics": "./collection.json",
|
|
97
97
|
"type": "commonjs",
|
|
98
|
+
"types": "./src/public_api.d.ts",
|
|
98
99
|
"contributors": [
|
|
99
100
|
{
|
|
100
101
|
"name": "Yannick Adam",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ngAdd =
|
|
3
|
+
exports.ngAdd = ngAdd;
|
|
4
4
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
5
|
/**
|
|
6
6
|
* Add Otter eslint-plugin to an Angular Project
|
|
@@ -9,5 +9,4 @@ function ngAdd() {
|
|
|
9
9
|
/* ng add rules */
|
|
10
10
|
return (0, schematics_1.noop)();
|
|
11
11
|
}
|
|
12
|
-
exports.ngAdd = ngAdd;
|
|
13
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -37,4 +37,4 @@ export declare const getBestRange: (currentRange?: string, range?: string) => st
|
|
|
37
37
|
* @param dependencyTypes Type of dependency files to analyze
|
|
38
38
|
* @param packages List of the package.json files
|
|
39
39
|
*/
|
|
40
|
-
export declare const getBestRanges: (dependencyTypes: string[], packages: PackageProperty[
|
|
40
|
+
export declare const getBestRanges: (dependencyTypes: string[], packages: PackageProperty["packages"]) => Record<string, RangeInformation>;
|
package/src/rules/json/utils.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.isJsoncParserServices = isJsoncParserServices;
|
|
4
|
+
exports.isProperty = isProperty;
|
|
5
|
+
exports.isObjectExpression = isObjectExpression;
|
|
6
|
+
exports.getJsoncParserServices = getJsoncParserServices;
|
|
7
|
+
exports.ensureJsoncParser = ensureJsoncParser;
|
|
4
8
|
/**
|
|
5
9
|
* Determine if jsonc-eslint-parser is used
|
|
6
10
|
* @param parserServices Parser services object
|
|
@@ -8,7 +12,6 @@ exports.ensureJsoncParser = exports.getJsoncParserServices = exports.isObjectExp
|
|
|
8
12
|
function isJsoncParserServices(parserServices) {
|
|
9
13
|
return !!parserServices && typeof parserServices.isJSON !== 'undefined';
|
|
10
14
|
}
|
|
11
|
-
exports.isJsoncParserServices = isJsoncParserServices;
|
|
12
15
|
/**
|
|
13
16
|
*
|
|
14
17
|
* @param node
|
|
@@ -17,7 +20,6 @@ exports.isJsoncParserServices = isJsoncParserServices;
|
|
|
17
20
|
function isProperty(node) {
|
|
18
21
|
return !!node && node.type !== 'JSONProperty';
|
|
19
22
|
}
|
|
20
|
-
exports.isProperty = isProperty;
|
|
21
23
|
/**
|
|
22
24
|
*
|
|
23
25
|
* @param node
|
|
@@ -26,7 +28,6 @@ exports.isProperty = isProperty;
|
|
|
26
28
|
function isObjectExpression(node) {
|
|
27
29
|
return !!node && node.type !== 'JSONObjectExpression';
|
|
28
30
|
}
|
|
29
|
-
exports.isObjectExpression = isObjectExpression;
|
|
30
31
|
/**
|
|
31
32
|
* Retrieve the json parser services object or throw if the invalid parser is used
|
|
32
33
|
* @param context Rule context
|
|
@@ -42,7 +43,6 @@ function getJsoncParserServices(context) {
|
|
|
42
43
|
}
|
|
43
44
|
return parserService;
|
|
44
45
|
}
|
|
45
|
-
exports.getJsoncParserServices = getJsoncParserServices;
|
|
46
46
|
/**
|
|
47
47
|
* Utility for rule authors to ensure that their rule is correctly being used with jsonc-eslint-parser
|
|
48
48
|
* If jsonc-eslint-parser is not the configured parser when the function is invoked it will throw
|
|
@@ -57,4 +57,3 @@ function ensureJsoncParser(context) {
|
|
|
57
57
|
throw new Error('You have used a rule which requires \'jsonc-eslint-parser\' to be used as the \'parser\' in your ESLint config.');
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
exports.ensureJsoncParser = ensureJsoncParser;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.isTemplateParserServices = isTemplateParserServices;
|
|
4
|
+
exports.getTemplateParserServices = getTemplateParserServices;
|
|
5
|
+
exports.ensureTemplateParser = ensureTemplateParser;
|
|
4
6
|
/**
|
|
5
7
|
* Determine if @angular-eslint/template-parser is used
|
|
6
8
|
* @param parserServices Parser services object
|
|
@@ -9,7 +11,6 @@ function isTemplateParserServices(parserServices) {
|
|
|
9
11
|
return parserServices && (typeof parserServices.convertElementSourceSpanToLoc === 'function' ||
|
|
10
12
|
typeof parserServices.convertNodeSourceSpanToLoc === 'function');
|
|
11
13
|
}
|
|
12
|
-
exports.isTemplateParserServices = isTemplateParserServices;
|
|
13
14
|
/**
|
|
14
15
|
* Retrieve the template parser services object or throw if the invalid parser is used
|
|
15
16
|
* @param context Rule context
|
|
@@ -25,7 +26,6 @@ function getTemplateParserServices(context) {
|
|
|
25
26
|
}
|
|
26
27
|
return parserService;
|
|
27
28
|
}
|
|
28
|
-
exports.getTemplateParserServices = getTemplateParserServices;
|
|
29
29
|
/**
|
|
30
30
|
* Utility for rule authors to ensure that their rule is correctly being used with @angular-eslint/template-parser
|
|
31
31
|
* If @angular-eslint/template-parser is not the configured parser when the function is invoked it will throw
|
|
@@ -40,4 +40,3 @@ function ensureTemplateParser(context) {
|
|
|
40
40
|
throw new Error('You have used a rule which requires \'@angular-eslint/template-parser\' to be used as the \'parser\' in your ESLint config.');
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
exports.ensureTemplateParser = ensureTemplateParser;
|
package/src/rules/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ESLintUtils, TSESLint, TSESTree } from '@typescript-eslint/utils';
|
|
2
2
|
/** ESLint rule generator */
|
|
3
|
-
export declare const createRule: <Options extends readonly unknown[], MessageIds extends string>({ name, meta, ...rule }: Readonly<ESLintUtils.RuleWithMetaAndName<Options, MessageIds>>) => ESLintUtils.RuleModule<MessageIds, Options
|
|
3
|
+
export declare const createRule: <Options extends readonly unknown[], MessageIds extends string>({ name, meta, ...rule }: Readonly<ESLintUtils.RuleWithMetaAndName<Options, MessageIds>>) => ESLintUtils.RuleModule<MessageIds, Options>;
|
|
4
4
|
/** Default supported interface names */
|
|
5
5
|
export declare const defaultSupportedInterfaceNames: string[];
|
|
6
6
|
/**
|
package/src/rules/yaml/utils.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.isYamlParserServices = isYamlParserServices;
|
|
4
|
+
exports.getYamlParserServices = getYamlParserServices;
|
|
5
|
+
exports.ensureJsoncParser = ensureJsoncParser;
|
|
4
6
|
/**
|
|
5
7
|
* Determine if yaml-eslint-parser is used
|
|
6
8
|
* @param parserServices Parser services object
|
|
@@ -8,7 +10,6 @@ exports.ensureJsoncParser = exports.getYamlParserServices = exports.isYamlParser
|
|
|
8
10
|
function isYamlParserServices(parserServices) {
|
|
9
11
|
return !!parserServices && parserServices.isYAML;
|
|
10
12
|
}
|
|
11
|
-
exports.isYamlParserServices = isYamlParserServices;
|
|
12
13
|
/**
|
|
13
14
|
* Retrieve the yaml parser services object or throw if the invalid parser is used
|
|
14
15
|
* @param context Rule context
|
|
@@ -24,7 +25,6 @@ function getYamlParserServices(context) {
|
|
|
24
25
|
}
|
|
25
26
|
return parserService;
|
|
26
27
|
}
|
|
27
|
-
exports.getYamlParserServices = getYamlParserServices;
|
|
28
28
|
/**
|
|
29
29
|
* Utility for rule authors to ensure that their rule is correctly being used with yaml-eslint-parser
|
|
30
30
|
* If yaml-eslint-parser is not the configured parser when the function is invoked it will throw
|
|
@@ -39,4 +39,3 @@ function ensureJsoncParser(context) {
|
|
|
39
39
|
throw new Error('You have used a rule which requires \'yaml-eslint-parser\' to be used as the \'parser\' in your ESLint config.');
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
exports.ensureJsoncParser = ensureJsoncParser;
|
package/tsconfig.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"5.4
|
|
1
|
+
{"version":"5.5.4"}
|