diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000000..24ebdbe6fb --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,14 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations. + // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp + + // List of extensions which should be recommended for users of this workspace. + "recommendations": [ + "Vue.volar", + "Vue.vscode-typescript-vue-plugin", + "dbaeumer.vscode-eslint", + "rvest.vs-code-prettier-eslint" + ], + // List of extensions recommended by VS Code that should not be recommended for users of this workspace. + "unwantedRecommendations": ["octref.vetur"] +} diff --git a/package.json b/package.json index 51c1c02e74..062d7a9865 100644 --- a/package.json +++ b/package.json @@ -28,12 +28,12 @@ "d3-axis": "3.0.0", "d3-scale": "4.0.2", "d3-selection": "3.0.0", - "eslint": "8.54.0", - "eslint-config-prettier": "9.0.0", + "eslint": "8.56.0", + "eslint-config-prettier": "9.1.0", "eslint-plugin-compat": "4.2.0", "eslint-plugin-no-unsanitized": "4.0.2", "eslint-plugin-playwright": "0.12.0", - "eslint-plugin-prettier": "4.2.1", + "eslint-plugin-prettier": "5.1.3", "eslint-plugin-simple-import-sort": "10.0.0", "eslint-plugin-unicorn": "49.0.0", "eslint-plugin-vue": "9.18.1", @@ -67,7 +67,8 @@ "painterro": "1.2.87", "plotly.js-basic-dist-min": "2.20.0", "plotly.js-gl2d-dist-min": "2.20.0", - "prettier": "2.8.7", + "prettier": "3.2.5", + "prettier-eslint": "16.3.0", "printj": "1.3.1", "resolve-url-loader": "5.0.0", "sanitize-html": "2.11.0", diff --git a/src/plugins/DeviceClassifier/src/DeviceMatchersSpec.js b/src/plugins/DeviceClassifier/src/DeviceMatchersSpec.js index 00c3e722d4..3cd676ac66 100644 --- a/src/plugins/DeviceClassifier/src/DeviceMatchersSpec.js +++ b/src/plugins/DeviceClassifier/src/DeviceMatchersSpec.js @@ -46,14 +46,14 @@ describe('DeviceMatchers', function () { return 'is' + deviceType[0].toUpperCase() + deviceType.slice(1); } - ['mobile', 'phone', 'tablet', 'landscape', 'portrait', 'landscape', 'touch'].forEach(function ( - deviceType - ) { - it('detects when a device is a ' + deviceType + ' device', function () { - mockAgent[method(deviceType)].and.returnValue(true); - expect(DeviceMatchers[deviceType](mockAgent)).toBe(true); - mockAgent[method(deviceType)].and.returnValue(false); - expect(DeviceMatchers[deviceType](mockAgent)).toBe(false); - }); - }); + ['mobile', 'phone', 'tablet', 'landscape', 'portrait', 'landscape', 'touch'].forEach( + function (deviceType) { + it('detects when a device is a ' + deviceType + ' device', function () { + mockAgent[method(deviceType)].and.returnValue(true); + expect(DeviceMatchers[deviceType](mockAgent)).toBe(true); + mockAgent[method(deviceType)].and.returnValue(false); + expect(DeviceMatchers[deviceType](mockAgent)).toBe(false); + }); + } + ); });