Skip to content

Commit 8bceb45

Browse files
committed
Updated eslint config.
1 parent b429bdd commit 8bceb45

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.eslintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99

1010
"curly": [2],
1111
"indent": [2, 2, {"SwitchCase": 1}],
12-
"quotes": [1, "double"],
12+
"quotes": [2, "double"],
1313
"linebreak-style": [2, "unix"],
1414
"semi": [2, "always"],
1515
"comma-dangle": [0],
1616
"no-unused-vars": [2, {"vars": "all", "args": "none"}],
1717
"no-console": [0],
18-
"object-curly-spacing": [1, "never"],
18+
"object-curly-spacing": [2, "never"],
1919
"keyword-spacing": ["error"]
2020
},
2121
"env": {

src/validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import toPath from 'lodash.topath';
1+
import toPath from "lodash.topath";
22
import {validate as jsonValidate} from "jsonschema";
33

44
import {isObject, mergeObjects} from "./utils";

test/validate_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ describe("Validation", () => {
1212
const illFormedKey = "bar.'\"[]()=+*&^%$#@!";
1313
const schema = {
1414
type: "object",
15-
properties: { foo: {type: "string"}, [illFormedKey]: {type: "string"} }
15+
properties: {foo: {type: "string"}, [illFormedKey]: {type: "string"}}
1616
};
1717

1818
let errors, errorSchema;
1919

2020
beforeEach(() => {
21-
const result = validateFormData({ foo: 42, [illFormedKey]: 41 }, schema);
21+
const result = validateFormData({foo: 42, [illFormedKey]: 41}, schema);
2222
errors = result.errors;
2323
errorSchema = result.errorSchema;
2424
});

0 commit comments

Comments
 (0)