Skip to content

Commit

Permalink
docs: document type of rule
Browse files Browse the repository at this point in the history
  • Loading branch information
d0whc3r committed Sep 15, 2019
1 parent 122231b commit 581b6ab
Show file tree
Hide file tree
Showing 16 changed files with 30 additions and 14 deletions.
3 changes: 2 additions & 1 deletion docs/ban-prefix.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ An array of `"string"`s which no Component `tag` will be allowed to use as a pre
"items": {
"type": "string"
},
"minLength": 1
"minLength": 1,
"additionalProperties": false
}
```
1 change: 1 addition & 0 deletions src/rules/async-methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const rule: Rule.RuleModule = {
recommended: true
},
schema: [],
type: 'problem',
fixable: 'code'
},

Expand Down
5 changes: 3 additions & 2 deletions src/rules/ban-prefix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ const rule: Rule.RuleModule = {
items: {
type: 'string'
},
minLength: 1
minLength: 1,
additionalProperties: false
}
],
type: 'layout'
type: 'problem'
},

create(context): Rule.RuleListener {
Expand Down
3 changes: 2 additions & 1 deletion src/rules/decorators-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ const rule: Rule.RuleModule = {
category: 'Possible Errors',
recommended: true
},
schema: []
schema: [],
type: 'problem'
},

create(context): Rule.RuleListener {
Expand Down
3 changes: 2 additions & 1 deletion src/rules/decorators-style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ const rule: Rule.RuleModule = {
}
}
}],
fixable: 'code'
fixable: 'code',
type: 'layout'
},

create(context): Rule.RuleListener {
Expand Down
3 changes: 2 additions & 1 deletion src/rules/element-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ const rule: Rule.RuleModule = {
category: 'Possible Errors',
recommended: true
},
schema: []
schema: [],
type: 'problem'
},

create(context): Rule.RuleListener {
Expand Down
3 changes: 2 additions & 1 deletion src/rules/host-data-deprecated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ const rule: Rule.RuleModule = {
category: 'Possible Errors',
recommended: true
},
schema: []
schema: [],
type: 'problem'
},

create(context): Rule.RuleListener {
Expand Down
3 changes: 2 additions & 1 deletion src/rules/methods-must-be-public.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ const rule: Rule.RuleModule = {
recommended: true
},
schema: [],
fixable: 'code'
fixable: 'code',
type: 'problem'
},

create(context): Rule.RuleListener {
Expand Down
3 changes: 2 additions & 1 deletion src/rules/prefer-vdom-listener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ const rule: Rule.RuleModule = {
category: 'Possible Errors',
recommended: true
},
schema: []
schema: [],
type: 'problem'
},

create(context): Rule.RuleListener {
Expand Down
1 change: 1 addition & 0 deletions src/rules/props-must-be-public.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const rule: Rule.RuleModule = {
recommended: true
},
schema: [],
type: 'problem',
fixable: 'code'
},

Expand Down
1 change: 1 addition & 0 deletions src/rules/props-must-be-readonly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const rule: Rule.RuleModule = {
recommended: true
},
schema: [],
type: 'layout',
fixable: 'code'
},

Expand Down
3 changes: 2 additions & 1 deletion src/rules/render-returns-host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ const rule: Rule.RuleModule = {
category: 'Possible Errors',
recommended: true
},
schema: []
schema: [],
type: 'problem'
},

create(context): Rule.RuleListener {
Expand Down
3 changes: 2 additions & 1 deletion src/rules/required-jsdoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ const rule: Rule.RuleModule = {
category: 'Possible Errors',
recommended: true
},
schema: []
schema: [],
type: 'layout'
},

create(context): Rule.RuleListener {
Expand Down
3 changes: 2 additions & 1 deletion src/rules/required-prefix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ const rule: Rule.RuleModule = {
schema: [
{
type: 'array',
minLength: 1
minLength: 1,
additionalProperties: false
}
],
type: 'layout'
Expand Down
3 changes: 2 additions & 1 deletion src/rules/reserved-member-names.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ const rule: Rule.RuleModule = {
category: 'Possible Errors',
recommended: true
},
schema: []
schema: [],
type: 'problem'
},

create(context): Rule.RuleListener {
Expand Down
3 changes: 2 additions & 1 deletion src/rules/single-export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ const rule: Rule.RuleModule = {
category: 'Possible Errors',
recommended: true
},
schema: []
schema: [],
type: 'problem'
},

create(context): Rule.RuleListener {
Expand Down

0 comments on commit 581b6ab

Please sign in to comment.