@o3r/stylelint-plugin 10.2.0-prerelease.8 → 10.2.0-prerelease.81

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/README.md CHANGED
@@ -9,6 +9,9 @@ This package is an [Otter Framework Module](https://github.com/AmadeusITGroup/ot
9
9
 
10
10
  ## Description
11
11
 
12
+ [![Stable Version](https://img.shields.io/npm/v/@o3r/stylelint-plugin?style=for-the-badge)](https://www.npmjs.com/package/@o3r/stylelint-plugin)
13
+ [![Bundle Size](https://img.shields.io/bundlephobia/min/@o3r/stylelint-plugin?color=green&style=for-the-badge)](https://www.npmjs.com/package/@o3r/stylelint-plugin)
14
+
12
15
  In-house stylint plugins to use in your own eslint configuration
13
16
 
14
17
  ## How to install
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@o3r/stylelint-plugin",
3
- "version": "10.2.0-prerelease.8",
3
+ "version": "10.2.0-prerelease.81",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -23,47 +23,47 @@
23
23
  "build:builders": "tsc -b tsconfig.builders.json --pretty && yarn generate-cjs-manifest"
24
24
  },
25
25
  "dependencies": {
26
- "tslib": "^2.5.3"
26
+ "tslib": "^2.6.2"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "postcss": "^8.4.5",
30
30
  "stylelint": "^16.0.2"
31
31
  },
32
32
  "devDependencies": {
33
- "@angular-devkit/core": "~17.2.0",
34
- "@angular-devkit/schematics": "~17.2.0",
35
- "@angular-eslint/eslint-plugin": "~17.2.0",
36
- "@angular/compiler": "~17.2.0",
33
+ "@angular-devkit/core": "~17.3.0",
34
+ "@angular-devkit/schematics": "~17.3.0",
35
+ "@angular-eslint/eslint-plugin": "~17.3.0",
36
+ "@angular/compiler": "~17.3.0",
37
37
  "@babel/core": "~7.24.0",
38
- "@babel/preset-typescript": "~7.23.0",
38
+ "@babel/preset-typescript": "~7.24.0",
39
39
  "@compodoc/compodoc": "^1.1.19",
40
- "@nx/eslint-plugin": "~18.0.2",
41
- "@nx/jest": "~18.0.2",
42
- "@o3r/build-helpers": "^10.2.0-prerelease.8",
43
- "@o3r/eslint-config-otter": "^10.2.0-prerelease.8",
44
- "@o3r/eslint-plugin": "^10.2.0-prerelease.8",
40
+ "@nx/eslint-plugin": "~18.2.0",
41
+ "@nx/jest": "~18.2.0",
42
+ "@o3r/build-helpers": "^10.2.0-prerelease.81",
43
+ "@o3r/eslint-config-otter": "^10.2.0-prerelease.81",
44
+ "@o3r/eslint-plugin": "^10.2.0-prerelease.81",
45
45
  "@stylistic/eslint-plugin-ts": "^1.5.4",
46
46
  "@types/jest": "~29.5.2",
47
47
  "@types/node": "^20.0.0",
48
- "@typescript-eslint/eslint-plugin": "^7.0.1",
49
- "@typescript-eslint/parser": "^7.0.1",
48
+ "@typescript-eslint/eslint-plugin": "^7.2.0",
49
+ "@typescript-eslint/parser": "^7.2.0",
50
50
  "cpy-cli": "^5.0.0",
51
- "eslint": "^8.42.0",
52
- "eslint-import-resolver-node": "^0.3.4",
51
+ "eslint": "^8.57.0",
52
+ "eslint-import-resolver-node": "^0.3.9",
53
53
  "eslint-plugin-jest": "~27.9.0",
54
- "eslint-plugin-jsdoc": "~48.2.0",
54
+ "eslint-plugin-jsdoc": "~48.2.1",
55
55
  "eslint-plugin-prefer-arrow": "~1.2.3",
56
- "eslint-plugin-unicorn": "^51.0.0",
56
+ "eslint-plugin-unicorn": "^51.0.1",
57
57
  "jest": "~29.7.0",
58
58
  "jest-junit": "~16.0.0",
59
59
  "jsonc-eslint-parser": "~2.4.0",
60
- "nx": "~18.0.2",
60
+ "nx": "~18.2.0",
61
61
  "postcss": "~8.4.31",
62
62
  "rimraf": "^5.0.1",
63
63
  "stylelint": "^16.0.2",
64
- "ts-jest": "~29.1.1",
65
- "ts-node": "~10.9.1",
66
- "typescript": "~5.3.3"
64
+ "ts-jest": "~29.1.2",
65
+ "ts-node": "~10.9.2",
66
+ "typescript": "~5.4.2"
67
67
  },
68
68
  "schematics": "./collection.json",
69
69
  "main": "./src/public_api.js",
@@ -2,6 +2,7 @@ import type { Rule } from '@angular-devkit/schematics';
2
2
  import type { NgAddSchematicsSchema } from './schema';
3
3
  /**
4
4
  * Add Otter stylelint-plugin to an Angular Project
5
+ * @param options
5
6
  */
6
7
  export declare const ngAdd: (options: NgAddSchematicsSchema) => Rule;
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAEvD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAmBtD;;GAEG;AACH,eAAO,MAAM,KAAK,0CAAiD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AA2BtD;;;GAGG;AACH,eAAO,MAAM,KAAK,YAAa,qBAAqB,KAAG,IAGtD,CAAC"}
@@ -1,24 +1,35 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ngAdd = void 0;
4
- const schematics_1 = require("@o3r/schematics");
5
4
  const path = require("node:path");
6
5
  const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
6
+ const reportMissingSchematicsDep = (logger) => (reason) => {
7
+ logger.error(`[ERROR]: Adding @o3r/stylelint-plugin has failed.
8
+ If the error is related to missing @o3r dependencies you need to install '@o3r/core' to be able to use the mobile package. Please run 'ng add @o3r/core' .
9
+ Otherwise, use the error message as guidance.`);
10
+ throw reason;
11
+ };
7
12
  /**
8
13
  * Add Otter stylelint-plugin to an Angular Project
9
14
  * @param options
10
15
  */
11
16
  function ngAddFn(options) {
12
17
  /* ng add rules */
13
- return (tree) => {
14
- return (0, schematics_1.setupDependencies)({
18
+ return async (tree) => {
19
+ const { getPackageInstallConfig, setupDependencies } = await Promise.resolve().then(() => require('@o3r/schematics'));
20
+ return setupDependencies({
15
21
  projectName: options.projectName,
16
- dependencies: (0, schematics_1.getPackageInstallConfig)(packageJsonPath, tree, options.projectName, true, !!options.exactO3rVersion)
22
+ dependencies: getPackageInstallConfig(packageJsonPath, tree, options.projectName, true, !!options.exactO3rVersion)
17
23
  });
18
24
  };
19
25
  }
20
26
  /**
21
27
  * Add Otter stylelint-plugin to an Angular Project
28
+ * @param options
22
29
  */
23
- exports.ngAdd = (0, schematics_1.createSchematicWithMetricsIfInstalled)(ngAddFn);
30
+ const ngAdd = (options) => async (_, { logger }) => {
31
+ const { createSchematicWithMetricsIfInstalled } = await Promise.resolve().then(() => require('@o3r/schematics')).catch(reportMissingSchematicsDep(logger));
32
+ return createSchematicWithMetricsIfInstalled(ngAddFn)(options);
33
+ };
34
+ exports.ngAdd = ngAdd;
24
35
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
1
  export declare const rules: {
2
- readonly 'o3r-var-parameter-equal-variable': (primary: any, _secondaryOptions: Record<string, any>, context: import("stylelint").RuleContext) => (root: import("postcss/lib/root").default, result: import("stylelint").PostcssResult) => void;
2
+ readonly 'o3r-var-parameter-equal-variable': (primary: any, _secondaryOptions: Record<string, any>, context: import("stylelint").RuleContext) => (root: import("postcss").Root, result: import("stylelint").PostcssResult) => void;
3
3
  };
4
4
  //# sourceMappingURL=index.d.ts.map