Skip to content

Commit

Permalink
Docs: fix fixable example (#15107)
Browse files Browse the repository at this point in the history
The example should be:

```js
module.exports = {
    meta: {
        fixable: "code" // or "whitespace"
    },
    create(context) {
        // your rule
    }
};
```

instead of


```js
module.exports = function(context) {
    meta: {
        fixable: "code" // or "whitespace"
    },
    create(context) {
        // your rule
    }
};
```
  • Loading branch information
QC-L committed Sep 27, 2021
1 parent 07175b8 commit 16034f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/user-guide/migrating-to-8.0.0.md
Expand Up @@ -142,7 +142,7 @@ module.exports = function(context) {
Then rewrite your rule in this format:

```js
module.exports = function(context) {
module.exports = {
meta: {
fixable: "code" // or "whitespace"
},
Expand Down

0 comments on commit 16034f0

Please sign in to comment.