Skip to content

Commit f8c2331

Browse files
committed
Update redame
1 parent a45f02c commit f8c2331

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,18 @@ module.exports = {
4444
}
4545
```
4646

47+
### This plugin currently is able to detect both component and new instances of vue:
48+
49+
#### Components are detected based on:
50+
- `Vue.component` expression
51+
- `export default {` in **.vue** and **.jsx** files
52+
53+
If you want to support custom **.js** files to be checked in terms of the available rules you needs to add comment in line before object declaration witch contains phrase `@vue/component`.
54+
55+
#### New instances of vue are detected based on:
56+
- `new Vue(`
57+
- `Vue.extends(`
58+
4759
## :gear: Configs
4860

4961
This plugin provides two predefined configs:

0 commit comments

Comments
 (0)