Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit ad16e2e

Browse files
committed
Update vue rules
1 parent 29cee62 commit ad16e2e

39 files changed

+272
-99
lines changed

src/rules/vue/array-bracket-newline.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,21 @@ export type ArrayBracketNewlineOption =
1616
export type ArrayBracketNewlineOptions = [ArrayBracketNewlineOption?];
1717

1818
/**
19-
* Enforce linebreaks after opening and before closing array brackets.
19+
* Enforce linebreaks after opening and before closing array brackets in `<template>`.
2020
*
2121
* @see [array-bracket-newline](https://eslint.vuejs.org/rules/array-bracket-newline.html)
2222
*/
2323
export type ArrayBracketNewlineRuleConfig =
2424
RuleConfig<ArrayBracketNewlineOptions>;
2525

2626
/**
27-
* Enforce linebreaks after opening and before closing array brackets.
27+
* Enforce linebreaks after opening and before closing array brackets in `<template>`.
2828
*
2929
* @see [array-bracket-newline](https://eslint.vuejs.org/rules/array-bracket-newline.html)
3030
*/
3131
export interface ArrayBracketNewlineRule {
3232
/**
33-
* Enforce linebreaks after opening and before closing array brackets.
33+
* Enforce linebreaks after opening and before closing array brackets in `<template>`.
3434
*
3535
* @see [array-bracket-newline](https://eslint.vuejs.org/rules/array-bracket-newline.html)
3636
*/

src/rules/vue/array-bracket-spacing.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,21 @@ export type ArrayBracketSpacingOptions = [
2323
];
2424

2525
/**
26-
* Enforce consistent spacing inside array brackets.
26+
* Enforce consistent spacing inside array brackets in `<template>`.
2727
*
2828
* @see [array-bracket-spacing](https://eslint.vuejs.org/rules/array-bracket-spacing.html)
2929
*/
3030
export type ArrayBracketSpacingRuleConfig =
3131
RuleConfig<ArrayBracketSpacingOptions>;
3232

3333
/**
34-
* Enforce consistent spacing inside array brackets.
34+
* Enforce consistent spacing inside array brackets in `<template>`.
3535
*
3636
* @see [array-bracket-spacing](https://eslint.vuejs.org/rules/array-bracket-spacing.html)
3737
*/
3838
export interface ArrayBracketSpacingRule {
3939
/**
40-
* Enforce consistent spacing inside array brackets.
40+
* Enforce consistent spacing inside array brackets in `<template>`.
4141
*
4242
* @see [array-bracket-spacing](https://eslint.vuejs.org/rules/array-bracket-spacing.html)
4343
*/

src/rules/vue/arrow-spacing.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ export interface ArrowSpacingOption {
1414
export type ArrowSpacingOptions = [ArrowSpacingOption?];
1515

1616
/**
17-
* Enforce consistent spacing before and after the arrow in arrow functions.
17+
* Enforce consistent spacing before and after the arrow in arrow functions in `<template>`.
1818
*
1919
* @see [arrow-spacing](https://eslint.vuejs.org/rules/arrow-spacing.html)
2020
*/
2121
export type ArrowSpacingRuleConfig = RuleConfig<ArrowSpacingOptions>;
2222

2323
/**
24-
* Enforce consistent spacing before and after the arrow in arrow functions.
24+
* Enforce consistent spacing before and after the arrow in arrow functions in `<template>`.
2525
*
2626
* @see [arrow-spacing](https://eslint.vuejs.org/rules/arrow-spacing.html)
2727
*/
2828
export interface ArrowSpacingRule {
2929
/**
30-
* Enforce consistent spacing before and after the arrow in arrow functions.
30+
* Enforce consistent spacing before and after the arrow in arrow functions in `<template>`.
3131
*
3232
* @see [arrow-spacing](https://eslint.vuejs.org/rules/arrow-spacing.html)
3333
*/

src/rules/vue/block-spacing.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ export type BlockSpacingOption = 'always' | 'never';
1111
export type BlockSpacingOptions = [BlockSpacingOption?];
1212

1313
/**
14-
* Disallow or enforce spaces inside of blocks after opening block and before closing block.
14+
* Disallow or enforce spaces inside of blocks after opening block and before closing block in `<template>`.
1515
*
1616
* @see [block-spacing](https://eslint.vuejs.org/rules/block-spacing.html)
1717
*/
1818
export type BlockSpacingRuleConfig = RuleConfig<BlockSpacingOptions>;
1919

2020
/**
21-
* Disallow or enforce spaces inside of blocks after opening block and before closing block.
21+
* Disallow or enforce spaces inside of blocks after opening block and before closing block in `<template>`.
2222
*
2323
* @see [block-spacing](https://eslint.vuejs.org/rules/block-spacing.html)
2424
*/
2525
export interface BlockSpacingRule {
2626
/**
27-
* Disallow or enforce spaces inside of blocks after opening block and before closing block.
27+
* Disallow or enforce spaces inside of blocks after opening block and before closing block in `<template>`.
2828
*
2929
* @see [block-spacing](https://eslint.vuejs.org/rules/block-spacing.html)
3030
*/

src/rules/vue/brace-style.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@ export type BraceStyleOption = '1tbs' | 'stroustrup' | 'allman';
1818
export type BraceStyleOptions = [BraceStyleOption?, BraceStyleConfig?];
1919

2020
/**
21-
* Enforce consistent brace style for blocks.
21+
* Enforce consistent brace style for blocks in `<template>`.
2222
*
2323
* @see [brace-style](https://eslint.vuejs.org/rules/brace-style.html)
2424
*/
2525
export type BraceStyleRuleConfig = RuleConfig<BraceStyleOptions>;
2626

2727
/**
28-
* Enforce consistent brace style for blocks.
28+
* Enforce consistent brace style for blocks in `<template>`.
2929
*
3030
* @see [brace-style](https://eslint.vuejs.org/rules/brace-style.html)
3131
*/
3232
export interface BraceStyleRule {
3333
/**
34-
* Enforce consistent brace style for blocks.
34+
* Enforce consistent brace style for blocks in `<template>`.
3535
*
3636
* @see [brace-style](https://eslint.vuejs.org/rules/brace-style.html)
3737
*/

src/rules/vue/camelcase.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@ export interface CamelcaseOption {
1717
export type CamelcaseOptions = [CamelcaseOption?];
1818

1919
/**
20-
* Enforce camelcase naming convention.
20+
* Enforce camelcase naming convention in `<template>`.
2121
*
2222
* @see [camelcase](https://eslint.vuejs.org/rules/camelcase.html)
2323
*/
2424
export type CamelcaseRuleConfig = RuleConfig<CamelcaseOptions>;
2525

2626
/**
27-
* Enforce camelcase naming convention.
27+
* Enforce camelcase naming convention in `<template>`.
2828
*
2929
* @see [camelcase](https://eslint.vuejs.org/rules/camelcase.html)
3030
*/
3131
export interface CamelcaseRule {
3232
/**
33-
* Enforce camelcase naming convention.
33+
* Enforce camelcase naming convention in `<template>`.
3434
*
3535
* @see [camelcase](https://eslint.vuejs.org/rules/camelcase.html)
3636
*/

src/rules/vue/comma-dangle.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,20 @@ export type ValueWithIgnore =
2929
export type CommaDangleOptions = CommaDangleOption;
3030

3131
/**
32-
* Require or disallow trailing commas.
32+
* Require or disallow trailing commas in `<template>`.
3333
*
3434
* @see [comma-dangle](https://eslint.vuejs.org/rules/comma-dangle.html)
3535
*/
3636
export type CommaDangleRuleConfig = RuleConfig<CommaDangleOptions>;
3737

3838
/**
39-
* Require or disallow trailing commas.
39+
* Require or disallow trailing commas in `<template>`.
4040
*
4141
* @see [comma-dangle](https://eslint.vuejs.org/rules/comma-dangle.html)
4242
*/
4343
export interface CommaDangleRule {
4444
/**
45-
* Require or disallow trailing commas.
45+
* Require or disallow trailing commas in `<template>`.
4646
*
4747
* @see [comma-dangle](https://eslint.vuejs.org/rules/comma-dangle.html)
4848
*/

src/rules/vue/comma-spacing.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ export interface CommaSpacingOption {
1414
export type CommaSpacingOptions = [CommaSpacingOption?];
1515

1616
/**
17-
* Enforce consistent spacing before and after commas.
17+
* Enforce consistent spacing before and after commas in `<template>`.
1818
*
1919
* @see [comma-spacing](https://eslint.vuejs.org/rules/comma-spacing.html)
2020
*/
2121
export type CommaSpacingRuleConfig = RuleConfig<CommaSpacingOptions>;
2222

2323
/**
24-
* Enforce consistent spacing before and after commas.
24+
* Enforce consistent spacing before and after commas in `<template>`.
2525
*
2626
* @see [comma-spacing](https://eslint.vuejs.org/rules/comma-spacing.html)
2727
*/
2828
export interface CommaSpacingRule {
2929
/**
30-
* Enforce consistent spacing before and after commas.
30+
* Enforce consistent spacing before and after commas in `<template>`.
3131
*
3232
* @see [comma-spacing](https://eslint.vuejs.org/rules/comma-spacing.html)
3333
*/

src/rules/vue/comma-style.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@ export type CommaStyleOption = 'first' | 'last';
2020
export type CommaStyleOptions = [CommaStyleOption?, CommaStyleConfig?];
2121

2222
/**
23-
* Enforce consistent comma style.
23+
* Enforce consistent comma style in `<template>`.
2424
*
2525
* @see [comma-style](https://eslint.vuejs.org/rules/comma-style.html)
2626
*/
2727
export type CommaStyleRuleConfig = RuleConfig<CommaStyleOptions>;
2828

2929
/**
30-
* Enforce consistent comma style.
30+
* Enforce consistent comma style in `<template>`.
3131
*
3232
* @see [comma-style](https://eslint.vuejs.org/rules/comma-style.html)
3333
*/
3434
export interface CommaStyleRule {
3535
/**
36-
* Enforce consistent comma style.
36+
* Enforce consistent comma style in `<template>`.
3737
*
3838
* @see [comma-style](https://eslint.vuejs.org/rules/comma-style.html)
3939
*/

src/rules/vue/dot-location.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ export type DotLocationOption = 'object' | 'property';
1111
export type DotLocationOptions = [DotLocationOption?];
1212

1313
/**
14-
* Enforce consistent newlines before and after dots.
14+
* Enforce consistent newlines before and after dots in `<template>`.
1515
*
1616
* @see [dot-location](https://eslint.vuejs.org/rules/dot-location.html)
1717
*/
1818
export type DotLocationRuleConfig = RuleConfig<DotLocationOptions>;
1919

2020
/**
21-
* Enforce consistent newlines before and after dots.
21+
* Enforce consistent newlines before and after dots in `<template>`.
2222
*
2323
* @see [dot-location](https://eslint.vuejs.org/rules/dot-location.html)
2424
*/
2525
export interface DotLocationRule {
2626
/**
27-
* Enforce consistent newlines before and after dots.
27+
* Enforce consistent newlines before and after dots in `<template>`.
2828
*
2929
* @see [dot-location](https://eslint.vuejs.org/rules/dot-location.html)
3030
*/

0 commit comments

Comments
 (0)