Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: enable package.json prettier plugin and apply consistent style on whole monorepo #26827

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions apps/perf-test-react-components/package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕵 fluentuiv8 Open the Visual Regressions report to inspect the 2 screenshots

✅ There was 0 screenshots added, 2 screenshots removed, 1043 screenshots unchanged, 0 screenshots with different dimensions and 0 screenshots with visible difference.

unknown 2 screenshots
Image Name Diff(in Pixels) Image Type
Pivot - Overflow.Root.Narrow - Last tab selected.chromium.png 0 Removed
Pivot - Overflow.Root.Narrow - Overflow menu.chromium.png 0 Removed

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕵 FluentUI-v0 Open the Visual Regressions report to inspect the 3 screenshots

✅ There was 0 screenshots added, 0 screenshots removed, 1257 screenshots unchanged, 0 screenshots with different dimensions and 3 screenshots with visible difference.

unknown 3 screenshots
Image Name Diff(in Pixels) Image Type
Card.Card Example Context Menu.chromium.png 16562 Changed
Card.Card Example Expandable.chromium.png 17227 Changed
Card.Card Example Selectable Grid.chromium.png 113007 Changed

"name": "@fluentui/perf-test-react-components",
"description": "Perf tests for @fluentui/react-components.",
"version": "9.0.0-rc.0",
"private": true,
"description": "Perf tests for @fluentui/react-components.",
"scripts": {
"build": "just-scripts build",
"bundle": "just-scripts bundle",
"lint": "just-scripts lint",
"just": "just-scripts",
"clean": "just-scripts clean",
"code-style": "just-scripts code-style"
},
"devDependencies": {
"@fluentui/eslint-plugin": "*",
"@fluentui/scripts-tasks": "*",
"@fluentui/scripts-webpack": "*"
"code-style": "just-scripts code-style",
"just": "just-scripts",
"lint": "just-scripts lint"
},
"dependencies": {
"@griffel/core": "^1.9.0",
"@fluentui/react-avatar": "^9.3.4",
"@fluentui/react-button": "^9.2.3",
"@fluentui/react-field": "9.0.0-alpha.19",
Expand All @@ -26,12 +20,18 @@
"@fluentui/react-provider": "^9.3.3",
"@fluentui/react-spinbutton": "^9.1.2",
"@fluentui/react-theme": "^9.1.5",
"@griffel/core": "^1.9.0",
"@microsoft/load-themed-styles": "^1.10.26",
"flamegrill": "0.2.0",
"lodash": "^4.17.15",
"querystring": "^0.2.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"tslib": "^2.1.0"
},
"devDependencies": {
"@fluentui/eslint-plugin": "*",
"@fluentui/scripts-tasks": "*",
"@fluentui/scripts-webpack": "*"
}
}
18 changes: 9 additions & 9 deletions apps/perf-test/package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
{
"name": "@fluentui/perf-test",
"description": "Perf tests for @fluentui/react.",
"version": "1.0.0",
"private": true,
"description": "Perf tests for @fluentui/react.",
"scripts": {
"build": "just-scripts build",
"bundle": "just-scripts bundle",
"lint": "just-scripts lint",
"just": "just-scripts",
"clean": "just-scripts clean",
"code-style": "just-scripts code-style"
},
"devDependencies": {
"@fluentui/eslint-plugin": "*",
"@fluentui/scripts-tasks": "*",
"@fluentui/scripts-webpack": "*"
"code-style": "just-scripts code-style",
"just": "just-scripts",
"lint": "just-scripts lint"
},
"dependencies": {
"@fluentui/example-data": "^8.4.6",
Expand All @@ -26,5 +21,10 @@
"react": "17.0.2",
"react-dom": "17.0.2",
"tslib": "^2.1.0"
},
"devDependencies": {
"@fluentui/eslint-plugin": "*",
"@fluentui/scripts-tasks": "*",
"@fluentui/scripts-webpack": "*"
}
}
8 changes: 4 additions & 4 deletions apps/pr-deploy-site/package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"name": "@fluentui/pr-deploy-site",
"version": "1.0.0",
"private": true,
"description": "A site to be deployed as a static site to view what is built during PR",
"license": "MIT",
"main": "index.js",
"private": true,
"scripts": {
"clean": "just-scripts clean",
"generate:site": "just-scripts generate:site",
"lint": "eslint --ext .js,.ts --cache .",
"type-check": "tsc -p ."
},
"license": "MIT",
"devDependencies": {
"@fluentui/eslint-plugin": "*",
"@fluentui/scripts-tasks": "*",
"@fluentui/scripts-monorepo": "*"
"@fluentui/scripts-monorepo": "*",
"@fluentui/scripts-tasks": "*"
}
}
42 changes: 21 additions & 21 deletions apps/public-docsite-resources/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,49 +3,49 @@
"version": "8.1.41",
"private": true,
"description": "Fluent UI React local demo app",
"main": "lib-commonjs/index.js",
"module": "lib/index.js",
"repository": {
"type": "git",
"url": "https://github.com/microsoft/fluentui"
},
"license": "MIT",
"sideEffects": [
"*.global.*",
"*Examples.*",
"*Example.*"
],
"main": "lib-commonjs/index.js",
"module": "lib/index.js",
"typings": "lib/index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/microsoft/fluentui"
},
"license": "MIT",
"scripts": {
"build": "just-scripts build",
"bundle": "just-scripts bundle",
"lint": "just-scripts lint",
"just": "just-scripts",
"clean": "just-scripts clean",
"code-style": "just-scripts code-style",
"just": "just-scripts",
"lint": "just-scripts lint",
"start": "just-scripts dev",
"update-snapshots": "just-scripts jest -u"
},
"devDependencies": {
"@fluentui/api-docs": "^8.2.6",
"@fluentui/eslint-plugin": "*",
"@fluentui/scripts-monorepo": "*",
"@fluentui/scripts-tasks": "*",
"@fluentui/scripts-webpack": "*"
},
"dependencies": {
"@fluentui/react": "^8.105.7",
"@fluentui/react-examples": "^8.34.4",
"@microsoft/load-themed-styles": "^1.10.26",
"@fluentui/azure-themes": "^8.5.58",
"@fluentui/react-docsite-components": "^8.11.19",
"@fluentui/font-icons-mdl2": "^8.5.8",
"@fluentui/react": "^8.105.7",
"@fluentui/react-docsite-components": "^8.11.19",
"@fluentui/react-examples": "^8.34.4",
"@fluentui/react-monaco-editor": "^1.7.54",
"@fluentui/set-version": "^8.2.5",
"@fluentui/theme-samples": "^8.7.54",
"@fluentui/react-monaco-editor": "^1.7.54",
"@microsoft/load-themed-styles": "^1.10.26",
"office-ui-fabric-core": "^11.0.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"tslib": "^2.1.0"
},
"devDependencies": {
"@fluentui/api-docs": "^8.2.6",
"@fluentui/eslint-plugin": "*",
"@fluentui/scripts-monorepo": "*",
"@fluentui/scripts-tasks": "*",
"@fluentui/scripts-webpack": "*"
}
}
22 changes: 11 additions & 11 deletions apps/public-docsite-v9/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"scripts": {
"build": "just-scripts build",
"build-storybook": "build-storybook -o ./dist/storybook --docs && node ./.storybook/fix-title.js 'Fluent UI React v9' ../dist",
"chromatic:branch": "npx [email protected] --project-token $CHROMATIC_PROJECT_TOKEN --exit-zero-on-changes --build-script-name build-storybook",
"chromatic": "npx [email protected] --project-token $CHROMATIC_PROJECT_TOKEN --exit-zero-on-changes --build-script-name build-storybook --branch-name microsoft:master",
"chromatic:branch": "npx [email protected] --project-token $CHROMATIC_PROJECT_TOKEN --exit-zero-on-changes --build-script-name build-storybook",
"clean": "just-scripts clean",
"code-style": "just-scripts code-style",
"just": "just-scripts",
Expand All @@ -16,25 +16,25 @@
"storybook": "start-storybook --port 3000 --no-manager-cache",
"storybook:docs": "yarn storybook --docs"
},
"devDependencies": {
"@fluentui/eslint-plugin": "*",
"@fluentui/scripts-storybook": "*",
"@fluentui/scripts-tasks": "*"
},
"dependencies": {
"@fluentui/react-migration-v8-v9": "^9.1.4",
"@fluentui/react-migration-v0-v9": "9.0.0-alpha.0",
"@fluentui/react": "^8.105.7",
"@fluentui/react-northstar": "^0.66.1",
"@fluentui/react-icons-northstar": "^0.66.1",
"@fluentui/storybook": "^1.0.0",
"@fluentui/react-components": "^9.15.1",
"@fluentui/react-icons-northstar": "^0.66.1",
"@fluentui/react-migration-v0-v9": "9.0.0-alpha.0",
"@fluentui/react-migration-v8-v9": "^9.1.4",
"@fluentui/react-northstar": "^0.66.1",
"@fluentui/react-storybook-addon": "9.0.0-rc.1",
"@fluentui/react-theme": "^9.1.5",
"@fluentui/storybook": "^1.0.0",
"@griffel/react": "^1.5.2",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-window": "^1.8.6",
"tslib": "^2.1.0"
},
"devDependencies": {
"@fluentui/eslint-plugin": "*",
"@fluentui/scripts-storybook": "*",
"@fluentui/scripts-tasks": "*"
}
}
36 changes: 18 additions & 18 deletions apps/public-docsite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,34 @@
"version": "8.2.41",
"private": true,
"description": "The official website for the Fluent UI project.",
"sideEffects": true,
"main": "lib-commonjs/root.js",
"module": "lib/root.js",
"typings": "lib/root.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/microsoft/fluentui"
},
"license": "MIT",
"sideEffects": true,
"main": "lib-commonjs/root.js",
"module": "lib/root.js",
"typings": "lib/root.d.ts",
"scripts": {
"build": "just-scripts build",
"bundle": "just-scripts bundle",
"lint": "just-scripts lint",
"test": "just-scripts test",
"just": "just-scripts",
"clean": "just-scripts clean",
"code-style": "just-scripts code-style",
"start": "just-scripts dev"
},
"license": "MIT",
"devDependencies": {
"@fluentui/common-styles": "^1.2.17",
"@fluentui/eslint-plugin": "*",
"@fluentui/react-monaco-editor": "^1.7.54",
"write-file-webpack-plugin": "^4.1.0",
"@fluentui/scripts-tasks": "*",
"@fluentui/scripts-webpack": "*"
"just": "just-scripts",
"lint": "just-scripts lint",
"start": "just-scripts dev",
"test": "just-scripts test"
},
"dependencies": {
"@fluentui/fluent2-theme": "^8.104.21",
"@fluentui/font-icons-mdl2": "^8.5.8",
"@fluentui/public-docsite-resources": "^8.1.41",
"@fluentui/public-docsite-setup": "^0.3.17",
"@fluentui/react": "^8.105.7",
"@fluentui/react-docsite-components": "^8.11.19",
"@fluentui/react-examples": "^8.34.4",
"@fluentui/react-experiments": "^8.14.49",
"@fluentui/fluent2-theme": "^8.104.21",
"@fluentui/react-file-type-icons": "^8.8.8",
"@fluentui/react-icons-mdl2": "^1.3.31",
"@fluentui/react-icons-mdl2-branded": "^1.2.32",
Expand All @@ -52,5 +44,13 @@
"react-dom": "17.0.2",
"tslib": "^2.1.0",
"whatwg-fetch": "2.0.4"
},
"devDependencies": {
"@fluentui/common-styles": "^1.2.17",
"@fluentui/eslint-plugin": "*",
"@fluentui/react-monaco-editor": "^1.7.54",
"@fluentui/scripts-tasks": "*",
"@fluentui/scripts-webpack": "*",
"write-file-webpack-plugin": "^4.1.0"
}
}
24 changes: 12 additions & 12 deletions apps/react-18-tests-v8/package.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,17 @@
{
"name": "@fluentui/react-18-tests-v8",
"description": "React 18 test application",
"version": "8.0.0",
"private": true,
"description": "React 18 test application",
"scripts": {
"type-check": "tsc -p tsconfig.react-compat-check.json",
"format": "prettier -w . --ignore-path ../.prettierignore",
"format:check": "yarn format -c",
"e2e": "cypress run --component",
"e2e:local": "cypress open --component",
"format": "prettier -w . --ignore-path ../.prettierignore",
"format:check": "yarn format -c",
"lint": "eslint --ext .js,.ts.,.tsx ./src",
"start": "webpack-dev-server --mode=development",
"test": "jest --passWithNoTests",
"start": "webpack-dev-server --mode=development"
},
"devDependencies": {
"@fluentui/eslint-plugin": "*",
"@fluentui/scripts-cypress": "*",
"@fluentui/scripts-jest": "*",
"@fluentui/scripts-tasks": "*",
"@fluentui/scripts-webpack": "*"
"type-check": "tsc -p tsconfig.react-compat-check.json"
},
"dependencies": {
"@fluentui/react": "^8.105.7",
Expand All @@ -28,5 +21,12 @@
"react": "18.2.0",
"react-dom": "18.2.0",
"tslib": "^2.1.0"
},
"devDependencies": {
"@fluentui/eslint-plugin": "*",
"@fluentui/scripts-cypress": "*",
"@fluentui/scripts-jest": "*",
"@fluentui/scripts-tasks": "*",
"@fluentui/scripts-webpack": "*"
}
}
22 changes: 11 additions & 11 deletions apps/react-18-tests-v9/package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
{
"name": "@fluentui/react-18-tests-v9",
"description": "React 18 test application",
"version": "1.0.0",
"private": true,
"description": "React 18 test application",
"scripts": {
"type-check": "tsc -p tsconfig.react-compat-check.json",
"lint": "eslint --ext .js,.ts,.tsx ./src",
"test": "jest --passWithNoTests",
"e2e": "cypress run --component",
"e2e:local": "cypress open --component",
"format": "prettier -w . --ignore-path ../.prettierignore",
"format:check": "yarn format -c",
"lint": "eslint --ext .js,.ts,.tsx ./src",
"start": "webpack-dev-server --mode=development",
"e2e:local": "cypress open --component",
"e2e": "cypress run --component"
},
"devDependencies": {
"@fluentui/eslint-plugin": "*",
"@fluentui/scripts-cypress": "*",
"@fluentui/scripts-tasks": "*"
"test": "jest --passWithNoTests",
"type-check": "tsc -p tsconfig.react-compat-check.json"
},
"dependencies": {
"@fluentui/react-components": "^9.15.1",
Expand All @@ -25,5 +20,10 @@
"react": "18.2.0",
"react-dom": "18.2.0",
"tslib": "^2.1.0"
},
"devDependencies": {
"@fluentui/eslint-plugin": "*",
"@fluentui/scripts-cypress": "*",
"@fluentui/scripts-tasks": "*"
}
}
10 changes: 5 additions & 5 deletions apps/recipes-react-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@
"start": "start-storybook",
"type-check": "tsc"
},
"devDependencies": {
"@fluentui/eslint-plugin": "*",
"@fluentui/scripts-tasks": "*"
},
"dependencies": {
"@fluentui/react-components": "^9.15.1",
"@fluentui/react-icons": "^2.0.175",
"@fluentui/react-theme": "^9.1.5",
"@fluentui/react-provider": "^9.3.3",
"@fluentui/react-storybook-addon": "9.0.0-rc.1",
"@fluentui/react-theme": "^9.1.5",
"@griffel/react": "^1.5.2",
"react": "17.0.2",
"react-dom": "17.0.2",
"tslib": "^2.1.0"
},
"devDependencies": {
"@fluentui/eslint-plugin": "*",
"@fluentui/scripts-tasks": "*"
}
}
Loading