Skip to content

Commit

Permalink
chore: clean up dependencies (#1565)
Browse files Browse the repository at this point in the history
* chore: remove chai, mocha, sinon, spectron

* chore: remove cross-env

* chore: remove devtron

* chore: remove postcss

* chore: remove check-engines

* chore: remove concurrently

* chore: remove node-libs-browser

* chore: remove unused less config file

* chore: remove babel

* chore: tidy up eslint config

* chore: tidy up renovate config

* chore: rebuild package-lock file

* chore: run prettier

* chore: use eslint-config-appium-ts

* chore: add todo for e2e tests

* chore: run clean:npm again
  • Loading branch information
eglitise authored Jul 23, 2024
1 parent 9aa88d8 commit a86961b
Show file tree
Hide file tree
Showing 14 changed files with 10,479 additions and 18,511 deletions.
13 changes: 2 additions & 11 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
{
"extends": ["plugin:react/recommended", "@appium/eslint-config-appium"],
"parser": "@babel/eslint-parser",
"plugins": ["import", "react", "react-native", "@babel"],
"extends": ["plugin:react/recommended", "@appium/eslint-config-appium-ts"],
"plugins": ["import", "react", "react-native"],
"env": {
"browser": true,
"mocha": true,
"node": true
},
"settings": {
Expand All @@ -13,13 +11,6 @@
}
},
"rules": {
"@babel/arrow-parens": 0,
"import/no-unresolved": [
2,
{
"ignore": ["electron"]
}
],
"react/prop-types": 0,
"react-native/no-inline-styles": 2
}
Expand Down
3 changes: 0 additions & 3 deletions .lessrc

This file was deleted.

4 changes: 0 additions & 4 deletions .mocharc.js

This file was deleted.

3 changes: 0 additions & 3 deletions app/.postcssrc

This file was deleted.

3 changes: 0 additions & 3 deletions app/common/renderer/assets/stylesheets/.postcssrc

This file was deleted.

11 changes: 6 additions & 5 deletions app/electron/main/debug.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import {
installExtension,
REACT_DEVELOPER_TOOLS,
REDUX_DEVTOOLS,
} from 'electron-extension-installer';

export async function installExtensions() {
const {
installExtension,
REACT_DEVELOPER_TOOLS,
REDUX_DEVTOOLS,
} = require('electron-extension-installer');
const opts = {
forceDownload: !!process.env.UPGRADE_EXTENSIONS,
loadExtensionOptions: {
Expand Down
3 changes: 2 additions & 1 deletion app/electron/main/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {app} from 'electron';
import debug from 'electron-debug';

// import {installExtensions} from './debug';
import {getAppiumSessionFilePath, isDev} from './helpers';
Expand All @@ -16,7 +17,7 @@ app.on('window-all-closed', () => {

app.on('ready', () => {
if (isDev) {
require('electron-debug')();
debug();
// TODO: uncomment this after upgrading to Electron 15+
// await installExtensions();
}
Expand Down
26 changes: 0 additions & 26 deletions babel.config.js

This file was deleted.

Loading

0 comments on commit a86961b

Please sign in to comment.