mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Prettier: Upgrade to 2 (#30387)
* Updated package json but not updated source files * Update eslint plugin * updated files
This commit is contained in:
@@ -35,7 +35,7 @@ export const deepFreeze = <T>(obj: T): T => {
|
||||
|
||||
if (obj && obj instanceof Object) {
|
||||
const object: ObjectType = obj;
|
||||
Object.getOwnPropertyNames(object).forEach(propertyName => {
|
||||
Object.getOwnPropertyNames(object).forEach((propertyName) => {
|
||||
const objectProperty: any = object[propertyName];
|
||||
if (
|
||||
hasOwnProp.call(object, propertyName) &&
|
||||
|
||||
@@ -27,7 +27,7 @@ describe('SemVersion', () => {
|
||||
{ value: '4', expected: false },
|
||||
{ value: '3.5', expected: false },
|
||||
];
|
||||
cases.forEach(testCase => {
|
||||
cases.forEach((testCase) => {
|
||||
expect(semver.isGtOrEq(testCase.value)).toBe(testCase.expected);
|
||||
});
|
||||
});
|
||||
@@ -46,7 +46,7 @@ describe('SemVersion', () => {
|
||||
{ values: ['3.4.5', '3.5'], expected: false },
|
||||
{ values: ['6.0.0', '5.2.0'], expected: true },
|
||||
];
|
||||
cases.forEach(testCase => {
|
||||
cases.forEach((testCase) => {
|
||||
expect(isVersionGtOrEq(testCase.values[0], testCase.values[1])).toBe(testCase.expected);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user