fix build error

This commit is contained in:
Don Kirkham 2022-10-20 11:07:11 -05:00
parent 4051904122
commit 254a22e080
3 changed files with 64 additions and 65 deletions

View File

@ -1,39 +1,39 @@
// For more information on how to run this SPFx project in a VS Code Remote Container, please visit https://aka.ms/spfx-devcontainer // For more information on how to run this SPFx project in a VS Code Remote Container, please visit https://aka.ms/spfx-devcontainer
{ {
"name": "SPFx 1.14.0", "name": "SPFx 1.14.0",
"image": "docker.io/m365pnp/spfx:1.14.0", "image": "docker.io/m365pnp/spfx:1.14.0",
// Set *default* container specific settings.json values on container create. // Set *default* container specific settings.json values on container create.
"settings": {}, "settings": {},
// Add the IDs of extensions you want installed when the container is created. // Add the IDs of extensions you want installed when the container is created.
"extensions": [ "extensions": [
"editorconfig.editorconfig", "editorconfig.editorconfig",
"dbaeumer.vscode-eslint" "dbaeumer.vscode-eslint"
], ],
// Use 'forwardPorts' to make a list of ports inside the container available locally. // Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [ "forwardPorts": [
4321, 4321,
35729, 35729
5432 ],
], "portsAttributes": {
"portsAttributes": { "4321": {
"4321": { "protocol": "https",
"protocol": "https", "label": "Manifest",
"label": "Manifest", "onAutoForward": "silent",
"onAutoForward": "silent", "requireLocalPort": true
"requireLocalPort": true },
}, // Not needed for SPFx>= 1.12.1
"5432": { // "5432": {
"protocol": "https", // "protocol": "https",
"label": "Workbench", // "label": "Workbench",
"onAutoForward": "silent" // "onAutoForward": "silent"
}, // },
"35729": { "35729": {
"protocol": "https", "protocol": "https",
"label": "LiveReload", "label": "LiveReload",
"onAutoForward": "silent", "onAutoForward": "silent",
"requireLocalPort": true "requireLocalPort": true
} }
}, },
"postCreateCommand": "bash .devcontainer/spfx-startup.sh", "postCreateCommand": "bash .devcontainer/spfx-startup.sh",
"remoteUser": "node" "remoteUser": "node"
} }

View File

@ -26,7 +26,7 @@ if ! grep -Fxq '*.pem' ./.gitignore
echo "# .PEM Certificates" >> .gitignore echo "# .PEM Certificates" >> .gitignore
echo "*.pem" >> .gitignore echo "*.pem" >> .gitignore
fi fi
npm i -g @pnp/cli-microsoft365
echo echo
echo -e "\e[1;92mReady!\e[0m" echo -e "\e[1;92mReady!\e[0m"

View File

@ -1,30 +1,29 @@
{ {
"extends": "./node_modules/@microsoft/sp-tslint-rules/base-tslint.json", "extends": "./node_modules/@microsoft/sp-tslint-rules/base-tslint.json",
"rules": { "rules": {
"class-name": false, "class-name": false,
"export-name": false, "export-name": false,
"forin": false, "forin": false,
"label-position": false, "label-position": false,
"member-access": true, "member-access": true,
"no-arg": false, "no-arg": false,
"no-console": false, "no-console": false,
"no-construct": false, "no-construct": false,
"no-duplicate-variable": true, "no-duplicate-variable": true,
"no-eval": false, "no-eval": false,
"no-function-expression": true, "no-function-expression": true,
"no-internal-module": true, "no-internal-module": true,
"no-shadowed-variable": true, "no-shadowed-variable": true,
"no-switch-case-fall-through": true, "no-switch-case-fall-through": false,
"no-unnecessary-semicolons": true, "no-unnecessary-semicolons": true,
"no-unused-expression": true, "no-unused-expression": true,
"no-use-before-declare": true, "no-with-statement": true,
"no-with-statement": true, "semicolon": true,
"semicolon": true, "trailing-comma": false,
"trailing-comma": false, "typedef": false,
"typedef": false, "typedef-whitespace": false,
"typedef-whitespace": false, "use-named-parameter": true,
"use-named-parameter": true, "variable-name": false,
"variable-name": false, "whitespace": false
"whitespace": false }
} }
}