create-powerapps-project 2.3.4 → 2.5.0

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/lib/plopfile.js CHANGED
@@ -489,7 +489,7 @@ export default async (plop) => {
489
489
  'dataverse-utils',
490
490
  '@types/xrm',
491
491
  'typescript',
492
- 'eslint',
492
+ 'eslint@^9',
493
493
  'prettier',
494
494
  'eslint-config-prettier',
495
495
  '@typescript-eslint/eslint-plugin',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-powerapps-project",
3
3
  "description": "💧 plop generator for Dataverse development",
4
- "version": "2.3.4",
4
+ "version": "2.5.0",
5
5
  "license": "MIT",
6
6
  "exports": "./lib/index.js",
7
7
  "engines": {
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "gen": "plop",
8
- "deploy": "dotnet clean && dotnet build && dataverse-utils deploy assembly",
8
+ "build": "dotnet clean && dotnet build && dataverse-utils deploy assembly",
9
9
  "modelbuilder": "pac auth select -n {{org}} && pac modelbuilder build -stf builderSettings.json -o Model -env {{server}}",
10
10
  "authenticate": "pac auth create -n {{org}} -dc",
11
11
  "prt": "pac tool prt"
@@ -0,0 +1,59 @@
1
+ import eslintjs from '@eslint/js';
2
+ import microsoftPowerApps from '@microsoft/eslint-plugin-power-apps';
3
+ import pluginPromise from 'eslint-plugin-promise';
4
+ import globals from 'globals';
5
+ import typescriptEslint from 'typescript-eslint';
6
+ import eslintConfigPrettier from 'eslint-config-prettier';
7
+
8
+ /** @type {import('eslint').Linter.Config[]} */
9
+ export default [
10
+ {
11
+ ignores: ['**/generated/', '*.config/*']
12
+ },
13
+ eslintjs.configs.recommended,
14
+ ...typescriptEslint.configs.recommended,
15
+ ...typescriptEslint.configs.stylistic,
16
+ pluginPromise.configs['flat/recommended'],
17
+ microsoftPowerApps.configs.paCheckerHosted,
18
+ eslintConfigPrettier.configs.recommended,
19
+ {
20
+ plugins: {
21
+ '@microsoft/power-apps': microsoftPowerApps
22
+ },
23
+
24
+ languageOptions: {
25
+ globals: {
26
+ ...globals.browser
27
+ },
28
+ parserOptions: {
29
+ ecmaVersion: 2020,
30
+ sourceType: 'module',
31
+ tsconfigRootDir: import.meta.dirname
32
+ }
33
+ },
34
+
35
+ rules: {
36
+ '@microsoft/power-apps/avoid-2011-api': 'error',
37
+ '@microsoft/power-apps/avoid-browser-specific-api': 'error',
38
+ '@microsoft/power-apps/avoid-crm2011-service-odata': 'warn',
39
+ '@microsoft/power-apps/avoid-crm2011-service-soap': 'warn',
40
+ '@microsoft/power-apps/avoid-dom-form-event': 'warn',
41
+ '@microsoft/power-apps/avoid-dom-form': 'warn',
42
+ '@microsoft/power-apps/avoid-isactivitytype': 'warn',
43
+ '@microsoft/power-apps/avoid-modals': 'warn',
44
+ '@microsoft/power-apps/avoid-unpub-api': 'warn',
45
+ '@microsoft/power-apps/avoid-window-top': 'warn',
46
+ '@microsoft/power-apps/do-not-make-parent-assumption': 'warn',
47
+ '@microsoft/power-apps/use-async': 'error',
48
+ '@microsoft/power-apps/use-cached-webresource': 'warn',
49
+ '@microsoft/power-apps/use-client-context': 'warn',
50
+ '@microsoft/power-apps/use-global-context': 'error',
51
+ '@microsoft/power-apps/use-grid-api': 'warn',
52
+ '@microsoft/power-apps/use-navigation-api': 'warn',
53
+ '@microsoft/power-apps/use-offline': 'warn',
54
+ '@microsoft/power-apps/use-org-setting': 'error',
55
+ '@microsoft/power-apps/use-relative-uri': 'warn',
56
+ '@microsoft/power-apps/use-utility-dialogs': 'warn'
57
+ }
58
+ }
59
+ ];
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "webpack --mode=production",
8
- "start": "webpack --mode=development --watch",
8
+ "dev": "webpack --mode=development --watch",
9
9
  "gen": "plop",
10
10
  "deploy": "dataverse-utils deploy webresource",
11
11
  "generate": "dataverse-utils generate"
@@ -6,13 +6,8 @@
6
6
  "target": "esnext",
7
7
  "moduleResolution": "bundler",
8
8
  "outDir": "lib",
9
- "esModuleInterop": true
9
+ "rootDir": "src/scripts",
10
+ "types": ["xrm"]
10
11
  },
11
- "compileOnSave": false,
12
- "include": [
13
- "src/scripts/*.ts"
14
- ],
15
- "exclude": [
16
- "node_modules"
17
- ]
12
+ "compileOnSave": false
18
13
  }
@@ -1,36 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- parser: '@typescript-eslint/parser',
4
- plugins: [
5
- '@typescript-eslint',
6
- "@microsoft/power-apps"
7
- ],
8
- extends: [
9
- 'eslint:recommended',
10
- 'plugin:@typescript-eslint/recommended',
11
- "prettier"
12
- ],
13
- rules: {
14
- "@microsoft/power-apps/avoid-2011-api": "error",
15
- "@microsoft/power-apps/avoid-browser-specific-api": "error",
16
- "@microsoft/power-apps/avoid-crm2011-service-odata": "warn",
17
- "@microsoft/power-apps/avoid-crm2011-service-soap": "warn",
18
- "@microsoft/power-apps/avoid-dom-form-event": "warn",
19
- "@microsoft/power-apps/avoid-dom-form": "warn",
20
- "@microsoft/power-apps/avoid-isactivitytype": "warn",
21
- "@microsoft/power-apps/avoid-modals": "warn",
22
- "@microsoft/power-apps/avoid-unpub-api": "warn",
23
- "@microsoft/power-apps/avoid-window-top": "warn",
24
- "@microsoft/power-apps/do-not-make-parent-assumption": "warn",
25
- "@microsoft/power-apps/use-async": "error",
26
- "@microsoft/power-apps/use-cached-webresource": "warn",
27
- "@microsoft/power-apps/use-client-context": "warn",
28
- "@microsoft/power-apps/use-global-context": "error",
29
- "@microsoft/power-apps/use-grid-api": "warn",
30
- "@microsoft/power-apps/use-navigation-api": "warn",
31
- "@microsoft/power-apps/use-offline": "warn",
32
- "@microsoft/power-apps/use-org-setting": "error",
33
- "@microsoft/power-apps/use-relative-uri": "warn",
34
- "@microsoft/power-apps/use-utility-dialogs": "warn"
35
- }
36
- };