Skip to content

Commit

Permalink
chore: spaces to tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
FRSgit committed Dec 20, 2024
1 parent 110881d commit 378f58b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docs/rules/prefer-class-fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,27 @@ This rule enforces the use of class field declarations for static values, instea

```js
class Foo {
constructor() {
this.foo = 'foo';
}
constructor() {
this.foo = 'foo';
}
}

class MyError extends Error {
constructor(message: string) {
super(message);
this.name = "MyError";
}
constructor(message: string) {
super(message);
this.name = "MyError";
}
}
```

## Pass

```js
class Foo {
foo = 'foo';
foo = 'foo';
}

class MyError extends Error {
name = "MyError"
name = "MyError"
}
```

0 comments on commit 378f58b

Please sign in to comment.