Skip to content

Commit a95b1f2

Browse files
committed
Update preset
1 parent d2c94a9 commit a95b1f2

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

Diff for: docs/rules/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
119119
| [vue/no-multi-spaces](./no-multi-spaces.md) | disallow multiple spaces | :wrench: |
120120
| [vue/no-spaces-around-equal-signs-in-attribute](./no-spaces-around-equal-signs-in-attribute.md) | disallow spaces around equal signs in attribute | :wrench: |
121121
| [vue/no-template-shadow](./no-template-shadow.md) | disallow variable declarations from shadowing variables declared in the outer scope | |
122+
| [vue/one-component-per-file](./one-component-per-file.md) | enforce that each component should be in its own file | |
122123
| [vue/prop-name-casing](./prop-name-casing.md) | enforce specific casing for the Prop name in Vue components | |
123124
| [vue/require-default-prop](./require-default-prop.md) | require default value for props | |
124125
| [vue/require-prop-types](./require-prop-types.md) | require type definitions in props | |
@@ -222,6 +223,7 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
222223
| [vue/no-multi-spaces](./no-multi-spaces.md) | disallow multiple spaces | :wrench: |
223224
| [vue/no-spaces-around-equal-signs-in-attribute](./no-spaces-around-equal-signs-in-attribute.md) | disallow spaces around equal signs in attribute | :wrench: |
224225
| [vue/no-template-shadow](./no-template-shadow.md) | disallow variable declarations from shadowing variables declared in the outer scope | |
226+
| [vue/one-component-per-file](./one-component-per-file.md) | enforce that each component should be in its own file | |
225227
| [vue/prop-name-casing](./prop-name-casing.md) | enforce specific casing for the Prop name in Vue components | |
226228
| [vue/require-default-prop](./require-default-prop.md) | require default value for props | |
227229
| [vue/require-prop-types](./require-prop-types.md) | require type definitions in props | |

Diff for: lib/configs/strongly-recommended.js

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ module.exports = {
2020
'vue/no-multi-spaces': 'warn',
2121
'vue/no-spaces-around-equal-signs-in-attribute': 'warn',
2222
'vue/no-template-shadow': 'warn',
23+
'vue/one-component-per-file': 'warn',
2324
'vue/prop-name-casing': 'warn',
2425
'vue/require-default-prop': 'warn',
2526
'vue/require-prop-types': 'warn',

Diff for: lib/configs/vue3-strongly-recommended.js

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ module.exports = {
2020
'vue/no-multi-spaces': 'warn',
2121
'vue/no-spaces-around-equal-signs-in-attribute': 'warn',
2222
'vue/no-template-shadow': 'warn',
23+
'vue/one-component-per-file': 'warn',
2324
'vue/prop-name-casing': 'warn',
2425
'vue/require-default-prop': 'warn',
2526
'vue/require-prop-types': 'warn',

Diff for: lib/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ module.exports = {
9090
'no-v-model-argument': require('./rules/no-v-model-argument'),
9191
'no-watch-after-await': require('./rules/no-watch-after-await'),
9292
'object-curly-spacing': require('./rules/object-curly-spacing'),
93+
'one-component-per-file': require('./rules/one-component-per-file'),
9394
'order-in-components': require('./rules/order-in-components'),
9495
'padding-line-between-blocks': require('./rules/padding-line-between-blocks'),
9596
'prefer-template': require('./rules/prefer-template'),

0 commit comments

Comments
 (0)