Skip to content

Commit 80431c7

Browse files
authored
chore: upgrade prettier to v3 (#3135)
1 parent de9cec2 commit 80431c7

File tree

18 files changed

+100
-125
lines changed

18 files changed

+100
-125
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ node_modules/
1515
/solution/bash_problem_readme_template_en.md
1616
/solution/0100-0199/0177.Nth Highest Salary/Solution.sql
1717
/solution/0100-0199/0178.Rank Scores/Solution2.sql
18+
/solution/0100-0199/0196.Delete Duplicate Emails/Solution3.sql
1819
/solution/0500-0599/0586.Customer Placing the Largest Number of Orders/Solution2.sql
1920
/solution/1400-1499/1454.Active Users/Solution.sql
2021
/solution/1600-1699/1635.Hopper Company Queries I/Solution.sql

.prettierrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@
1616
"files": ["*.sql"],
1717
"options": { "parser": "mysql" }
1818
}
19-
]
19+
],
20+
"plugins": ["prettier-plugin-rust", "prettier-plugin-sql-cst", "@prettier/plugin-php"]
2021
}

package-lock.json

Lines changed: 34 additions & 81 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
"devDependencies": {
66
"@commitlint/cli": "^19.3.0",
77
"@commitlint/config-conventional": "^19.2.2",
8-
"@prettier/plugin-php": "^0.19.7",
8+
"@prettier/plugin-php": "^0.22.2",
99
"clang-format": "1.8.0",
1010
"husky": "^9.0.1",
1111
"lint-staged": "^15.2.7",
12-
"prettier": "^2.8.8",
12+
"prettier": "^3.3.2",
1313
"prettier-plugin-rust": "^0.1.9",
1414
"prettier-plugin-sql-cst": "^0.11.5"
1515
},

solution/0300-0399/0304.Range Sum Query 2D - Immutable/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ class NumMatrix {
246246
#### Rust
247247

248248
```rust
249-
250249
/**
251250
* Your NumMatrix object will be instantiated and called as such:
252251
* let obj = NumMatrix::new(matrix);

solution/0300-0399/0304.Range Sum Query 2D - Immutable/README_EN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ class NumMatrix {
245245
#### Rust
246246

247247
```rust
248+
248249
/**
249250
* Your NumMatrix object will be instantiated and called as such:
250251
* let obj = NumMatrix::new(matrix);

solution/0300-0399/0374.Guess Number Higher or Lower/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ function guessNumber(n: number): number {
202202
#### Rust
203203

204204
```rust
205-
206205
/**
207206
* Forward declaration of guess API.
208207
* @param num your guess

solution/0300-0399/0374.Guess Number Higher or Lower/README_EN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ function guessNumber(n: number): number {
200200
#### Rust
201201

202202
```rust
203+
203204
/**
204205
* Forward declaration of guess API.
205206
* @param num your guess

solution/0400-0499/0470.Implement Rand10() Using Rand7()/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ function rand10(): number {
190190
#### Rust
191191

192192
```rust
193-
194193
/**
195194
* The rand7() API is already defined for you.
196195
* @return a random integer in the range 1 to 7

solution/0400-0499/0470.Implement Rand10() Using Rand7()/README_EN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ function rand10(): number {
163163
#### Rust
164164

165165
```rust
166+
166167
/**
167168
* The rand7() API is already defined for you.
168169
* @return a random integer in the range 1 to 7

0 commit comments

Comments
 (0)