New eslint rules auto fix (#3058)

* no-implicit-coercion and no-unneeded-ternary

* End every line with a semicolon

* Spacing and formatting

* Enabled semi-spacing

* Applies npm run lint:fix to code after master merge

* Fix merge issues

* Switched operator-linebreak to 'before'

Co-authored-by: Joshi <simplyrender@gmail.com>
This commit is contained in:
Andrew Henry
2020-07-31 12:11:03 -07:00
committed by GitHub
parent 573a63d359
commit a09da30768
739 changed files with 4660 additions and 2339 deletions

View File

@ -106,7 +106,7 @@ define(
it("exposes end time validator", function () {
var testValue = 42000000;
mockScope.formModel = { start: testValue };
mockScope.formModel = { start: testValue };
expect(controller.validateEnd(testValue - 1))
.toBe(false);
expect(controller.validateEnd(testValue + 60 * 60 * 1000 + 1))
@ -116,8 +116,14 @@ define(
describe("when changes are made via form entry", function () {
beforeEach(function () {
mockScope.ngModel = {
outer: { start: DAY * 2, end: DAY * 3 },
inner: { start: DAY * 2.25, end: DAY * 2.75 }
outer: {
start: DAY * 2,
end: DAY * 3
},
inner: {
start: DAY * 2.25,
end: DAY * 2.75
}
};
mockScope.formModel = {
start: DAY * 10000,