Skip to content
Snippets Groups Projects
Unverified Commit 6ed1b583 authored by Matiss Janis Aboltins's avatar Matiss Janis Aboltins Committed by GitHub
Browse files

:wrench: (eslint) disallow using 'var': no-var rule (#1949)

parent 28266ed9
No related branches found
No related tags found
No related merge requests found
......@@ -92,6 +92,8 @@ module.exports = {
// },
// ],
'no-var': 'warn',
'import/extensions': [
'warn',
'never',
......
......@@ -82,7 +82,7 @@ global.Actual = {
let filename = file.name.replace(/.*(\.[^.]*)/, 'file$1');
if (file) {
var reader = new FileReader();
let reader = new FileReader();
reader.readAsArrayBuffer(file);
reader.onload = async function (ev) {
let filepath = `/uploads/${filename}`;
......
const fs = require('fs');
const path = require('path');
var electron_notarize = require('electron-notarize');
let electron_notarize = require('electron-notarize');
// This is expected to be run by `electron-builder` after it signs the build.
// It's disabled for now as we currently don't sign builds after Actual being open sourced.
......
......@@ -30,7 +30,7 @@ electron.app.on('ready', function () {
permission,
callback,
) {
var url = webContents.getURL();
let url = webContents.getURL();
if (url.startsWith('file://')) {
callback(true);
} else {
......
......@@ -5,7 +5,7 @@ let _libofxPromise;
let _libofx;
let ffi;
var parser = {
let parser = {
ctx: null,
transactions: [],
......
---
category: Maintenance
authors: [MatissJanis]
---
eslint: disallow using 'var': no-var rule
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment