create-powerapps-project 0.21.0 → 0.21.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.
@@ -47,6 +47,7 @@ function getPackages(type) {
47
47
  'webpack-cli',
48
48
  'cross-spawn',
49
49
  'ts-node',
50
+ '@microsoft/eslint-plugin-power-apps',
50
51
  '-D'
51
52
  ];
52
53
  packages.dependencies = ['core-js', 'regenerator-runtime', 'powerapps-common', 'dataverse-webapi'];
package/lib/plopfile.js CHANGED
@@ -32,9 +32,11 @@ const fs_1 = __importDefault(require("fs"));
32
32
  const nuget = __importStar(require("./nuget"));
33
33
  const pkg = __importStar(require("./packageManager"));
34
34
  const didSucceed = (code) => `${code}` === '0';
35
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
36
+ const version = require('../package').version;
35
37
  /* eslint-disable @typescript-eslint/no-explicit-any */
36
38
  exports.default = (plop) => {
37
- plop.setWelcomeMessage('[DATAVERSE] Please choose type of project to create.');
39
+ plop.setWelcomeMessage(`Creating new Dataverse project using create-powerapps-project v${version}. Please choose type of project to create.`);
38
40
  const packageQuestion = {
39
41
  type: 'list',
40
42
  name: 'package',
package/package.json CHANGED
@@ -1,9 +1,8 @@
1
1
  {
2
2
  "name": "create-powerapps-project",
3
3
  "description": "💧 plop generator for Dataverse development",
4
- "version": "0.21.0",
4
+ "version": "0.21.3",
5
5
  "license": "MIT",
6
- "type": "commonjs",
7
6
  "main": "lib/index.js",
8
7
  "bin": {
9
8
  "create-powerapps-project": "lib/index.js"
@@ -26,7 +25,6 @@
26
25
  "plop": "^2.7.6"
27
26
  },
28
27
  "devDependencies": {
29
- "@types/node": "^14.14.21",
30
- "node-plop": "^0.26.3"
28
+ "@types/node": "^14.14.21"
31
29
  }
32
30
  }
@@ -3,9 +3,33 @@ module.exports = {
3
3
  parser: '@typescript-eslint/parser',
4
4
  plugins: [
5
5
  '@typescript-eslint',
6
+ "@microsoft/power-apps"
6
7
  ],
7
8
  extends: [
8
9
  'eslint:recommended',
9
10
  'plugin:@typescript-eslint/recommended',
10
11
  ],
12
+ rules: {
13
+ "@microsoft/power-apps/avoid-2011-api": "error",
14
+ "@microsoft/power-apps/avoid-browser-specific-api": "error",
15
+ "@microsoft/power-apps/avoid-crm2011-service-odata": "warn",
16
+ "@microsoft/power-apps/avoid-crm2011-service-soap": "warn",
17
+ "@microsoft/power-apps/avoid-dom-form-event": "warn",
18
+ "@microsoft/power-apps/avoid-dom-form": "warn",
19
+ "@microsoft/power-apps/avoid-isactivitytype": "warn",
20
+ "@microsoft/power-apps/avoid-modals": "warn",
21
+ "@microsoft/power-apps/avoid-unpub-api": "warn",
22
+ "@microsoft/power-apps/avoid-window-top": "warn",
23
+ "@microsoft/power-apps/do-not-make-parent-assumption": "warn",
24
+ "@microsoft/power-apps/use-async": "error",
25
+ "@microsoft/power-apps/use-cached-webresource": "warn",
26
+ "@microsoft/power-apps/use-client-context": "warn",
27
+ "@microsoft/power-apps/use-global-context": "error",
28
+ "@microsoft/power-apps/use-grid-api": "warn",
29
+ "@microsoft/power-apps/use-navigation-api": "warn",
30
+ "@microsoft/power-apps/use-offline": "warn",
31
+ "@microsoft/power-apps/use-org-setting": "error",
32
+ "@microsoft/power-apps/use-relative-uri": "warn",
33
+ "@microsoft/power-apps/use-utility-dialogs": "warn"
34
+ }
11
35
  };