Skip to content

Commit 0c9f6dc

Browse files
committed
update quote rule
1 parent 1b27a24 commit 0c9f6dc

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

docs/rules/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ The following rules extend the rules provided by ESLint itself and apply them to
328328
| [vue/operator-linebreak](./operator-linebreak.md) | Enforce consistent linebreak style for operators in `<template>` | :wrench: | :lipstick: |
329329
| [vue/prefer-template](./prefer-template.md) | Require template literals instead of string concatenation in `<template>` | :wrench: | :hammer: |
330330
| [vue/quote-props](./quote-props.md) | Require quotes around object literal property names in `<template>` | :wrench: | :lipstick: |
331+
| [vue/quotes](./quotes.md) | Enforce the consistent use of either backticks, double, or single quotes in `<template>` | :wrench: | :lipstick: |
331332
| [vue/space-in-parens](./space-in-parens.md) | Enforce consistent spacing inside parentheses in `<template>` | :wrench: | :lipstick: |
332333
| [vue/space-infix-ops](./space-infix-ops.md) | Require spacing around infix operators in `<template>` | :wrench: | :lipstick: |
333334
| [vue/space-unary-ops](./space-unary-ops.md) | Enforce consistent spacing before or after unary operators in `<template>` | :wrench: | :lipstick: |

docs/rules/quotes.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,25 @@ sidebarDepth: 0
44
title: vue/quotes
55
description: Enforce the consistent use of either backticks, double, or single quotes in `<template>`
66
---
7+
78
# vue/quotes
89

910
> Enforce the consistent use of either backticks, double, or single quotes in `<template>`
1011
11-
This rule is the same rule as stylistic [quotes] rule but it applies to the expressions in `<template>`.
12-
1312
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
13+
- :wrench: The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the problems reported by this rule.
1414

15-
## :book: Further Reading
15+
This rule is the same rule as stylistic [quotes] rule but it applies to the expressions in `<template>`.
16+
17+
## :book: Rule Details
1618

1719
- [quotes]
1820

1921
[quotes]: https://eslint.style/rules/js/quotes
2022

21-
2223
## :mag: Implementation
2324

2425
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/quotes.js)
2526
- [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/quotes.js)
2627

27-
<sup>Taken with ❤️ [from ESLint Stylistic](https://eslint.style/rules/js/quotes)</sup>
28-
28+
<sup>Taken with ❤️ [from ESLint Stylistic](https://eslint.style/rules/ts/quotes)</sup>

lib/configs/no-layout-rules.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ module.exports = {
4646
'vue/padding-line-between-tags': 'off',
4747
'vue/padding-lines-in-component-definition': 'off',
4848
'vue/quote-props': 'off',
49+
'vue/quotes': 'off',
4950
'vue/script-indent': 'off',
5051
'vue/singleline-html-element-content-newline': 'off',
5152
'vue/space-in-parens': 'off',

lib/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ const plugin = {
207207
'prefer-true-attribute-shorthand': require('./rules/prefer-true-attribute-shorthand'),
208208
'prop-name-casing': require('./rules/prop-name-casing'),
209209
'quote-props': require('./rules/quote-props'),
210+
quotes: require('./rules/quotes'),
210211
'require-component-is': require('./rules/require-component-is'),
211212
'require-default-prop': require('./rules/require-default-prop'),
212213
'require-direct-export': require('./rules/require-direct-export'),

0 commit comments

Comments
 (0)