Skip to content
Permalink
Browse files
Docs: fix fixable example (#15107)
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 16034f09ae6c7a78b8268b4c859928f18de7b9d6
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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"
},

0 comments on commit 16034f0

Please sign in to comment.