Skip to content
Permalink
Browse files

Update: Add minimum value to integer values in schema (fixes #4941)

  • Loading branch information...
ilyavolodin committed Jan 14, 2016
1 parent 2dba9c7 commit 29674027d4982be29c73c65c07dbb3938d24808d
@@ -116,6 +116,7 @@ module.exports = function(context) {

module.exports.schema = [
{
"type": "integer"
"type": "integer",
"minimum": 0
}
];
@@ -686,29 +686,42 @@ module.exports.schema = [
"enum": ["tab"]
},
{
"type": "integer"
"type": "integer",
"minimum": 0
}
]
},
{
"type": "object",
"properties": {
"SwitchCase": {
"type": "integer"
"type": "integer",
"minimum": 0
},
"VariableDeclarator": {
"type": ["integer", "object"],
"properties": {
"var": {
"type": "integer"
"oneOf": [
{
"type": "integer",
"minimum": 0
},
"let": {
"type": "integer"
},
"const": {
"type": "integer"
{
"type": "object",
"properties": {
"var": {
"type": "integer",
"minimum": 0
},
"let": {
"type": "integer",
"minimum": 0
},
"const": {
"type": "integer",
"minimum": 0
}
}
}
}
]
}
},
"additionalProperties": false
@@ -105,6 +105,7 @@ module.exports = function(context) {

module.exports.schema = [
{
"type": "integer"
"type": "integer",
"minimum": 0
}
];
@@ -179,13 +179,16 @@ var OPTIONS_SCHEMA = {
"type": "object",
"properties": {
"code": {
"type": "integer"
"type": "integer",
"minimum": 0
},
"comments": {
"type": "integer"
"type": "integer",
"minimum": 0
},
"tabWidth": {
"type": "integer"
"type": "integer",
"minimum": 0
},
"ignorePattern": {
"type": "string"
@@ -68,6 +68,7 @@ module.exports = function(context) {

module.exports.schema = [
{
"type": "integer"
"type": "integer",
"minimum": 0
}
];
@@ -40,6 +40,7 @@ module.exports = function(context) {

module.exports.schema = [
{
"type": "integer"
"type": "integer",
"minimum": 0
}
];
@@ -104,7 +104,8 @@ module.exports = function(context) {

module.exports.schema = [
{
"type": "integer"
"type": "integer",
"minimum": 0
},
{
"type": "object",
@@ -112,10 +112,12 @@ module.exports.schema = [
"type": "object",
"properties": {
"max": {
"type": "integer"
"type": "integer",
"minimum": 0
},
"maxEOF": {
"type": "integer"
"type": "integer",
"minimum": 0
}
},
"required": ["max"],

0 comments on commit 2967402

Please sign in to comment.
You can’t perform that action at this time.