@o3r/stylelint-plugin 10.0.0-prerelease.11 → 10.0.0-prerelease.110

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
@@ -17,7 +17,8 @@ In-house stylint plugins to use in your own eslint configuration
17
17
  ng add @o3r/styling-plugin
18
18
  ```
19
19
 
20
- > **Warning**: this module requires [@o3r/core](https://www.npmjs.com/package/@o3r/core) to be installed.
20
+ > [!WARNING]
21
+ > This module requires [@o3r/core](https://www.npmjs.com/package/@o3r/core) to be installed.
21
22
 
22
23
  ## Rules
23
24
 
package/package.json CHANGED
@@ -1,6 +1,9 @@
1
1
  {
2
2
  "name": "@o3r/stylelint-plugin",
3
- "version": "10.0.0-prerelease.11",
3
+ "version": "10.0.0-prerelease.110",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
4
7
  "description": "In-house stylint plugins to use in your own eslint configuration",
5
8
  "keywords": [
6
9
  "stylelint",
@@ -16,7 +19,7 @@
16
19
  "build": "yarn nx build stylelint-plugin",
17
20
  "postbuild": "patch-package-json-main",
18
21
  "prepare:publish": "prepare-publish ./dist",
19
- "prepare:build:builders": "yarn cpy './collection.json' dist",
22
+ "prepare:build:builders": "yarn cpy 'schematics/**/*.json' 'schematics/**/templates/**' dist/schematics && yarn cpy './collection.json' dist",
20
23
  "build:builders": "tsc -b tsconfig.builders.json --pretty && yarn generate-cjs-manifest"
21
24
  },
22
25
  "dependencies": {
@@ -27,37 +30,39 @@
27
30
  "stylelint": "^16.0.2"
28
31
  },
29
32
  "devDependencies": {
30
- "@angular-devkit/core": "~17.0.3",
31
- "@angular-devkit/schematics": "~17.0.3",
33
+ "@angular-devkit/core": "~17.2.0",
34
+ "@angular-devkit/schematics": "~17.2.0",
32
35
  "@angular-eslint/eslint-plugin": "~17.2.0",
33
- "@angular/compiler": "~17.0.4",
36
+ "@angular/compiler": "~17.2.0",
34
37
  "@babel/core": "~7.23.0",
35
38
  "@babel/preset-typescript": "~7.23.0",
36
39
  "@compodoc/compodoc": "^1.1.19",
37
- "@nx/eslint-plugin": "~17.2.0",
38
- "@nx/jest": "~17.2.0",
39
- "@o3r/build-helpers": "^10.0.0-prerelease.11",
40
- "@o3r/eslint-config-otter": "^10.0.0-prerelease.11",
41
- "@o3r/eslint-plugin": "^10.0.0-prerelease.11",
40
+ "@nx/eslint-plugin": "~18.0.2",
41
+ "@nx/jest": "~18.0.2",
42
+ "@o3r/build-helpers": "^10.0.0-prerelease.110",
43
+ "@o3r/eslint-config-otter": "^10.0.0-prerelease.110",
44
+ "@o3r/eslint-plugin": "^10.0.0-prerelease.110",
45
+ "@stylistic/eslint-plugin-ts": "^1.5.4",
42
46
  "@types/jest": "~29.5.2",
43
47
  "@types/node": "^20.0.0",
44
- "@typescript-eslint/eslint-plugin": "^6.19.0",
45
- "@typescript-eslint/parser": "^6.11.0",
48
+ "@typescript-eslint/eslint-plugin": "^7.0.1",
49
+ "@typescript-eslint/parser": "^7.0.1",
46
50
  "cpy-cli": "^5.0.0",
47
51
  "eslint": "^8.42.0",
48
52
  "eslint-import-resolver-node": "^0.3.4",
49
- "eslint-plugin-jest": "~27.6.0",
50
- "eslint-plugin-jsdoc": "~48.0.0",
53
+ "eslint-plugin-jest": "~27.9.0",
54
+ "eslint-plugin-jsdoc": "~48.1.0",
51
55
  "eslint-plugin-prefer-arrow": "~1.2.3",
52
- "eslint-plugin-unicorn": "^50.0.0",
56
+ "eslint-plugin-unicorn": "^51.0.0",
53
57
  "jest": "~29.7.0",
54
58
  "jest-junit": "~16.0.0",
55
59
  "jsonc-eslint-parser": "~2.4.0",
56
- "nx": "~17.2.0",
60
+ "nx": "~18.0.2",
57
61
  "postcss": "~8.4.31",
58
62
  "rimraf": "^5.0.1",
59
63
  "stylelint": "^16.0.2",
60
64
  "ts-jest": "~29.1.1",
65
+ "ts-node": "~10.9.1",
61
66
  "typescript": "~5.2.2"
62
67
  },
63
68
  "schematics": "./collection.json",
@@ -1,6 +1,7 @@
1
1
  import type { Rule } from '@angular-devkit/schematics';
2
+ import type { NgAddSchematicsSchema } from './schema';
2
3
  /**
3
4
  * Add Otter stylelint-plugin to an Angular Project
4
5
  */
5
- export declare function ngAdd(): Rule;
6
+ export declare const ngAdd: (options: NgAddSchematicsSchema) => Rule;
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAEvD;;GAEG;AACH,wBAAgB,KAAK,IAAI,IAAI,CAG5B"}
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,13 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ngAdd = void 0;
4
- const schematics_1 = require("@angular-devkit/schematics");
4
+ const schematics_1 = require("@o3r/schematics");
5
+ const path = require("node:path");
6
+ const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
5
7
  /**
6
8
  * Add Otter stylelint-plugin to an Angular Project
9
+ * @param options
7
10
  */
8
- function ngAdd() {
11
+ function ngAddFn(options) {
9
12
  /* ng add rules */
10
- return (0, schematics_1.noop)();
13
+ return (tree) => {
14
+ return (0, schematics_1.setupDependencies)({
15
+ projectName: options.projectName,
16
+ dependencies: (0, schematics_1.getPackageInstallConfig)(packageJsonPath, tree, options.projectName, true)
17
+ });
18
+ };
11
19
  }
12
- exports.ngAdd = ngAdd;
20
+ /**
21
+ * Add Otter stylelint-plugin to an Angular Project
22
+ */
23
+ exports.ngAdd = (0, schematics_1.createSchematicWithMetricsIfInstalled)(ngAddFn);
13
24
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "ngAddSchematicsSchema",
4
+ "title": "Add Otter stylelint-plugin ",
5
+ "description": "ngAdd Otter stylelint-plugin ",
6
+ "properties": {
7
+ "projectName": {
8
+ "type": "string",
9
+ "description": "Project name",
10
+ "$default": {
11
+ "$source": "projectName"
12
+ }
13
+ }
14
+ },
15
+ "additionalProperties": true,
16
+ "required": [
17
+ ]
18
+ }