0.2.1 • Published 3 years ago

v-change-tags-order v0.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

v-change-tags-order

CI

Changes the order of <script> and <template> tags in Vue single file components.

ezgif com-gif-maker (14)

Usage

# In your Vue.js project
# If you want to put the `script` tag before the `template` tag
npx v-change-tags-order

# If you want to put the `template` tag before the `script` tag
npx v-change-tags-order --pattern 2

Args

argsdefaultdescription
pattern1In pattern 1, the script tag will be placed before the template tag. In pattern 2, the script tag will be placed after the template tag.
ignorenode_modulesWhat you want to exclude from changes, which can be set with the glob pattern.

Recommend

After executing the command, it is recommended to set the rules in ESLint's vue/component-tags-order.

{
  "vue/component-tags-order": ["error", {
    "order": [ "script", "template", "style" ]
  }]
}
0.2.1

3 years ago

0.2.0

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago