Skip to content

Commit 49b9684

Browse files
committed
Merge commit 'f98123cff43e833596c171f46577536cbbb32adc' into add-rule/valid-v-bind-sync
# Conflicts: # README.md
2 parents 3820b96 + f98123c commit 49b9684

File tree

74 files changed

+300
-138
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+300
-138
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = {
1919
'eslint-plugin'
2020
],
2121
rules: {
22-
'eslint-plugin/report-message-format': ['error', '^[A-Z`\'].*\\.$'],
22+
'eslint-plugin/report-message-format': ['error', '^[A-Z`\'{].*\\.$'],
2323
'eslint-plugin/prefer-placeholders': 'error',
2424
'eslint-plugin/consistent-output': 'error'
2525
},

.vscode/launch.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"type": "node",
6+
"request": "launch",
7+
"name": "Start testing",
8+
"program": "${workspaceFolder}/node_modules/.bin/mocha",
9+
"args": [
10+
"${file}",
11+
"--watch"
12+
],
13+
"console": "integratedTerminal"
14+
}
15+
]
16+
}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
237237
| :wrench: | [vue/no-spaces-around-equal-signs-in-attribute](./docs/rules/no-spaces-around-equal-signs-in-attribute.md) | disallow spaces around equal signs in attribute |
238238
| :wrench: | [vue/script-indent](./docs/rules/script-indent.md) | enforce consistent indentation in `<script>` |
239239
| :wrench: | [vue/singleline-html-element-content-newline](./docs/rules/singleline-html-element-content-newline.md) | require a line break before and after the contents of a singleline element |
240+
| | [vue/use-v-on-exact](./docs/rules/use-v-on-exact.md) | enforce usage of `exact` modifier on `v-on` |
240241
| | [vue/valid-v-bind-sync](./docs/rules/valid-v-bind-sync.md) | enforce valid `.sync` modifier on `v-bind` directives |
241242

242243
### Deprecated

docs/rules/use-v-on-exact.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# Enforce usage of `exact` modifier on `v-on`
2-
3-
- :gear: This rule is included in `"plugin:vue/essential"`.
1+
# enforce usage of `exact` modifier on `v-on` (vue/use-v-on-exact)
42

53
This rule enforce usage of `exact` modifier on `v-on` when there is another `v-on` with modifier.
64

lib/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ module.exports = {
5252
'script-indent': require('./rules/script-indent'),
5353
'singleline-html-element-content-newline': require('./rules/singleline-html-element-content-newline'),
5454
'this-in-template': require('./rules/this-in-template'),
55+
'use-v-on-exact': require('./rules/use-v-on-exact'),
5556
'v-bind-style': require('./rules/v-bind-style'),
5657
'v-on-style': require('./rules/v-on-style'),
5758
'valid-template-root': require('./rules/valid-template-root'),

lib/rules/attribute-hyphenation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = {
1616
docs: {
1717
description: 'enforce attribute naming style on custom components in template',
1818
category: 'strongly-recommended',
19-
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.3/docs/rules/attribute-hyphenation.md'
19+
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.4/docs/rules/attribute-hyphenation.md'
2020
},
2121
fixable: 'code',
2222
schema: [

lib/rules/attributes-order.js

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -77,25 +77,10 @@ function create (context) {
7777
const attributes = node.parent.attributes
7878
const shiftAttrs = attributes.slice(attributes.indexOf(previousNode), attributes.indexOf(node) + 1)
7979

80-
// If we can upgrade requirements to `eslint@>4.1.0`, this code can be replaced by:
81-
// return shiftAttrs.map((attr, i) => {
82-
// const text = attr === previousNode ? sourceCode.getText(node) : sourceCode.getText(shiftAttrs[i - 1])
83-
// return fixer.replaceText(attr, text)
84-
// })
85-
const replaceDataList = shiftAttrs.map((attr, i) => {
80+
return shiftAttrs.map((attr, i) => {
8681
const text = attr === previousNode ? sourceCode.getText(node) : sourceCode.getText(shiftAttrs[i - 1])
87-
return {
88-
range: attr.range,
89-
text
90-
}
82+
return fixer.replaceText(attr, text)
9183
})
92-
const replaceRange = [previousNode.range[0], node.range[1]]
93-
let text = sourceCode.text.slice(replaceRange[0], replaceRange[1])
94-
replaceDataList.reverse().forEach((data) => {
95-
const textRange = data.range.map(r => r - replaceRange[0])
96-
text = text.slice(0, textRange[0]) + data.text + text.slice(textRange[1], text.length)
97-
})
98-
return fixer.replaceTextRange(replaceRange, text)
9984
}
10085
})
10186
}
@@ -121,7 +106,7 @@ module.exports = {
121106
docs: {
122107
description: 'enforce order of attributes',
123108
category: 'recommended',
124-
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.3/docs/rules/attributes-order.md'
109+
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.4/docs/rules/attributes-order.md'
125110
},
126111
fixable: 'code',
127112
schema: {

lib/rules/comment-directive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ module.exports = {
109109
docs: {
110110
description: 'support comment-directives in `<template>`',
111111
category: 'base',
112-
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.3/docs/rules/comment-directive.md'
112+
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.4/docs/rules/comment-directive.md'
113113
},
114114
schema: []
115115
},

lib/rules/component-name-in-template-casing.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = {
2323
docs: {
2424
description: 'enforce specific casing for the component naming style in template',
2525
category: undefined, // strongly-recommended
26-
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.3/docs/rules/component-name-in-template-casing.md'
26+
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.4/docs/rules/component-name-in-template-casing.md'
2727
},
2828
fixable: 'code',
2929
schema: [
@@ -51,7 +51,6 @@ module.exports = {
5151
const caseType = allowedCaseOptions.indexOf(caseOption) !== -1 ? caseOption : defaultCase
5252
const ignores = options.ignores || []
5353
const tokens = context.parserServices.getTemplateBodyTokenStore && context.parserServices.getTemplateBodyTokenStore()
54-
const sourceCode = context.getSourceCode()
5554

5655
let hasInvalidEOF = false
5756

@@ -61,7 +60,11 @@ module.exports = {
6160
return
6261
}
6362

64-
if (!utils.isHtmlElementNode(node) || utils.isHtmlWellKnownElementName(node.rawName)) {
63+
if (
64+
(!utils.isHtmlElementNode(node) && !utils.isSvgElementNode(node)) ||
65+
utils.isHtmlWellKnownElementName(node.rawName) ||
66+
utils.isSvgWellKnownElementName(node.rawName)
67+
) {
6568
return
6669
}
6770

@@ -88,13 +91,10 @@ module.exports = {
8891
return fixer.replaceText(open, `<${casingName}`)
8992
}
9093
const endTagOpen = tokens.getFirstToken(endTag)
91-
// If we can upgrade requirements to `eslint@>4.1.0`, this code can be replaced by:
92-
// return [
93-
// fixer.replaceText(open, `<${casingName}`),
94-
// fixer.replaceText(endTagOpen, `</${casingName}`)
95-
// ]
96-
const code = `<${casingName}${sourceCode.text.slice(open.range[1], endTagOpen.range[0])}</${casingName}`
97-
return fixer.replaceTextRange([open.range[0], endTagOpen.range[1]], code)
94+
return [
95+
fixer.replaceText(open, `<${casingName}`),
96+
fixer.replaceText(endTagOpen, `</${casingName}`)
97+
]
9898
}
9999
})
100100
}

lib/rules/html-closing-bracket-newline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module.exports = {
3232
docs: {
3333
description: "require or disallow a line break before tag's closing brackets",
3434
category: 'strongly-recommended',
35-
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.3/docs/rules/html-closing-bracket-newline.md'
35+
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.4/docs/rules/html-closing-bracket-newline.md'
3636
},
3737
fixable: 'whitespace',
3838
schema: [{

lib/rules/html-closing-bracket-spacing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ module.exports = {
5353
docs: {
5454
description: 'require or disallow a space before tag\'s closing brackets',
5555
category: 'strongly-recommended',
56-
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.3/docs/rules/html-closing-bracket-spacing.md'
56+
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.4/docs/rules/html-closing-bracket-spacing.md'
5757
},
5858
schema: [{
5959
type: 'object',

lib/rules/html-end-tags.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = {
2020
docs: {
2121
description: 'enforce end tag style',
2222
category: 'strongly-recommended',
23-
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.3/docs/rules/html-end-tags.md'
23+
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.4/docs/rules/html-end-tags.md'
2424
},
2525
fixable: 'code',
2626
schema: []

lib/rules/html-indent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = {
2929
docs: {
3030
description: 'enforce consistent indentation in `<template>`',
3131
category: 'strongly-recommended',
32-
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.3/docs/rules/html-indent.md'
32+
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.4/docs/rules/html-indent.md'
3333
},
3434
fixable: 'whitespace',
3535
schema: [

lib/rules/html-quotes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = {
2020
docs: {
2121
description: 'enforce quotes style of HTML attributes',
2222
category: 'recommended',
23-
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.3/docs/rules/html-quotes.md'
23+
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.4/docs/rules/html-quotes.md'
2424
},
2525
fixable: 'code',
2626
schema: [

lib/rules/html-self-closing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ module.exports = {
8888
docs: {
8989
description: 'enforce self-closing style',
9090
category: 'strongly-recommended',
91-
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.3/docs/rules/html-self-closing.md'
91+
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.4/docs/rules/html-self-closing.md'
9292
},
9393
fixable: 'code',
9494
schema: {

lib/rules/jsx-uses-vars.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module.exports = {
3939
docs: {
4040
description: 'prevent variables used in JSX to be marked as unused', // eslint-disable-line consistent-docs-description
4141
category: 'base',
42-
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.3/docs/rules/jsx-uses-vars.md'
42+
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.4/docs/rules/jsx-uses-vars.md'
4343
},
4444
schema: []
4545
},

lib/rules/max-attributes-per-line.js

Lines changed: 40 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports = {
1414
docs: {
1515
description: 'enforce the maximum number of attributes per line',
1616
category: 'strongly-recommended',
17-
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.3/docs/rules/max-attributes-per-line.md'
17+
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.4/docs/rules/max-attributes-per-line.md'
1818
},
1919
fixable: 'whitespace', // or "code" or "whitespace"
2020
schema: [
@@ -70,6 +70,7 @@ module.exports = {
7070
const multilineMaximum = configuration.multiline
7171
const singlelinemMaximum = configuration.singleline
7272
const canHaveFirstLine = configuration.allowFirstLine
73+
const template = context.parserServices.getTemplateBodyTokenStore && context.parserServices.getTemplateBodyTokenStore()
7374

7475
return utils.defineTemplateBodyVisitor(context, {
7576
'VStartTag' (node) {
@@ -78,17 +79,17 @@ module.exports = {
7879
if (!numberOfAttributes) return
7980

8081
if (utils.isSingleLine(node) && numberOfAttributes > singlelinemMaximum) {
81-
showErrors(node.attributes.slice(singlelinemMaximum), node)
82+
showErrors(node.attributes.slice(singlelinemMaximum))
8283
}
8384

8485
if (!utils.isSingleLine(node)) {
8586
if (!canHaveFirstLine && node.attributes[0].loc.start.line === node.loc.start.line) {
86-
showErrors([node.attributes[0]], node)
87+
showErrors([node.attributes[0]])
8788
}
8889

8990
groupAttrsByLine(node.attributes)
9091
.filter(attrs => attrs.length > multilineMaximum)
91-
.forEach(attrs => showErrors(attrs.splice(multilineMaximum), node))
92+
.forEach(attrs => showErrors(attrs.splice(multilineMaximum)))
9293
}
9394
}
9495
})
@@ -128,16 +129,45 @@ module.exports = {
128129
return defaults
129130
}
130131

131-
function showErrors (attributes, node) {
132+
function getPropData (prop) {
133+
let propType = 'Attribute'
134+
let propName = prop.key.name
135+
136+
if (utils.isBindingAttribute(prop)) {
137+
propType = 'Binding'
138+
propName = prop.key.raw.argument
139+
} else if (utils.isEventAttribute(prop)) {
140+
propType = 'Event'
141+
propName = prop.key.raw.argument
142+
} else if (prop.directive) {
143+
propType = 'Directive'
144+
}
145+
146+
return { propType, propName }
147+
}
148+
149+
function showErrors (attributes) {
132150
attributes.forEach((prop, i) => {
151+
const fix = (fixer) => {
152+
if (i !== 0) return null
153+
154+
// Find the closest token before the current prop
155+
// that is not a white space
156+
const prevToken = template.getTokenBefore(prop, {
157+
filter: (token) => token.type !== 'HTMLWhitespace'
158+
})
159+
160+
const range = [prevToken.range[1], prop.range[0]]
161+
162+
return fixer.replaceTextRange(range, '\n')
163+
}
164+
133165
context.report({
134166
node: prop,
135167
loc: prop.loc,
136-
message: 'Attribute "{{propName}}" should be on a new line.',
137-
data: {
138-
propName: prop.key.name
139-
},
140-
fix: i === 0 ? (fixer) => fixer.insertTextBefore(prop, '\n') : undefined
168+
message: '{{propType}} "{{propName}}" should be on a new line.',
169+
data: getPropData(prop),
170+
fix
141171
})
142172
})
143173
}

lib/rules/multiline-html-element-content-newline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ module.exports = {
5252
docs: {
5353
description: 'require a line break before and after the contents of a multiline element',
5454
category: undefined,
55-
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.3/docs/rules/multiline-html-element-content-newline.md'
55+
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.4/docs/rules/multiline-html-element-content-newline.md'
5656
},
5757
fixable: 'whitespace',
5858
schema: [{

lib/rules/mustache-interpolation-spacing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = {
1919
docs: {
2020
description: 'enforce unified spacing in mustache interpolations',
2121
category: 'strongly-recommended',
22-
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.3/docs/rules/mustache-interpolation-spacing.md'
22+
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.4/docs/rules/mustache-interpolation-spacing.md'
2323
},
2424
fixable: 'whitespace',
2525
schema: [

lib/rules/name-property-casing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = {
1717
docs: {
1818
description: 'enforce specific casing for the name property in Vue components',
1919
category: 'strongly-recommended',
20-
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.3/docs/rules/name-property-casing.md'
20+
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.4/docs/rules/name-property-casing.md'
2121
},
2222
fixable: 'code', // or "code" or "whitespace"
2323
schema: [

lib/rules/no-async-in-computed-properties.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ module.exports = {
6464
docs: {
6565
description: 'disallow asynchronous actions in computed properties',
6666
category: 'essential',
67-
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.3/docs/rules/no-async-in-computed-properties.md'
67+
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.4/docs/rules/no-async-in-computed-properties.md'
6868
},
6969
fixable: null,
7070
schema: []

lib/rules/no-confusing-v-for-v-if.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module.exports = {
3939
docs: {
4040
description: 'disallow confusing `v-for` and `v-if` on the same element',
4141
category: 'recommended',
42-
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.3/docs/rules/no-confusing-v-for-v-if.md',
42+
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.4/docs/rules/no-confusing-v-for-v-if.md',
4343
replacedBy: ['no-use-v-if-with-v-for']
4444
},
4545
deprecated: true,

lib/rules/no-dupe-keys.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = {
1717
docs: {
1818
description: 'disallow duplication of field names',
1919
category: 'essential',
20-
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.3/docs/rules/no-dupe-keys.md'
20+
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.4/docs/rules/no-dupe-keys.md'
2121
},
2222
fixable: null, // or "code" or "whitespace"
2323
schema: [

lib/rules/no-duplicate-attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module.exports = {
3939
docs: {
4040
description: 'disallow duplication of attributes',
4141
category: 'essential',
42-
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.3/docs/rules/no-duplicate-attributes.md'
42+
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.4/docs/rules/no-duplicate-attributes.md'
4343
},
4444
fixable: null,
4545

lib/rules/no-multi-spaces.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = {
1818
docs: {
1919
description: 'disallow multiple spaces',
2020
category: 'strongly-recommended',
21-
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.3/docs/rules/no-multi-spaces.md'
21+
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.4/docs/rules/no-multi-spaces.md'
2222
},
2323
fixable: 'whitespace', // or "code" or "whitespace"
2424
schema: [{

lib/rules/no-parsing-error.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ module.exports = {
5858
docs: {
5959
description: 'disallow parsing errors in `<template>`',
6060
category: 'essential',
61-
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.3/docs/rules/no-parsing-error.md'
61+
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.4/docs/rules/no-parsing-error.md'
6262
},
6363
fixable: null,
6464
schema: [

lib/rules/no-reserved-keys.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = {
1818
docs: {
1919
description: 'disallow overwriting reserved keys',
2020
category: 'essential',
21-
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.3/docs/rules/no-reserved-keys.md'
21+
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.4/docs/rules/no-reserved-keys.md'
2222
},
2323
fixable: null,
2424
schema: [

0 commit comments

Comments
 (0)