Skip to content

Commit

Permalink
docs(README): Fix sample codes
Browse files Browse the repository at this point in the history
  • Loading branch information
chloe463 committed Sep 24, 2024
1 parent c684914 commit ee89e1f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions packages/eslint-config-wantedly-typescript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ It exports configurations as "Flat config".
```js
import { base as configWantedlyTS } from "eslint-config-wantedly-typescript";

export default {
export default [
...configWantedlyTS,
{
rules: {
// Your rules go here.
}
}
};
];
```

### Usage (version 3.x and under)
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config-wantedly/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ It exports configurations as "Flat config".
```js
import { base as configWantedly } from "eslint-config-wantedly";

export default {
export default [
...configWantedly,
{
rules: {
// Your rules go here.
}
}
};
];
```

### Usage (version 3.x and under)
Expand Down
6 changes: 3 additions & 3 deletions packages/eslint-plugin-use-macros/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@ yarn add eslint-plugin-use-macros
```js
import pluginUseMacros from "eslint-plugin-use-macros";

export default {
export default [
{
plugins: {
"use-macros": pluginUseMacros,
},
rules: {
"use-macros/styled-components": "error",
}
},
},
}
];
```

### With "Legacy Config"
Expand Down
10 changes: 5 additions & 5 deletions packages/eslint-plugin-wantedly/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ yarn add eslint-plugin-wantedly
```js
import pluginWantedly from "eslint-plugin-wantedly";

export default {
export default [
{
plugins: {
"wantedly": pluginWantedly,
wantedly: pluginWantedly,
},
rules: {
"wantedly/graphql-pascal-case-type-name": ["error", { "autofix": true }],
}
"wantedly/graphql-pascal-case-type-name": ["error", { autofix: true }],
},
},
}
];
```

### With "Legacy Config"
Expand Down

0 comments on commit ee89e1f

Please sign in to comment.