Skip to content

Commit 0a63f77

Browse files
committed
docs(readme): describe alternative config
1 parent a601cfc commit 0a63f77

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

packages/eslint-plugin-rules/README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,17 @@ export default defineConfig(
4141
alternative you can configure the plugin like this:
4242

4343
```js
44+
import eslintScPlugin from '@shiftcode/eslint-plugin-rules'
45+
4446
export default defineConfig({
45-
47+
files: ['**/*.ts'],
48+
plugins: {
49+
'@shiftcode': eslintScPlugin
50+
},
51+
rules: {
52+
'@shiftcode/prefix-builtin-module-import': 'error',
53+
// ...
54+
}
4655
})
4756
```
4857

0 commit comments

Comments
 (0)