Skip to content

Commit

Permalink
I have changed line 35 of eslintrc.js based on the issue #313
Browse files Browse the repository at this point in the history
  • Loading branch information
AymarN committed Aug 1, 2024
1 parent f6dff53 commit 6b0b6a6
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 44 deletions.
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 @@
{
"data": [1, 2, 3]
}
}
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}$"
}
}
}
}

0 comments on commit 6b0b6a6

Please sign in to comment.