Skip to content

Commit 659cf26

Browse files
authored
refactor: apply prettier to whole codebase (#853)
1 parent 3250a9c commit 659cf26

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm-lock.yaml

docs/rules/unbound-method.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ to `expect` calls.
1515

1616
This rule is enabled in the `all` config.
1717

18-
1918
```json5
2019
{
2120
parser: '@typescript-eslint/parser',
@@ -40,6 +39,6 @@ This rule is enabled in the `all` config.
4039
}
4140
```
4241

43-
### Options
42+
### Options
4443

45-
Checkout [@typescript-eslint/unbound-method](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/unbound-method.md) options. including `ignoreStatic`
44+
Checkout [@typescript-eslint/unbound-method](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/unbound-method.md) options. including `ignoreStatic`

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"lint:eslint-docs": "pnpm build && eslint-doc-generator --check",
3535
"lint:js": "eslint",
3636
"release": "bumpp && pnpm build && pnpm publish",
37-
"format": "prettier 'src/**/*.{ts,js}' --check",
37+
"format": "prettier --check .",
3838
"test": "vitest",
3939
"update:chains": "node scripts/chain-permutations.ts",
4040
"update:rules": "node scripts/export-rules.ts",

tests/fixture/tsconfig.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"compilerOptions": {
3-
"strict": true
4-
},
5-
"include": [ "*.ts", "*.tsx" ]
2+
"compilerOptions": {
3+
"strict": true
4+
},
5+
"include": ["*.ts", "*.tsx"]
66
}

tests/prefer-import-in-mock.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import rule, { RULE_NAME } from '../src/rules/prefer-import-in-mock'
22
import { ruleTester } from './ruleTester'
33

44
describe(RULE_NAME, () => {
5-
65
ruleTester.run(RULE_NAME, rule, {
76
valid: [
87
'vi.mock(import("foo"))',

0 commit comments

Comments
 (0)