Skip to content

Commit ee75189

Browse files
authored
CONTRIBUTING I have changed line 35 of eslintrc.js based on the issue #313 (#839)
* I have changed line 35 of eslintrc.js based on the issue #313 * I removed all changes in the getting started examples * The changes in the getting started examples should be removed from this PR.
1 parent 8710923 commit ee75189

File tree

8 files changed

+42
-43
lines changed

8 files changed

+42
-43
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module.exports = {
3434

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

4040
'jsx-quotes': ['error', 'prefer-single'],

public/data/getting-started-examples.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,4 @@
8080
}
8181
]
8282
}
83-
8483
]
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"isMember": true,
3-
"membershipNumber": "1234567890"
4-
}
2+
"isMember": true,
3+
"membershipNumber": "1234567890"
4+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
22
"code": "ABC-123"
3-
}
3+
}
Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
{
2-
"$id": "https://example.com/conditional-validation-if-else.schema.json",
3-
"$schema": "https://json-schema.org/draft/2020-12/schema",
4-
"title": "Conditional Validation with If-Else",
5-
"type": "object",
2+
"$id": "https://example.com/conditional-validation-if-else.schema.json",
3+
"$schema": "https://json-schema.org/draft/2020-12/schema",
4+
"title": "Conditional Validation with If-Else",
5+
"type": "object",
6+
"properties": {
7+
"isMember": {
8+
"type": "boolean"
9+
},
10+
"membershipNumber": {
11+
"type": "string"
12+
}
13+
},
14+
"required": ["isMember"],
15+
"if": {
616
"properties": {
717
"isMember": {
8-
"type": "boolean"
9-
},
10-
"membershipNumber": {
11-
"type": "string"
18+
"const": true
1219
}
13-
},
14-
"required": ["isMember"],
15-
"if": {
16-
"properties": {
17-
"isMember": {
18-
"const": true
19-
}
20-
}
21-
},
22-
"then": {
23-
"properties": {
24-
"membershipNumber": {
25-
"type": "string",
26-
"minLength": 10,
27-
"maxLength": 10
28-
}
20+
}
21+
},
22+
"then": {
23+
"properties": {
24+
"membershipNumber": {
25+
"type": "string",
26+
"minLength": 10,
27+
"maxLength": 10
2928
}
30-
},
31-
"else": {
32-
"properties": {
33-
"membershipNumber": {
34-
"type": "string",
35-
"minLength": 15
36-
}
29+
}
30+
},
31+
"else": {
32+
"properties": {
33+
"membershipNumber": {
34+
"type": "string",
35+
"minLength": 15
3736
}
3837
}
39-
}
38+
}
39+
}

public/data/getting-started-examples/schemas/default-extended.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@
4848
}
4949
},
5050
"required": ["productId", "productName", "price"]
51-
}
51+
}

public/data/getting-started-examples/schemas/enumerated.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
"enum": [42, true, "hello", null, [1, 2, 3]]
99
}
1010
}
11-
}
11+
}

public/data/getting-started-examples/schemas/regex.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"$schema": "https://json-schema.org/draft/2020-12/schema",
44
"title": "Regular Expression Pattern",
55
"type": "object",
6-
"properties": {
7-
"code": {
6+
"properties": {
7+
"code": {
88
"type": "string",
99
"pattern": "^[A-Z]{3}-\\d{3}$"
1010
}
1111
}
12-
}
12+
}

0 commit comments

Comments
 (0)