Skip to content

Commit

Permalink
[EngSys] upgrade dev dependency pretter to ^3.2.5
Browse files Browse the repository at this point in the history
There's some changes in 3.2.5 which caused formatting changes for tsconfig.json
which caused our rush automation failed in check-format when moving to latest 3.2.5.

https://github.com/prettier/prettier/blob/main/CHANGELOG.md#use-json-parser-for-tsconfigjson-by-default-16012-by-sosukesuzuki

This change upgrades prettier to version ^3.2.5 and format files using "rush format".

***NO_CI***
  • Loading branch information
jeremymeng committed Feb 6, 2024
1 parent 18d6d50 commit 09784c3
Show file tree
Hide file tree
Showing 164 changed files with 417 additions and 417 deletions.
28 changes: 14 additions & 14 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion common/tools/dev-tool/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"env-paths": "^2.2.1",
"fs-extra": "^11.2.0",
"minimist": "^1.2.8",
"prettier": "^3.2.4",
"prettier": "^3.2.5",
"rollup": "^4.0.0",
"rollup-plugin-polyfill-node": "^0.13.0",
"rollup-plugin-visualizer": "^5.9.3",
Expand Down
4 changes: 2 additions & 2 deletions common/tools/dev-tool/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"downlevelIteration": true,

"resolveJsonModule": true,
"skipLibCheck": true,
"skipLibCheck": true
},
"exclude": ["test/samples/files/expectations/**/*"],
"include": ["./src/**/*.ts", "./test/**/*.ts"],
"include": ["./src/**/*.ts", "./test/**/*.ts"]
}
2 changes: 1 addition & 1 deletion common/tools/eslint-plugin-azure-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"chai": "^4.2.0",
"eslint": "^8.50.0",
"mocha": "^10.0.0",
"prettier": "^3.2.4",
"prettier": "^3.2.5",
"rimraf": "^3.0.0",
"source-map-support": "^0.5.9",
"typescript": "~5.3.3",
Expand Down
4 changes: 2 additions & 2 deletions common/tools/eslint-plugin-azure-sdk/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"types": ["node"],
"sourceMap": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"skipLibCheck": true
},
"include": ["src", "tests"],
"exclude": ["node_modules"],
"exclude": ["node_modules"]
}
2 changes: 1 addition & 1 deletion common/tools/vite-plugin-browser-test-map/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"devDependencies": {
"@types/node": "^18.0.0",
"eslint": "^8.50.0",
"prettier": "^3.2.4",
"prettier": "^3.2.5",
"rimraf": "^3.0.0",
"typescript": "~5.3.3"
}
Expand Down
4 changes: 2 additions & 2 deletions common/tools/vite-plugin-browser-test-map/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"module": "Node16",
"moduleResolution": "Node16",
"outDir": "./dist",
"declarationDir": "./types",
"declarationDir": "./types"
},
"include": ["src/**/*.ts"],
"include": ["src/**/*.ts"]
}
2 changes: 1 addition & 1 deletion eng/tools/dependency-testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"homepage": "https://github.com/Azure/azure-sdk-for-js#readme",
"dependencies": {
"cross-spawn": "^7.0.3",
"prettier": "^3.2.4",
"prettier": "^3.2.5",
"semver": "^7.5.4",
"yargs": "^17.7.2",
"@azure-tools/eng-package-utils": "file:../eng-package-utils"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"eslint": "^8.19.0",
"jest": "^29.2.1",
"metro-react-native-babel-preset": "0.73.8",
"prettier": "^3.2.4",
"prettier": "^3.2.5",
"react-test-renderer": "18.2.0",
"typescript": "4.8.4"
},
Expand Down
6 changes: 3 additions & 3 deletions sdk/agrifood/agrifood-farming-rest/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"outDir": "./dist-esm",
"declarationDir": "./types",
"paths": {
"@azure-rest/agrifood-farming": ["./src/index"],
},
"@azure-rest/agrifood-farming": ["./src/index"]
}
},
"include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"],
"include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"]
}
4 changes: 2 additions & 2 deletions sdk/anomalydetector/ai-anomaly-detector-rest/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compilerOptions": {
"outDir": "./dist-esm",
"declarationDir": "./types",
"paths": { "@azure-rest/ai-anomaly-detector": ["./src/index"] },
"paths": { "@azure-rest/ai-anomaly-detector": ["./src/index"] }
},
"include": ["src/**/*.ts", "./test/**/*.ts", "samples-dev/**/*.ts"],
"include": ["src/**/*.ts", "./test/**/*.ts", "samples-dev/**/*.ts"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@types/react": "^18.0.17",
"@types/react-dom": "^18.0.6",
"@vitejs/plugin-react": "^2.0.1",
"prettier": "^3.2.4",
"prettier": "^3.2.5",
"sass": "^1.54.4",
"typescript": "^4.7.4",
"vite": "^3.0.7"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@azure/api-management-custom-widgets-tools": "^1.0.0-beta.2"
},
"devDependencies": {
"prettier": "^3.2.4",
"prettier": "^3.2.5",
"sass": "^1.54.4",
"typescript": "^4.7.4",
"vite": "^3.0.7"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"devDependencies": {
"@vitejs/plugin-vue": "^3.0.3",
"prettier": "^3.2.4",
"prettier": "^3.2.5",
"sass": "^1.54.4",
"typescript": "^4.7.4",
"vite": "^3.0.7"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
},
"dependencies": {
"mustache": "^4.2.0",
"prettier": "^3.2.4",
"prettier": "^3.2.5",
"glob": "^9.0.0",
"tslib": "^2.2.0",
"typescript": "~5.3.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@types/react": "^18.0.17",
"@types/react-dom": "^18.0.6",
"@vitejs/plugin-react": "^2.0.1",
"prettier": "^3.2.4",
"prettier": "^3.2.5",
"sass": "^1.54.4",
"typescript": "^4.7.4",
"vite": "^3.0.7"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@azure/api-management-custom-widgets-tools": "^1.0.0-beta.2"
},
"devDependencies": {
"prettier": "^3.2.4",
"prettier": "^3.2.5",
"sass": "^1.54.4",
"typescript": "^4.7.4",
"vite": "^3.0.7"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"devDependencies": {
"@vitejs/plugin-vue": "^3.0.3",
"prettier": "^3.2.4",
"prettier": "^3.2.5",
"sass": "^1.54.4",
"typescript": "^4.7.4",
"vite": "^3.0.7"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"extends": "../../../tsconfig.package",
"compilerOptions": {
"outDir": "./dist-esm",
"declarationDir": "./types",
"declarationDir": "./types"
},
"exclude": ["./src/templates/**"],
"include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"],
"include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"@azure/storage-blob": "^12.9.0",
"mime": "^4.0.1",
"mustache": "^4.2.0",
"prettier": "^3.2.4",
"prettier": "^3.2.5",
"tslib": "^2.2.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"lib": ["dom"],
"outDir": "./dist-esm",
"declarationDir": "./types",
"resolveJsonModule": true,
"resolveJsonModule": true
},
"include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"],
"include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"]
}
6 changes: 3 additions & 3 deletions sdk/appconfiguration/app-configuration/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"outDir": "./dist-esm",
"downlevelIteration": true,
"paths": {
"@azure/app-configuration": ["./src/index"],
},
"@azure/app-configuration": ["./src/index"]
}
},
"include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"],
"include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"compilerOptions": {
"module": "commonjs",
"declarationDir": "./types/latest",
"outDir": "./dist-esm",
"outDir": "./dist-esm"
},
"compileOnSave": true,
"exclude": ["node_modules"],
"include": ["./test/**/*.ts"],
"include": ["./test/**/*.ts"]
}
6 changes: 3 additions & 3 deletions sdk/appservice/arm-appservice-rest/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"outDir": "./dist-esm",
"declarationDir": "./types",
"paths": {
"@azure-rest/arm-appservice": ["./src/index"],
},
"@azure-rest/arm-appservice": ["./src/index"]
}
},
"include": ["src/**/*.ts", "./test/**/*.ts", "samples-dev/**/*.ts"],
"include": ["src/**/*.ts", "./test/**/*.ts", "samples-dev/**/*.ts"]
}
6 changes: 3 additions & 3 deletions sdk/attestation/attestation/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"outDir": "./dist-esm",
"declarationDir": "./types",
"paths": {
"@azure/attestation": ["./src/index"],
},
"@azure/attestation": ["./src/index"]
}
},
"include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"],
"include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"]
}
6 changes: 3 additions & 3 deletions sdk/cognitivelanguage/ai-language-conversations/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"outDir": "./dist-esm",
"declarationDir": "./types",
"paths": {
"@azure/ai-language-conversations": ["./src/index"],
},
"@azure/ai-language-conversations": ["./src/index"]
}
},
"include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"],
"include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"]
}
6 changes: 3 additions & 3 deletions sdk/cognitivelanguage/ai-language-text/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"outDir": "./dist-esm",
"declarationDir": "./types",
"paths": {
"@azure/ai-language-text": ["./src/index"],
},
"@azure/ai-language-text": ["./src/index"]
}
},
"include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"],
"include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"]
}
6 changes: 3 additions & 3 deletions sdk/cognitivelanguage/ai-language-textauthoring/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"outDir": "./dist-esm",
"declarationDir": "./types",
"paths": {
"@azure/ai-language-textauthoring": ["./src/index"],
},
"@azure/ai-language-textauthoring": ["./src/index"]
}
},
"include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"],
"include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"]
}
Loading

0 comments on commit 09784c3

Please sign in to comment.