Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b18d351

Browse files
armano2michalsnik
authored andcommitted
chore: add type to all rules (#673)
* chore: add type to all rules Make sure that --fix-type cli parameter works with our plugin * Update require-v-for-key.js * Add suggestions from mysticatea
1 parent 3dd2e42 commit b18d351

File tree

62 files changed

+62
-0
lines changed

Some content is hidden

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

62 files changed

+62
-0
lines changed

‎lib/rules/attribute-hyphenation.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const casing = require('../utils/casing')
1313

1414
module.exports = {
1515
meta: {
16+
type: 'suggestion',
1617
docs: {
1718
description: 'enforce attribute naming style on custom components in template',
1819
category: 'strongly-recommended',

‎lib/rules/attributes-order.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ function create (context) {
103103

104104
module.exports = {
105105
meta: {
106+
type: 'suggestion',
106107
docs: {
107108
description: 'enforce order of attributes',
108109
category: 'recommended',

‎lib/rules/comment-directive.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ function processLine (context, comment) {
106106

107107
module.exports = {
108108
meta: {
109+
type: 'problem',
109110
docs: {
110111
description: 'support comment-directives in `<template>`',
111112
category: 'base',

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const defaultCase = 'PascalCase'
2020

2121
module.exports = {
2222
meta: {
23+
type: 'suggestion',
2324
docs: {
2425
description: 'enforce specific casing for the component naming style in template',
2526
category: 'strongly-recommended',

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ function getPhrase (lineBreaks) {
2929

3030
module.exports = {
3131
meta: {
32+
type: 'layout',
3233
docs: {
3334
description: "require or disallow a line break before tag's closing brackets",
3435
category: 'strongly-recommended',

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ function parseOptions (options, tokens) {
5050

5151
module.exports = {
5252
meta: {
53+
type: 'layout',
5354
docs: {
5455
description: 'require or disallow a space before tag\'s closing brackets',
5556
category: 'strongly-recommended',

‎lib/rules/html-end-tags.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const utils = require('../utils')
1717

1818
module.exports = {
1919
meta: {
20+
type: 'suggestion',
2021
docs: {
2122
description: 'enforce end tag style',
2223
category: 'strongly-recommended',

‎lib/rules/html-indent.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ module.exports = {
2626
return utils.defineTemplateBodyVisitor(context, visitor)
2727
},
2828
meta: {
29+
type: 'layout',
2930
docs: {
3031
description: 'enforce consistent indentation in `<template>`',
3132
category: 'strongly-recommended',

‎lib/rules/html-quotes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const utils = require('../utils')
1717

1818
module.exports = {
1919
meta: {
20+
type: 'layout',
2021
docs: {
2122
description: 'enforce quotes style of HTML attributes',
2223
category: 'recommended',

‎lib/rules/html-self-closing.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ function isEmpty (node, sourceCode) {
8585

8686
module.exports = {
8787
meta: {
88+
type: 'layout',
8889
docs: {
8990
description: 'enforce self-closing style',
9091
category: 'strongly-recommended',

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /