Skip to content

Commit

Permalink
Update (#1058)
Browse files Browse the repository at this point in the history
  • Loading branch information
wandyezj authored May 16, 2024
1 parent b02f5ca commit ba2b71f
Show file tree
Hide file tree
Showing 301 changed files with 34,280 additions and 43,711 deletions.
23 changes: 23 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
* text=auto
.gitattributes text
*.css text eol=lf
*.html text eol=lf
*.js text eol=lf
*.json text eol=lf
*.kql text eol=lf
*.lock text eol=lf
*.md text eol=lf
*.ts text eol=lf
*.tsx text eol=lf
*.txt text eol=lf
*.yaml text eol=lf
*.yml text eol=lf
.npmrc text eol=lf

*.cs text eol=crlf
*.sln text eol=crlf
*.csproj text eol=crlf


*.png binary
*.jpg binary
14 changes: 8 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
build:
timeout-minutes: 10
# Match Development Operating System
runs-on: ubuntu-latest
runs-on: windows-latest
steps:
# Setup
- uses: actions/checkout@v3
Expand All @@ -32,7 +32,7 @@ jobs:
uses: actions/setup-node@v3
with:
# Match Development Node Version
node-version: '20.x'
node-version: "20.x"

# Tool Versions
- name: Node Version
Expand All @@ -46,11 +46,11 @@ jobs:
run: npm ci

# 'npm run build' broken into separate steps
# - name: clean
# run: npm run clean
- name: clean
run: npm run clean

# - name: style
# run: npm run style-check
- name: style
run: npm run style-check

# - name: spell-check
# run: npm run spell-check --if-present
Expand All @@ -63,6 +63,8 @@ jobs:

- name: build
run: npm run build
env:
CI: false

# - name: Upload static files as artifact
# if: inputs.upload
Expand Down
7 changes: 7 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# See https://docs.npmjs.com/misc/config for all the things you can do with this file.

# This registry+auth setting allows us to fetch packages from our private office npm registry
registry=https://registry.npmjs.org
always-auth=true
package-lock=true
engine-strict=true
18 changes: 0 additions & 18 deletions .prettierrc.json

This file was deleted.

111 changes: 111 additions & 0 deletions .vscode/cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
// cSpell Settings
{
// Version of the setting file. Always 0.2
"version": "0.2",
// language - current active spelling language
"language": "en",
// words - list of words to be always considered correct
// prettier-ignore
"words": [
"CODEOWNERS",
"eqeqeq",
"linebreak",
"markdownlint",
"minifier",
"prettierrc",
"Addin",
"Addins",
"Checkmark",
"Consolas",
"Copyable",
"Customizer",
"DOCTYPE",
"Env's",
"Intelli",
"IntelliSense",
"Lowercased",
"Menlo",
"Nico",
"Popout",
"PowerPoint",
"Stringifiable",
"Truthy",
"Unmount",
"Visio",
"Zlatkovsky",
"adhoc",
"autoformat",
"autoprefixer",
"azurewebsites",
"backend",
"customfunction",
"customfunction's",
"customfunctionmanager",
"devtools",
"dialog's",
"dogfood",
"dogfooding",
"dropdown",
"else's",
"filepath",
"flexbox",
"gitignore",
"guid",
"hardcoded",
"iframe's",
"injectable",
"intellisense",
"jsyaml",
"jupyter",
"keyframes",
"localstorage",
"loglevel",
"minified",
"monkeypatch",
"officejs",
"onenote",
"overscroll",
"parameterized",
"polyfill",
"polyfilling",
"polyfills",
"powepoint",
"prereq",
"promisify",
"proxying",
"redirector",
"rehydrated",
"repo",
"reselect",
"resizable",
"scriptlab",
"sideload",
"sideloading",
"stylesheet",
"subfolders",
"taskpane",
"testid",
"textfield",
"transpiled",
"typesafe",
"uncomment",
"uniquify",
"unminified",
"unpkg",
"untrusted",
"uppercased",
"youtube"
],
// flagWords - list of words to be always considered incorrect
// This is useful for offensive words and common spelling errors.
// For example "hte" should be "the"
"flagWords": [],

"ignorePaths": [
"**/node_modules",
"**/node_modules/**",
"packages/editor/src/interfaces/monaco.d.ts",
"**/packages/editor/src/utils/custom-functions/samples/**",
"package.json"
]
}
18 changes: 9 additions & 9 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
// Extension identifier format: ${publisher}.${name}
"esbenp.prettier-vscode",
"vscode-icons-team.vscode-icons",
"wayou.vscode-todo-highlight",
"streetsidesoftware.code-spell-checker",
"styled-components.vscode-styled-components",
"dbaeumer.vscode-eslint"
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint",
"davidanson.vscode-markdownlint",
"bierner.github-markdown-preview",
"streetsidesoftware.code-spell-checker",
// Additional extensions
"wayou.vscode-todo-highlight",
"styled-components.vscode-styled-components",
"vscode-icons-team.vscode-icons",
]
}
128 changes: 32 additions & 96 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,100 +6,36 @@
"editor.formatOnSave": true,
"editor.bracketPairColorization.enabled": true,
"editor.guides.bracketPairs": "active",
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},

"[markdown]": {
"editor.defaultFormatter": "DavidAnson.vscode-markdownlint",
"editor.formatOnSave": true
},

"prettier.configPath": "config/prettier.json",
"typescript.tsdk": "node_modules\\typescript\\lib",
"cSpell.words": [
"Addin",
"Addins",
"Checkmark",
"Consolas",
"Copyable",
"Customizer",
"DOCTYPE",
"Env's",
"Intelli",
"IntelliSense",
"Lowercased",
"Menlo",
"Nico",
"Popout",
"PowerPoint",
"Stringifiable",
"Truthy",
"Unmount",
"Visio",
"Zlatkovsky",
"adhoc",
"autoformat",
"autoprefixer",
"azurewebsites",
"backend",
"bornholm",
"customfunction",
"customfunction's",
"customfunctionmanager",
"devtools",
"dialog's",
"dogfood",
"dogfooding",
"dropdown",
"else's",
"filepath",
"flexbox",
"gitignore",
"guid",
"hardcoded",
"iframe's",
"injectable",
"intellisense",
"jsyaml",
"jupyter",
"keyframes",
"localstorage",
"loglevel",
"minified",
"monkeypatch",
"officejs",
"onenote",
"overscroll",
"parameterized",
"polyfill",
"polyfilling",
"polyfills",
"powepoint",
"prereq",
"promisify",
"proxying",
"redirector",
"rehydrated",
"repo",
"reselect",
"resizable",
"scriptlab",
"sideload",
"sideloading",
"stylesheet",
"subfolders",
"taskpane",
"testid",
"textfield",
"transpiled",
"typesafe",
"uncomment",
"uniquify",
"unminified",
"unpkg",
"untrusted",
"uppercased",
"youtube"
],
"cSpell.ignorePaths": [
"**/node_modules",
"**/node_modules/**",
"packages/editor/src/interfaces/monaco.d.ts",
"**/packages/editor/src/utils/custom-functions/samples/**",
"package.json"
],
"cSpell.flagWords": [
"hte"
]
}

"markdownlint.config": {
"extends": "./config/markdownlint.jsonc"
}
}
12 changes: 6 additions & 6 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
module.exports = {
presets: [
[
'@babel/preset-env',
"@babel/preset-env",
{
loose: true,
targets: {
browsers: ['ie >= 11'],
browsers: [">0.25%", "not IE", "not op_mini all", "not dead"],
},
exclude: ['proposal-dynamic-import'],
exclude: ["proposal-dynamic-import"],
},
],
'@babel/preset-react',
'@babel/preset-typescript',
"@babel/preset-react",
"@babel/preset-typescript",
],
plugins: ['babel-plugin-macros', 'syntax-jsx'],
plugins: ["babel-plugin-macros", "syntax-jsx"],
};
5 changes: 5 additions & 0 deletions config/markdownlint.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"MD007": { "indent": 4 },
"MD013": false,
"MD024": { "allow_different_nesting": true },
}
Loading

0 comments on commit ba2b71f

Please sign in to comment.