Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CONTRIBUTING I have changed line 35 of eslintrc.js based on the issue #313 #839

Merged
merged 3 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module.exports = {

'react/jsx-curly-spacing': ['error', { when: 'never', children: true }],
indent: ['error', 2, { SwitchCase: 1 }],
'linebreak-style': ['error', 'unix'],
'linebreak-style': ['error', process.platform === 'win32' ? 'windows' : 'unix'],
quotes: ['error', 'single'],

'jsx-quotes': ['error', 'prefer-single'],
Expand Down
1 change: 0 additions & 1 deletion public/data/getting-started-examples.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,4 @@
}
]
}

]
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"isMember": true,
"membershipNumber": "1234567890"
}
"isMember": true,
"membershipNumber": "1234567890"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"code": "ABC-123"
}
}
64 changes: 32 additions & 32 deletions public/data/getting-started-examples/schemas/conditional.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
{
"$id": "https://example.com/conditional-validation-if-else.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Conditional Validation with If-Else",
"type": "object",
"$id": "https://example.com/conditional-validation-if-else.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Conditional Validation with If-Else",
"type": "object",
"properties": {
"isMember": {
"type": "boolean"
},
"membershipNumber": {
"type": "string"
}
},
"required": ["isMember"],
"if": {
"properties": {
"isMember": {
"type": "boolean"
},
"membershipNumber": {
"type": "string"
"const": true
}
},
"required": ["isMember"],
"if": {
"properties": {
"isMember": {
"const": true
}
}
},
"then": {
"properties": {
"membershipNumber": {
"type": "string",
"minLength": 10,
"maxLength": 10
}
}
},
"then": {
"properties": {
"membershipNumber": {
"type": "string",
"minLength": 10,
"maxLength": 10
}
},
"else": {
"properties": {
"membershipNumber": {
"type": "string",
"minLength": 15
}
}
},
"else": {
"properties": {
"membershipNumber": {
"type": "string",
"minLength": 15
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@
}
},
"required": ["productId", "productName", "price"]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
"enum": [42, true, "hello", null, [1, 2, 3]]
}
}
}
}
6 changes: 3 additions & 3 deletions public/data/getting-started-examples/schemas/regex.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Regular Expression Pattern",
"type": "object",
"properties": {
"code": {
"properties": {
"code": {
"type": "string",
"pattern": "^[A-Z]{3}-\\d{3}$"
}
}
}
}
Loading